Nexar MCP Server
MCP server that provides search_components tool for querying Nexar Supply API. Follows Dedalus Labs MCP Server Guidelines.
Setup
Install dependencies:
Set environment variables:
Build:
Run server:
Development
Upload to Dedalus
After testing locally, upload this repository to Dedalus cloud to get a registry ID (e.g., "username/nexar-mcp").
Tool: search_components
Input:
{query: string, limit?: number}Output: Array of PartObject (components from Nexar API)
Description: Searches Nexar Supply API for electronic components matching the query
PartObject Format
Matches frontend types.ts:
Required:
mpn,manufacturer,description,priceOptional:
currency,voltage,package,interfaces[],datasheet,quantity
Architecture
Follows Dedalus Labs guidelines:
src/index.ts- Main entry pointsrc/server.ts- Server instance creationsrc/client.ts- Nexar API clientsrc/tools/nexar.ts- Tool definitionssrc/transport/http.ts- Streamable HTTP transportsrc/transport/stdio.ts- STDIO transport (dev)