Model Context Protocol server for LCSC OpenAPI component lookup.
mcp-lcsc lets an MCP client search LCSC by keyword or C-number and fetch product details for JLCPCB assembly workflows. It does not ship credentials; live lookups require your own LCSC API key and secret.
Note
This is an alpha extraction from the SpectraSynq K1 hardware automation stack. The server is intentionally narrow: LCSC search and item lookup only.
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[dev]"
pytestSet credentials before live MCP use:
export LCSC_API_KEY="..."
export LCSC_API_SECRET="..."
mcp-lcscAfter installing the package in the Python environment used by your MCP client, add:
{
"mcpServers": {
"lcsc": {
"command": "mcp-lcsc",
"args": [],
"env": {
"LCSC_API_KEY": "YOUR_LCSC_API_KEY",
"LCSC_API_SECRET": "YOUR_LCSC_API_SECRET"
}
}
}
}See examples/claude_desktop_config.json.
search(keyword, is_available=True, page_size=30)— search LCSC products by keyword or C-number.item(product_number)— fetch details for one LCSC product number.
- Do not commit
.envfiles or real MCP client configs containing credentials. LCSC_API_KEYandLCSC_API_SECRETare read from environment variables.- The server fails before making a network request if live lookup credentials are missing.
- Tests use deterministic signature inputs and do not call LCSC.
Extracted from SpectraSynq/K1.hardware commit 54d2eed3687a27503404b862b631a65615097e2a; see docs/provenance.md.
This repo is now the canonical home for the LCSC MCP server.
Apache-2.0 — see LICENSE.