mcp-nexar
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-nexar Find datasheet for part BSS138"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-nexar
Model Context Protocol server for Nexar/Octopart component search.
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-nexarNexar 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.
Related MCP server: Nexar MCP Server
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 firstbestDatasheet.urlfrom 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)
PYExpected 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 -qProvenance
Extracted from SpectraSynq/K1.hardware after the repository transfer to the SpectraSynq organisation.
Source commit:
002fc9770c6211a752dfb50c43802c245c7e69Source file:
mcp/mcp-nexar/server.pySource SHA-256:
cbb668253d78fa2e01e6ccf87ee2e7bee56555644e583c91239bad757ae7ce94
Part of the SpectraSynq toolchain
K1.hardware - flagship KiCad and hardware automation repository.
mcp-lcsc - LCSC OpenAPI component lookup.
mcp-kicad-cli - KiCad CLI automation through MCP.
License
Apache-2.0 - see LICENSE.
Available Tools
3 toolsbest_datasheet_urlA
Return the first bestDatasheet URL for a manufacturer part number.
Inputs: mpn (required). Returns: object
part_by_mpnA
Search Nexar/Octopart for an exact manufacturer part number.
Inputs: mpn (required). Returns: object
parts_searchB
Search Nexar/Octopart for parts matching free text.
Inputs: q (required), limit. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a distinct purpose: exact MPN lookup, free-text search, and datasheet URL retrieval. The potential confusion between part_by_mpn and best_datasheet_url is mitigated by clear descriptions of differing outputs.
Tool names lack a consistent pattern. 'parts_search' follows a noun-verb structure, while 'part_by_mpn' uses a prepositional phrase and 'best_datasheet_url' is an adjective-noun combination. The inconsistent naming style makes the set feel ad hoc.
With only 3 tools, the server is well-scoped for a focused part-search and datasheet service. Each tool is essential, and the count falls comfortably within the ideal range.
The server covers the core functions of part search (exact and free-text) and datasheet retrieval. Minor gaps exist, such as no explicit endpoint for part specifications or availability, but these are likely covered by the part_by_mpn response, making the surface adequate.
Maintenance
Related MCP Connectors
Octopart MCP — electronic component search via the Nexar Supply API (GraphQL)
Search real parts with datasheet-provenance specs, check compatibility and compose priced BOMs.
Find electronic parts with live Mouser, DigiKey and JLCPCB stock and prices, check BOMs, order.
Turn datasheets into source-backed JSON contracts, pinout matrices, and KiCad CAD for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables searching for electronic components through the Nexar Supply API, providing detailed part information including manufacturer, pricing, specifications, and datasheets.-
- FlicenseNot gradedqualityDmaintenanceEnables searching for electronic components, comparing prices across distributors, checking availability, and retrieving datasheets through the Nexar/Octopart API with specialized tools for resistors, capacitors, inductors, semiconductors, crystals, and connectors.12-
- AlicenseAqualityBmaintenanceProvides AI agents with instant, structured access to electronic component datasheets, pinouts, and electrical specifications without requiring PDF uploads. It enables seamless part searching, design validation, and side-by-side component comparisons across major hardware providers.1488 npm13MIT
- AlicenseAqualityDmaintenanceSearches electronic components across DigiKey and Mouser, enabling keyword search, part details, and merged offers with price comparison.41MIT