mcp-nexar

mcp-nexar

Enables electronic component search via Nexar/Octopart GraphQL API for part lookup, exact MPN search, and datasheet URL extraction.

Category
Visit Server

README

<div align="center">

mcp-nexar

Model Context Protocol server for Nexar/Octopart component search.

License GitHub Discord

</div>

mcp-nexar exposes Nexar GraphQL supply search through MCP tools for part lookup, exact MPN search, and datasheet URL extraction. It is intended for PCB design and EDA agents that need Octopart/Nexar component data without embedding project-specific K1 hardware code.

This repository is the canonical source for the Nexar MCP server. SpectraSynq/K1.hardware consumes it by repository reference instead of carrying a second editable copy.

Quickstart

Install in an isolated Python environment:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
export NEXAR_CLIENT_ID="your-client-id"
export NEXAR_CLIENT_SECRET="your-client-secret"
mcp-nexar

Nexar credentials are required for live API calls. Create your own application credentials in Nexar; do not commit them to a repository or MCP config file.

Tools

  • parts_search(q, limit=3) - free-text supply search for MPNs, manufacturers, and datasheet URLs.
  • part_by_mpn(mpn) - exact MPN lookup with basic specs.
  • best_datasheet_url(mpn) - extracts the first bestDatasheet.url from an MPN search.

Claude Desktop example

{
  "mcpServers": {
    "nexar": {
      "command": "/absolute/path/to/mcp-nexar/.venv/bin/mcp-nexar",
      "env": {
        "NEXAR_CLIENT_ID": "your-client-id",
        "NEXAR_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Honest local demo

This demo proves the package imports and refuses to call the network without credentials:

python - <<'PY'
from mcp_nexar.server import clear_token_cache, get_token

clear_token_cache()
try:
    get_token()
except RuntimeError as exc:
    print(exc)
PY

Expected output:

Set NEXAR_CLIENT_ID and NEXAR_CLIENT_SECRET before using Nexar tools.

Run the offline test harness:

python -m pip install -e ".[dev]"
python -m pytest -q

Provenance

Extracted from SpectraSynq/K1.hardware after the repository transfer to the SpectraSynq organisation.

  • Source commit: 002fc9770c6211a752dfb50c43802c245c7e69
  • Source file: mcp/mcp-nexar/server.py
  • Source SHA-256: cbb668253d78fa2e01e6ccf87ee2e7bee56555644e583c91239bad757ae7ce94

Part of the SpectraSynq toolchain

License

Apache-2.0 - see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured