MCP Hub
Back to servers

PCB Parts MCP Server

Enables searching and filtering over 1.5 million electronic components across JLCPCB, Mouser, and DigiKey using parametric queries and smart parsing. It supports finding alternative parts, accessing pinout data, and downloading KiCad footprints directly through AI coding assistants.

glama
Stars
27
Forks
3
Updated
Mar 10, 2026
Validated
Mar 12, 2026

PCB Parts MCP Server

MCP server for searching electronic components across JLCPCB, Mouser, and DigiKey directly from Claude, Cursor, and other AI coding assistants. 1.5M+ parts with parametric filtering and KiCad footprints. No API key required.

Website: pcbparts.dev

Features

  • Cross-distributor search: JLCPCB, Mouser, and DigiKey from one MCP server
  • Parametric search: Filter by electrical specs (Vgs(th) < 2V, Rds(on) < 10mΩ, etc.)
  • Smart query parsing: "10k 0603 1%" auto-parses into structured filters
  • Find alternatives: Spec-aware compatibility checking for 120+ component types
  • KiCad footprints: Download symbols and footprints via SamacSys
  • Pinout data: Component pin information from EasyEDA symbols
  • MPN lookup: Find JLCPCB equivalents by manufacturer part number
  • Sensor recommendation: Find sensor ICs by what they measure, protocol, or platform (1,500+ sensors, 56 measure types)
  • 11 MCP tools across 6 data sources
  • No API key required for JLCPCB (Mouser/DigiKey optional)

Quick Start

Claude Code

claude mcp add -s user --transport http pcbparts https://pcbparts.dev/mcp

Optional — auto-approve all pcbparts tools in ~/.claude/settings.json:

{
  "permissions": {
    "allow": ["mcp__pcbparts__*"]
  }
}

Claude Desktop

Add via Settings → Connectors → "Add custom connector", or add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pcbparts": {
      "type": "http",
      "url": "https://pcbparts.dev/mcp"
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "pcbparts": {
      "type": "http",
      "url": "https://pcbparts.dev/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "pcbparts": {
      "type": "http",
      "url": "https://pcbparts.dev/mcp"
    }
  }
}

Copilot for Xcode

Add to Extensions config:

{
  "mcpServers": {
    "pcbparts": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://pcbparts.dev/mcp"]
    }
  }
}

Available Tools

JLCPCB (Local DB + Live API)

ToolDescription
jlc_searchPrimary search — smart query parsing + parametric spec filters (local DB, 575K+ in-stock parts)
jlc_stock_checkReal-time stock verification via live JLCPCB API (use jlc_search first)
jlc_get_partFull details for a specific LCSC part code or MPN lookup
jlc_get_pinoutComponent pin information from EasyEDA symbols
jlc_find_alternativesFind spec-compatible alternative parts with verification
jlc_search_helpBrowse categories, subcategories, and filterable attributes

Mouser (requires MOUSER_API_KEY)

ToolDescription
mouser_get_partCross-reference a specific MPN on Mouser (daily quota applies)

DigiKey (requires DIGIKEY_CLIENT_ID + DIGIKEY_CLIENT_SECRET)

ToolDescription
digikey_get_partCross-reference a specific MPN on DigiKey (daily quota applies)

Sensor Recommendation (no key required)

ToolDescription
sensor_recommendFind sensor ICs/modules by measurement need, protocol, or platform (1,500+ sensors, 56 measure types)

SamacSys (no key required)

ToolDescription
cse_searchSearch for ECAD models, datasheets, and footprint availability
cse_get_kicadDownload KiCad symbols and footprints for any part

search vs stock_check

Use jlc_search (default) for:

  • Parametric filtering ("Vgs(th) < 2V", "voltage >= 25V")
  • Smart query parsing ("10k 0603 1%" auto-detects value, package, tolerance)
  • Most searches

Use jlc_stock_check only when you need:

  • Real-time stock verification before ordering
  • Out-of-stock or low-stock parts (stock < 10)
  • Full 1.5M catalog (search indexes 575K+ with stock >= 10)

Library Types

