Skip to main content
Glama
PCB Parts MCP Server

PCB Parts MCP Server

by Averyy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HTTP_PORTNoServer port8080
MOUSER_API_KEYNoMouser API key (optional, enables Mouser tools)
DIGIKEY_CLIENT_IDNoDigiKey OAuth2 client ID (optional, enables DigiKey tools)
RATE_LIMIT_REQUESTSNoRequests per minute per IP100
DIGIKEY_CLIENT_SECRETNoDigiKey OAuth2 client secret
DISTRIBUTOR_DAILY_LIMITNoDaily API request quota per distributor (Mouser/DigiKey)1000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

PCB design assistant: JLCPCB part search, Mouser and DigiKey lookups, reference boards, sensor picks and design rules. No auth. Find parts with jlc_search (local, fast, parametric filters); jlc_get_parts for a BOM's parts (up to 50 LCSC codes or MPNs per call, from the daily snapshot, no live requests); jlc_stock_check only for live stock or out-of-stock parts; mouser_get_part/digikey_get_part only when JLCPCB can't answer (the part isn't at JLCPCB, or the user asked for that distributor's stock or price): their shared daily limits often run out; batch Mouser lookups. part_lifecycle gives lifecycle status (NRND, obsolete) for up to 50 parts per call. sensor_recommend picks sensors by measurement, protocol or platform. Workflow: get_design_rules / board_search + board_get(focus=IC) → jlc_search → jlc_get_part (datasheet, footprint; live=true for live stock) → jlc_find_alternatives → cse_get_kicad (KiCad files). jlc_stock_history shows recorded stock changes for one part or a BOM's list of up to 50.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
jlc_stock_checkA

Live JLCPCB stock and price search. Use jlc_search first (faster, parametric filters); use this only to confirm stock before ordering, find parts with stock under 10 or out of stock, or page through large result sets. JLCPCB matches whole part numbers and their starts, not text inside them: when no result contains a part-number fragment ("2812"), hint names in-stock parts that do (WS2812B). Use jlc_get_part(lcsc=...) for full details. When JLCPCB doesn't answer, one LCSC code gets the snapshot's row, marked live_failed.

jlc_searchA

Search in-stock JLCPCB parts locally with natural-language parsing and spec filters. Stock is from the daily catalog snapshot, scraped at data_as_of; the 1-piece price is refreshed weekly (prices_as_of; a part new since then has its first scraped price). jlc_stock_check and jlc_get_part(live=true) are live. Default 20 results; strict=true disables relaxation. Reply: filters_applied lists every filter that ran, given or read from the query; parsed shows only what the query text gave. relaxed names query words, a query-only library preference or part type left out; ignored_filters explains unapplied/rare filters, parsed.adjusted_filters explains moved/omitted specs; unlisted counts, per range filter, parts it left out only because they don't list that attribute ("-"); counts_complete=false means partial counts; valid_values lists accepted inputs on errors. When the search shortens a full part number (LM1117-3.3 searches LM1117), parts matching it come first: mpn_match is full, same_suffix or family, and mpn_matches counts each. A full package (QFN-24-EP(4x4)) keeps its body size and exposed pad; a bare family (QFN-24) matches any body, and parsed.adjusted_filters says so. In results, pcba_type "standard_only" means one such part moves the whole order to Standard assembly (higher setup and stencil fees), and no_datasheet=true that JLCPCB lists no datasheet (find it on the maker's site, or pick another). total counts every match before limit and offset; library_type_counts use the same constraints. Spec sorts add sort_value (the figure sorted on, as listed, with its test condition, or null) and sort (what was compared, at which condition, and how far the order compares like with like). An empty reply's hint suggests a next step. why_empty adds bounded local library/package/stock checks with counts, next calls and diagnostics_complete; original results stay empty. Negative Vout preserves polarity, impedance@frequency compares that condition, and part-number exclusions are reported as unsupported. Part rows carry data_source (snapshot/provider/observation time); no diagnostic makes live requests.

jlc_search_helpA

List categories, a category's subcategories, or a subcategory's filterable attributes (with type and example values) for jlc_search spec_filters. No args lists all categories.

jlc_stock_historyA

Recorded low-stock events, newest first: one code gets at most 100; a list gives one reply with a per-part summary and the newest 10 events each, notes once. more_events flags more. Gone is missing from a scrape, not a confirmed stockout; suspect gaps are labelled. Includes the window, recording limits and current_stock from the catalog snapshot (null, with gone_since, for a part that left it).

jlc_get_partA

Full details for one JLCPCB part (all price tiers, datasheet, specs, EasyEDA footprint availability), or the JLCPCB parts matching a manufacturer part number.

Reply: an LCSC code answers from the daily catalog snapshot (stock >= 10; data_as_of), without min_order, reel_qty, datasheet, maker_datasheet, datasheet_note or lcsc_url; live=true, a code not in the snapshot, or a server without price tiers, asks JLCPCB (live, held up to an hour) and adds them. live_failed: JLCPCB didn't answer, so the snapshot's row answers (note). prices lists quantity tiers; datasheet is LCSC's viewer page (null when LCSC has none) and datasheet_pdf the PDF: a short link on this server that stays valid (LCSC's link for its copy); maker_datasheet is the maker's own link where JLCPCB lists one (most TI parts); datasheet_note says when there is no PDF, or that datasheet_pdf is LCSC's copy (specs come from LCSC too when JLCPCB lists none); specs_note says when LCSC lists no specs, or what the listing leaves out for the part type (Isat's definition, MLCC DC-bias loss, RF cable ends, MOSFET RDS(on)/Vgs(th) typical and maximum mixed, multi-diode loading); spec_evidence cites reviewed maker values, conditions and sources; spec_discrepancies flags catalog/document conflicts without replacing catalog specs. no_datasheet/no_datasheet_note refer only to JLCPCB availability; lcsc_url is the LCSC product page; pcba_type is "economic" or "standard_only" (JLCPCB's PCBA Type: one standard_only part moves the whole order to Standard assembly). Optional lifecycle {status, raw, source, observed_at}: a stored Mouser/DigiKey reading, no request (raw "not stated by Mouser": listed without a status); for a lookup use part_lifecycle. Footprint pads: jlc_get_pinout(lcsc, footprint=true). has_easyeda_footprint=null means unknown, false means absent; MPN lookups return results, total, exact (the number itself matched) and ambiguous (several parts match). Non-exact replies add match (separators, packing, alias, alternative, lcsc or related), matched_mpn, and a note naming the part types for related full-text results (and parts another manufacturer numbered after the original). An LCSC code given as mpn finds that part (match=lcsc); BOM placeholders such as N/A or DNP find nothing. MPN lookups search the daily catalog snapshot (stock >= 10), most stock first; price is refreshed weekly (prices_as_of), prices' tiers daily (price_tiers_as_of; null: the 1-piece price only). Many parts at once: jlc_get_parts. Rows carry data_source (kind/provider/observed_at; a cached live one keeps its time). MPN misses: availability outside the snapshot is unknown; next_call suggests jlc_stock_check with min_stock=0 (not run). Parts that left the snapshot (stock under 10 or delisted) answer when no in-stock part matches but by full text or as another maker's spelling (listed after them): gone, gone_since, last_stock and stock null (unknown), with hint and next_call; otherwise gone_matches counts them.

jlc_get_partsA

Up to 50 JLCPCB parts in one call, by LCSC code or MPN, from the daily catalog snapshot (stock

= 10), database only: for BOM refreshes and checking many parts at once. For one part's live stock, prices or datasheet, use jlc_get_part(live=true). Reply: data_as_of, prices_as_of, price_tiers_as_of, counts (found, gone, not_found, error), hint when any part is gone or not found, and results in input order, each with input. An LCSC code's row has jlc_get_part's fields (prices: quantity tiers), or not_found; an MPN's row is like jlc_get_part(mpn=...): mpn, total, up to 10 results, exact, ambiguous, match info, gone_matches, or not_found with other_manufacturers. Gone parts (left the snapshot): stock null, gone, gone_since, last_stock. MPNs never match by full text: search values with jlc_search. An unusable input has error. Each part may add lifecycle, as in jlc_get_part.

jlc_find_alternativesA

Find catalog-checked alternatives, ranked no-fee first (same-package passives/crystals first within each tier). Reply: summary.found counts verified alternatives; unverified_alternatives need manual comparison for missing required matches or incomparable rating conditions (inductor Isat, DCR, thermal current; multi-diode loading); specs_unparseable lists specs not verified; unchecked_requirements includes pinout/circuit checks still needed; has_easyeda_footprint=null means unknown. Reviewed spec_evidence cites manufacturer values/conditions; spec_discrepancies preserves catalog conflicts. no_datasheet and no_datasheet_note refer only to JLCPCB availability. RF parts (splitters, baluns, couplers, amplifiers, filters, transceivers) have no rules, so they come back as similar_parts from every maker, ordered by how much of the original's frequency range each covers (frequency_coverage: full, partial with share, or unknown); parts that don't overlap it are left out and counted in summary.frequency_check. Other part types without rules (modules, load switches, addressable LEDs) list parts in the original's package and part family first, with likely_drop_in (pinout unchecked), then other makers' parts in the same package. library_type="no_fee" with no basic/preferred match names the best extended ones in summary.extended_examples. Listed parts carry has_easyeda_footprint where it's already known (no extra request), and pcba_type ("economic" or "standard_only"). Lifecycle (NRND) isn't checked: part_lifecycle has it. Stock comes from the live search or the daily catalog snapshot. Each part's data_source identifies that observation. Savings use a rounded $3 Economic loading-fee estimate (is_estimate and assembly_service_assumption), not a current quote; Standard service differs. savings.order_total prices component_quantity (boards * placements) at each part's price break for that quantity (savings.price_basis, savings.price_tiers_as_of; the *_at_quantity fields give the prices used); unit_price_diff and the ranking use qty-1 prices. summary.stages reports retrieval counts/limits/errors, primary/spec passed/failed/unknown, library/package eligibility, footprint and land-check outcomes/cap omissions and per-list output truncation. Connector alternatives list "land pattern and pin 1 position" as unchecked: makers' footprints for one series often differ; land_compatible=true compares them (summary.land_note explains the fields).

jlc_get_pinoutA

Pin numbers and names from a part's EasyEDA symbol, exactly as EasyEDA has them (e.g., VCC, GND, PA0); with footprint=true also the EasyEDA footprint's pads. A pin's number is as the symbol shows it and matches the footprint pad ("1", "A2"); electrical (input, output, bidirectional, power) appears only where the symbol's creator set it, so its absence says nothing. unverified ("Symbol not verified by LCSC") appears when LCSC hasn't verified the symbol; note means every pin's name is its number, so the symbol doesn't say what the pins do, or that a polarized two-pin part's numbers may not match its datasheet's (connect it by pin name). footprint_error says why a requested footprint is missing.

mouser_get_partA

Mouser price, stock and datasheet for specific parts. Its shared daily limit often runs out: use it only when JLCPCB can't answer (jlc_search / jlc_get_part found nothing) or the user asks for Mouser; for lifecycle use part_lifecycle. Batch up to 10 parts per call. Don't retry a quota error. Reply: answers are kept up to 3 days; observed_at is the oldest used. lifecycle is Mouser's status where it states one, else null: Mouser states none for most parts, including some the maker marks NRND (AP2553W6-7, which digikey_get_part's lifecycle lists as NRND); lifecycle_status is active, nrnd, last_time_buy, obsolete or unknown (null is active). not_found lists the given numbers no result matches, and those not sent (not_sent gives each reason: value such as "10k", lcsc_code, placeholder, not_ascii; no request spent). A spent limit with some numbers kept: those answer, not_checked lists the rest, retry_after says when to ask. lookup_failed: numbers Mouser gave an error for. Each result's requested is the number it answers, matched_by how: exact, separators, packing (JST's (LF)/(SN) endings set aside) or mouser_pn are that part; prefix and other need checking. Check manufacturer too (Mouser's SRV05-4 is onsemi's).

digikey_get_partA

DigiKey price, stock and datasheet for one part. Its shared daily limit often runs out: use it only when JLCPCB can't answer (jlc_search / jlc_get_part found nothing) or the user asks for DigiKey; one part per call, not whole BOMs; for lifecycle use part_lifecycle. Don't retry a quota error. Reply: part_number, price, price_breaks and min_qty are one packaging's (the DigiKey PN given, else the smallest order, usually cut tape; packaging names it); other_packaging lists the rest (reel, Digi-Reel) with their PN, min_qty and price. lifecycle is DigiKey's product status; lifecycle_status is active, nrnd, last_time_buy, obsolete or unknown; last_buy_date where given. Answers are kept up to a day, misses 3 days (observed_at). A number several makers use returns each maker's listing, most stock first. requested is the number asked, matched_by how: exact, separators, packing (JST's (LF)/(SN) endings set aside) or digikey_pn are that part; prefix and other need checking. A number that can't be a DigiKey part number isn't sent (not_sent, as in mouser_get_part, plus length: not 3-40 characters).

part_lifecycleA

Lifecycle status of up to 50 parts in one call (a BOM's lifecycle check): active, nrnd, last_time_buy, obsolete or unknown, from Mouser and DigiKey. Use it instead of mouser_get_part / digikey_get_part for lifecycle. Readings are shared and kept: active 60 days, nrnd and last_time_buy 30, obsolete a year, others 90; other parts are asked of Mouser, and of DigiKey only when Mouser doesn't list them or its daily limit is spent. Reply: results in input order: input, mpn, manufacturer, status, raw (the distributor's wording; "not stated by Mouser" when Mouser gives none, as for most active parts), source, observed_at, last_buy_date (DigiKey). unknown can add not_found (neither lists it), retry_after (seconds until a limit allows the lookup), lookup_failed, not_sent (never sent: value such as "10k", lcsc_code, placeholder, length, not_ascii), error (unusable input), or makers (each maker's reading, when several list the number and none was given, or only other makers do). status_counts counts the statuses.

cse_searchA

Search SamacSys ComponentSearchEngine for generic ECAD/3D availability and datasheets. Reply: results and total; rows include has_model, has_3d, model_quality and cse_part_id, without confirming individual ECAD formats. Use cse_get_kicad for actual KiCad files. Slow (a search takes about 15 s, longer when busy; answers are kept): only when you need ECAD models. For part search use jlc_search; for EasyEDA footprints, jlc_get_part (live=true if unknown). Search requests use CSE_REQUEST_TIMEOUT (default 45s per request phase); a non-Success API status is retried once after 3 s. No overall tool deadline; search requires no credentials.

cse_get_kicadA

Download a part's KiCad symbol (.kicad_sym) and footprint (.kicad_mod) as text from SamacSys ComponentSearchEngine; works for any manufacturer. Slow (a search of about 15 s, then a download; files are kept): only when you need the KiCad files. For EasyEDA footprints use jlc_get_part (live=true if unknown). Requires CSEARCH_USER and CSEARCH_PASS. Reply: part_id, search metadata when resolved by query, kicad_symbol and kicad_footprint (either file may be null). No overall tool deadline; search requests use CSE_REQUEST_TIMEOUT (default 45s per request phase), model downloads 30s per phase. A non-Success search status is retried once after 3 s; shared daily download limits may apply.

sensor_recommendA

Recommend sensor ICs and modules for what you want to measure, with protocol and platform support. Unknown measure, protocol and platform values return valid_values; an unknown type returns no matches. Accepts 1-wire/one-wire and heart rate/blood oxygen aliases. Not for buying parts: use jlc_search. Exact normalized query-ID/alias matches come first; within each group, results are sorted by how many platforms have drivers (platform_count descending), then name ascending. Calculated CO2 (CCS811, ENS160, ENS161, SGP30, iAQ-Core, APC1, SM300D2) is under eco2, not co2; capability_note says what such a part really outputs (BME680/BME688: IAQ and CO2 equivalent come from Bosch's BSEC library on the host), and compensation inputs aren't direct measurements. Generic MCU/platform IDs such as RP2040 are excluded. A query with no searchable words (stop words, single letters, symbols) is ignored and the reply adds a note.

get_design_rulesA

Curated PCB design rules for power, protection, interfaces, MCUs, layout and EMC. An empty topic lists every rule file. note says the files were found by their text, not their name or keywords.

board_searchA

Search ~300 open-source reference board schematics to see how real designs use an IC: its passives, decoupling, pull-ups and power topology. Not for buying parts (jlc_search) or choosing sensors (sensor_recommend). Then call board_get(slug, focus=IC) for that IC's pin-by-pin neighborhood.

Use component= for an IC name (searches the BOMs; when 2+ boards match it adds a cross-board consensus), query= for a function ("motor driver", "USB power delivery"), tag= to browse. Tags ignore case/whitespace; usb-c means usb. Unknown tags return valid_values from the catalog. Combine them to narrow. Matching function phrases in a board's name/description rank ahead of incidental mentions; compound-tag browsing also favors boards describing that function. Remaining ties use relevance, then component count. Empty or all-stopword queries browse the catalog, keeping any other filters; for an all-stopword query a note says so. matched_by says why each appeared (key IC, component, text, tag). A component consensus counts distinct boards per pin choice (pct divides by consensus.board_count); browsing by tag alone adds tag_consensus, the ICs boards in that category commonly use. An empty reply's hint names the words no board matches and what leaving them out finds.

board_getA

A reference board from board_search. With focus=IC it returns that IC's pin-by-pin neighborhood (decoupling, pull-ups, connected parts) and, when 2+ boards use the IC, how the others wire it. Reply: focus_match_type says exact, partial or ref matching; consensus compares wiring across consensus.board_count boards; passives_omitted counts hidden plain passives. Components and a focused IC carry the design files' own part numbers where listed (mpn, manufacturer, lcsc, mouser, digikey): look them up with jlc_get_part or mouser_get_part. An unknown slug's error adds did_you_mean (boards sharing most of its words).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 17 tools

Disambiguation4/5

Descriptions explicitly route between overlapping tools (jlc_search for parametric search, jlc_stock_check only to confirm live stock, jlc_get_part for one part, jlc_get_parts for batches, mouser/digikey_get_part by distributor, part_lifecycle for status). However, the cluster of jlc_* tools all return part data and an agent could still misselect between jlc_search MPN behavior, jlc_get_part's MPN lookup, and jlc_stock_check when hunting for a part. Clear but requires reading long prose to distinguish.

Naming Consistency4/5

Most names follow a resource_verb pattern: jlc_search, jlc_get_part, jlc_get_parts, cse_search, cse_get_kicad, board_search, board_get, mouser_get_part, digikey_get_part. Minor deviations exist (get_design_rules is verb-first with no source prefix, part_lifecycle has no verb, jlc_search_help is a help variant), but overall the convention is readable and predictable.

Tool Count4/5

17 tools is on the higher side but justified because they span several genuinely distinct sub-domains: JLCPCB catalog ops, distributor lookups, ECAD/KiCad retrieval, reference boards, sensor recommendation, design rules, alternatives, and pinouts. Each tool maps to a real workflow rather than redundancy.

Completeness4/5

Coverage is broad and deep: search, spec-filtering help, live stock, details, batch BOM refresh, alternatives, lifecycle, ECAD models, EasyEDA pinout/footprint, reference designs, and design rules—no obvious dead ends for parts sourcing and design lookup. Gaps are minor (no explicit BOM file parsing/import tool, no cart/order-placement tool), which agents can work around via jlc_get_parts and external ordering.

Maintenance

ActivityActive
ResponsivenessLimited data