Logo vun PCB Parts MCP Server

PCB Parts MCP Server

Communautéit
Averyy

MCP server for searching electronic components for PCB assembly

EditeurAveryy
Repositorypcbparts-mcp
SproochPython
Forks
13
Stären
130
Disponibel Tools
0
Transporttypstreamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    PCB Parts MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    130 Stären an 13 Forks aus dem verlinkte Repository.

PCB Parts MCP Server

MCP server that gives Claude, Cursor, and other AI coding assistants electronic component data from JLCPCB, Mouser, and DigiKey: parametric search over 630K+ in-stock JLCPCB parts, live stock and pricing on all three, KiCad footprints, reference boards, sensor picks, and design rules. No API key required.

Website: pcbparts.dev

Features

  • Three distributors: search JLCPCB, and look up live price and stock for specific parts on Mouser and DigiKey
  • 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,600+ sensors, 56 measure types)
  • Reference boards: Search ~285 OSHW board schematics, IC neighborhoods, cross-board consensus for design patterns
  • Design rules: 41 curated PCB design reference files covering power, protection, interfaces, MCUs, layout, and EMC
  • 14 MCP tools
  • No API key required for JLCPCB (Mouser/DigiKey optional)

Quick Start

Claude Code

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

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

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:

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

Cursor

Add to ~/.cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

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

Copilot for Xcode

Add to Extensions config:

json
{
  "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, 630K+ in-stock parts, updated daily)
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_partPrice, stock, and datasheet for specific parts on Mouser; batch up to 10 per call (shared daily limit on pcbparts.dev)

DigiKey (requires DIGIKEY_CLIENT_ID + DIGIKEY_CLIENT_SECRET)

ToolDescription
digikey_get_partPrice, stock, and datasheet for one part on DigiKey (shared daily limit on pcbparts.dev)

Sensor Recommendation (no key required)

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

Reference Boards (no key required)

ToolDescription
board_searchSearch ~285 OSHW reference board schematics by IC, tag, org, or free text. Cross-board consensus shows how ICs are typically used.
board_getGet full board details — BOM, design rules, dimensions. Use focus param for pin-grouped IC neighborhoods (decoupling, bias, connections).

Design Rules (no key required)

ToolDescription
get_design_rulesPCB design rules & best practices (41 curated reference files: power, protection, interfaces, MCUs, layout, EMC)

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)
  • The full catalog (7M+ parts; jlc_search covers the 630K+ 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
Relaysrelay
Interface ICslevel shifter, rs485 transceiver, can transceiver
Drivers, switchesgate driver, mosfet driver, high side switch

inductor, relay and diode each cover several subcategories (SMD, power, molded and through-hole inductors; signal, power, automotive, reed and latching relays; switching, general-purpose, Schottky, fast-recovery and SBR diodes).

A value in the query goes to the spec that part type lists: "5V relay" is the coil voltage, "3.3V LDO" the exact output, "12V buck converter" an output range covering 12V (with Topology Buck), "3.3V level shifter" a supply range covering 3.3V. "24V input 3.3V output" and "12V to 5V" set both sides of a regulator. If the part type lists no such spec, the value is left out and parsed.adjusted_filters says so; words that match no part together with the rest of the query are left out and relaxed says so; filters that can't be applied are listed in ignored_filters.

Attribute Aliases

Short names for parametric spec filters:

ComponentAttributes
MOSFETsVgs(th), Vds, Id, Rds(on)
DiodesVr, If, Vf
BJTsVceo, Ic
RegulatorsVout, Iout
ICsSupply Voltage (Voltage - Supply, or a level shifter's VCCA/VCCB)
PassivesCapacitance, Resistance, Inductance, Voltage, Tolerance, Power, DCR, Isat
Crystals, oscillatorsFrequency

Supply and output voltages are often ranges ("2.7V~5.5V"): = matches a range that includes the value, >= one that reaches it, <= one that goes down to it.

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, TVS polarity, diode configuration, the chip on a WiFi/BT module)
  3. Keeps transistor polarity: N-channel vs P-channel, NPN vs PNP, single vs dual
  4. Verifies same_or_better specs (higher voltage OK, lower tolerance OK, MOSFET gate threshold no higher). Dropout, Vf and RDS(on) are compared at the same test condition when both parts list one
  5. Ranks by library type (basic/preferred saves $3), stock, EasyEDA availability

Candidates come from the live JLCPCB search and from the parts database, which supplies parts that already meet the numbers (a 60V 83A MOSFET gets other power MOSFETs, not the best-stocked 60V small-signal ones). A spec that can't be checked (missing, "-", or a value that doesn't parse) is listed in specs_unparseable and drops confidence to medium.

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"
"Look up TPS63020 stock and pricing on Mouser"
"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"
"Show me boards that use the MCP73831 charger"
"How is the RP2040 typically used? What decoupling and crystal do real boards use?"
"Get the ESP32-S3 neighborhood on the Adafruit Feather"
"What are the design rules for USB-C?"
"Show me LDO design best practices"