TypeAssembly FeeDescription
basicNoneCommon parts in JLCPCB's standard library
preferredNoneRecommended parts with good availability
extended$3/unique partLess common parts
no_feeNoneFilter shortcut: searches basic + preferred combined

Subcategory Aliases

Natural language names that map to JLCPCB subcategories (220+ aliases supported):

CategoryAliases
Capacitorsmlcc, ceramic capacitor, electrolytic, tantalum, supercap
Resistorsresistor, chip resistor, current sense resistor
Inductorsinductor, ferrite bead, ferrite
Diodesschottky, zener, tvs, esd diode, rectifier
MOSFETsmosfet, n-channel mosfet, p-channel mosfet, nmos, pmos
Regulatorsldo, buck, boost, dc-dc
Crystalscrystal, oscillator, tcxo
Connectorsusb-c, pin header, jst, terminal block, qwiic
LEDsled, rgb led, ws2812, neopixel
MCUsmcu, microcontroller

Attribute Aliases

Short names for parametric spec filters:

ComponentAttributes
MOSFETsVgs(th), Vds, Id, Rds(on)
DiodesVr, If, Vf
BJTsVceo, Ic
PassivesCapacitance, Resistance, Inductance, Voltage, Tolerance, Power

Use jlc_search_help(subcategory=...) to discover all filterable specs for any subcategory.

Package Expansion

Package filters auto-expand to include variants:

  • "SOT-23" → includes SOT-23-3, SOT-23-3L, SOT-23(TO-236)
  • "0603" → includes 1608 (metric equivalent)
  • Specific packages like "QFN-24-EP(4x4)" are NOT expanded

find_alternatives

Finds verified-compatible alternatives using spec-aware rules:

  1. Matches primary spec (resistance, capacitance, etc.)
  2. Verifies must_match specs (dielectric, LED color, relay coil voltage)
  3. Verifies same_or_better specs (higher voltage OK, lower tolerance OK)
  4. Ranks by library type (basic/preferred saves $3), stock, EasyEDA availability

Supported: Resistors, capacitors, inductors, ferrite beads, MOSFETs, BJTs, diodes (all types), LEDs, optocouplers, crystals, oscillators, LDOs, DC-DC converters, voltage references, WiFi/BT/LoRa modules, switches, relays, connectors, and more (120+ subcategories).

Example Queries

"Find logic-level MOSFETs with Vgs(th) < 2V and Id >= 5A"
"100nF 25V capacitors in 0402 or 0603"
"Find alternatives for C82899 in basic library"
"STM32 microcontrollers with 10000+ stock"
"Cross-reference TPS63020 on Mouser and compare with JLCPCB pricing"
"Get KiCad footprint for ESP32-S3-WROOM-1"
"What sensor should I use to measure CO2 on ESPHome?"
"Recommend an IMU sensor with I2C interface"

API Details

  • Endpoint: https://pcbparts.dev/mcp
  • Transport: Streamable HTTP (stateless)
  • Health: https://pcbparts.dev/health
  • Rate limit: 100 requests/minute per IP
  • Auth: None required

Self-Hosting

git clone https://github.com/Averyy/pcbparts-mcp
cd pcbparts-mcp
uv venv && uv pip install -e .
.venv/bin/python -m pcbparts_mcp.server  # http://localhost:8080/mcp

Or with Docker:

docker compose up -d                                    # production (GHCR image)
docker compose -f docker-compose.local.yml up --build   # local dev (builds from source)

Environment Variables

VariableDefaultDescription
HTTP_PORT8080Server port
RATE_LIMIT_REQUESTS100Requests per minute per IP
DISTRIBUTOR_DAILY_LIMIT1000Daily API request quota per distributor (Mouser/DigiKey)
MOUSER_API_KEYMouser API key (optional, enables Mouser tools)
DIGIKEY_CLIENT_IDDigiKey OAuth2 client ID (optional, enables DigiKey tools)
DIGIKEY_CLIENT_SECRETDigiKey OAuth2 client secret

LLM-Readable Documentation

An llms.txt file is available for LLMs and AI agents to quickly understand this service. See llmstxt.org for the spec.

License

MIT

Links

Reviews

No reviews yet

Sign in to write a review