mcp-nexar
Click on "Install 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-nexarFind 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.
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that the tool returns the 'first' bestDatasheet URL, implying an ordering or ranking behavior. However, it does not mention potential errors, rate limits, or side effects, though the read-only nature is implied by 'Return'.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no wasted words. It conveys the essential information efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one parameter and an output schema present, the description is adequate. It clearly states the return value (first bestDatasheet URL). It lacks edge-case behavior (e.g., no match found), but given the output schema and low complexity, this is a minor gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It does by explaining that the parameter mpn is a 'manufacturer part number', which is a key semantic. However, it does not provide format examples or constraints beyond that.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb ('Return') and resource ('bestDatasheet URL') for a given manufacturer part number, which distinguishes it from siblings like part_by_mpn (likely returns part details) and parts_search (likely searches parts).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage: when you need a datasheet URL for a specific MPN. However, it does not explicitly mention when to use this tool versus alternatives like part_by_mpn, nor does it provide any exclusions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
part_by_mpnA
Search Nexar/Octopart for an exact manufacturer part number.
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the full burden. It only states the basic search action and does not disclose any behavioral traits such as return format, error handling, or access requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no redundant information, achieving maximum conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple (one parameter) and an output schema exists, so return values need not be described. The description sufficiently covers the core function, though it lacks some behavioral depth and usage guidance.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no description for 'mpn', but the description's phrase 'manufacturer part number' clarifies the parameter's meaning. For a single self-explanatory parameter, this is adequate compensation for the 0% schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Search') and resource ('Nexar/Octopart') with a clear modifier ('exact manufacturer part number'), distinguishing it from sibling tools like parts_search and best_datasheet_url.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for exact MPN lookups but does not explicitly state when to use this tool versus alternatives (e.g., 'use parts_search for partial matches'). No exclusions or alternatives are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
parts_searchB
Search Nexar/Octopart for parts matching free text.
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It merely states the search action but does not mention any return format, result ordering, pagination, rate limits, or authentication requirements. The behavioral traits beyond the basic action are not disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that effectively conveys the core purpose. There is no redundant or unnecessary information, and the key information is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and schema parameter descriptions, the description is too sparse to provide a complete understanding. It does not cover usage scenarios, parameter semantics fully, or any behavioral caveats. Although an output schema exists, the missing usage and parameter details leave the tool inadequately documented.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It clarifies that 'q' is the free text query, but the 'limit' parameter is not described at all; its default of 3 is present in the schema but without explanation of its meaning or effect. Thus, the description only partially explains the parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Search') and the resource ('Nexar/Octopart') with a specific scope ('parts matching free text'). It distinguishes from sibling tools like 'part_by_mpn' (which searches by MPN) and 'best_datasheet_url' (which retrieves a datasheet URL).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use the tool: when you have free text to search for parts. However, it does not explicitly say when not to use it or mention alternatives, such as using 'part_by_mpn' for exact part numbers. There is no explicit exclusion or alternative guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Search real parts with datasheet-provenance specs, check compatibility and compose priced BOMs.
Electronic component datasheets for AI agents — specs, pinouts, package data on demand.
MCP server for IT hardware parts research: normalize PNs, search listings, get subs/comps.
Search GitHub, npm, PyPI, StackOverflow, ArXiv from one MCP — built for coding agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides Claude with access to the tscircuit electronics component registry, enabling search, browsing, and analysis of electronic components and circuit packages from the tscircuit ecosystem.3MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables searching for electronic components through the Nexar Supply API, providing detailed part information including manufacturer, pricing, specifications, and datasheets.
- FlicenseNot gradedqualityCmaintenanceEnables 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.8
- AlicenseAqualityCmaintenanceProvides 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.128410MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SpectraSynq/mcp-nexar'
If you have feedback or need assistance with the MCP directory API, please join our Discord server