API Details

  • Endpoint: https://pcbparts.dev/mcp
  • Transport: Streamable HTTP (stateless)
  • Health: https://pcbparts.dev/health (status, version, EasyEDA footprint answers seeded and stored, CSE searches and KiCad parts stored, and each distributor's requests today)
  • Usage stats: https://pcbparts.dev/mcp/stats (anonymous counts per UTC day, with totals for the days shown: calls per UTC hour, calls to each tool split into ok, not_found, bad_request, rate_limited and failed, with the average time, which MCP apps connect, the number of distinct callers, and Mouser/DigiKey lookups sent, cached or turned away by the limits; the stats keep no IPs, queries or part numbers; the last 30 days, ?days=N for fewer)
  • Rate limit: 100 requests/minute per IP
  • Auth: None required

Self-Hosting

On pcbparts.dev, Mouser and DigiKey lookups share one API key each: 1,000 requests a day and 25 (Mouser) or 100 (DigiKey) a minute for everyone. Self-hosting with your own keys (MOUSER_API_KEY, DIGIKEY_CLIENT_ID/DIGIKEY_CLIENT_SECRET, free from Mouser's API hub and DigiKey's developer portal) gets you your own limits.

bash
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

The server builds data/components.db only when it's missing. If yours is from before 0.6.0, rebuild it (.venv/bin/python scripts/build_database.py) to get the EasyEDA footprint seed; without it, footprint checks still work but each one asks EasyEDA.

Or with Docker:

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

Building the image needs BuildKit, the default builder since Docker 23 and the one Compose v2 uses.

Environment Variables

VariableDefaultDescription
HTTP_PORT8080Server port
RATE_LIMIT_REQUESTS100Requests per minute per IP
MCP_ALLOWED_HOSTSpcbparts.devComma-separated Host headers accepted by the server (DNS-rebinding protection; localhost is always allowed)
DISTRIBUTOR_DAILY_LIMIT1000Daily API request quota per distributor (Mouser/DigiKey)
DISTRIBUTOR_QUOTA_PATH/app/cache/distributor_quota.json in Docker, unset otherwiseJSON file that keeps each distributor's request count for the day, and any pause Mouser or DigiKey asked for, across restarts. Unset means memory only, so every restart starts the count from 0
USAGE_STATS_PATH/app/cache/usage_stats.json in Docker, unset otherwiseJSON file that keeps the /mcp/stats counts for a year (about 650 KB) across restarts; /mcp/stats shows the last 30 days. Unset means memory only
MOUSER_API_KEY—Mouser API key (optional, enables Mouser tools)
DIGIKEY_CLIENT_ID—DigiKey OAuth2 client ID (optional, enables DigiKey tools)
DIGIKEY_CLIENT_SECRET—DigiKey OAuth2 client secret
EASYEDA_STORE_PATH/app/cache/easyeda.db in Docker, unset otherwiseSQLite file that keeps EasyEDA footprint answers across restarts. The compose files mount a named volume at /app/cache. Unset means memory only
CSE_STORE_PATH/app/cache/cse.db in Docker, unset otherwiseSQLite file that keeps CSE searches and KiCad files across restarts (an uncached CSE search takes 11-15 s). A search where every part has a model, and KiCad files, are kept a year; a search with a part that has no model yet, or no parts, a week. Unset means memory only

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.

Contributing

Issues and PRs welcome — see CONTRIBUTING.md for development setup, testing, and project conventions.

License

MIT

Links

Installatioun

TypingMind
{
  "mcpServers": {
    "pcbparts-mcp": {
      "url": "https://pcbparts.dev/mcp"
    }
  }
}

PCB Parts MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal PCB Parts MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun verbënnt sech an TypingMind iwwer d'URL vun engem gehoste MCP-Server.

Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann PCB Parts MCP Server scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt https://pcbparts.dev/mcp am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht https://pcbparts.dev/mcp an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat PCB Parts MCP Server an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat PCB Parts MCP Server als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu PCB Parts MCP Server ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu PCB Parts MCP Server ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat PCB Parts MCP Server?
PCB Parts MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat PCB Parts MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server PCB Parts MCP Server benotzt?

PCB Parts MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech PCB Parts MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir PCB Parts MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat PCB Parts MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann PCB Parts MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech PCB Parts MCP Server MCP mat TypingMind?

Dir kënnt PCB Parts MCP Server mat TypingMind verbannen, andeems Dir d'URL vu sengem gehoste MCP-Server derbäisetzt. Dat ass nëtzlech, wann Dir eng Remote-MCP-Verbindung wëllt, déi aus Ärem TypingMind-Aarbechtsberäich disponibel ass.

Wéi eng Tools stellt PCB Parts MCP Server MCP an TypingMind zur Verfügung?

PCB Parts MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir PCB Parts MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann PCB Parts MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