parts-mcp
Reads KiCad project data directly on the user's machine: .kicad_sch schematics (via kicad-cli or a built-in single-sheet parser), .net netlists and BOM CSV exports, several boards at once with board multipliers, consolidating lines by MPN, TME symbol or value+footprint, adding spares, and listing excluded test points, pads and DNP parts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@parts-mcp read my KiCad BOM, check InvenTree stock, and make a priced TME Quick Buy file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
parts-mcp - KiCAD to TME cart and InvenTree inventory
Unofficial hobby project. Not affiliated with, endorsed by or supported by TME. No warranty, no responsibility for how it is used. See the Disclaimer. WARNING This MCP was FULLY vibe-coded. Later tested on my own setup (with success).
A local MCP server that lets Claude (Desktop / Cowork / Claude Code) turn a KiCad BOM into a checked, priced TME Quick Buy file, and keep a local InvenTree inventory, so you don't buy parts you already have.
KiCad (.kicad_sch / .net / .csv) ──bom_read──► consolidated lines (need + spares)
│
InvenTree ◄──inv_check_bom┘ (what's already in the drawers?)
│
TME API v2 ◄─tme_lookup_mpns / tme_search / tme_parameters (match each line to a TME symbol)
│
tme_quote ── MOQ, multiples, price breaks, stock, status flags
│
tme_export_quickbuy ──► orders/<name>.csv ──► tme.eu Quick Buy ──► cart (you check out)
│
after delivery: inv_receive ──► InvenTree (part + TME supplier part + MPN + stock item)It can't place orders. TME's API has no basket or order endpoints, and this server doesn't try anything else. You upload the generated file in Quick Buy, review it, and check out yourself.
Tools
Tool | What it does |
| Shows config (no secrets) and tests the TME and InvenTree connections |
| Reads |
| Matches MPNs to TME symbols in bulk (exact / fuzzy / not_found), with MOQ, multiples, stock and price tiers |
| Catalogue search (e.g. |
| Technical parameters, to confirm generic passives |
| Details, live stock and your prices, delivery estimates, substitutes, documents |
| Prices a list the way TME will sell it: rounds to MOQ and multiples, applies price tiers, moves to the next price break when that costs no more, and flags stock shortages and statuses like |
| Writes |
| Checks BOM lines against stock: exact matches by TME symbol or MPN; value+package lines only return candidates for you to confirm |
| Finds parts, lists locations and categories |
| Books a delivery: creates the part, TME supplier part and manufacturer part if missing, then adds a stock item ( |
Related MCP server: TME MCP Server
Setup (macOS)
TME API credentials. At developers.tme.eu, sign in with your tme.eu account and create an application. You get an app token (50 chars) and an app secret (20 chars). Apps created after 14 May 2026 work only with API v2, which this server uses.
Install uv (
brew install uv). Note its path:which uv.Create the config file
~/.config/parts-mcp/.envand runchmod 600on it:mkdir -p ~/.config/parts-mcp && cp .env.example ~/.config/parts-mcp/.env chmod 600 ~/.config/parts-mcp/.env && open -e ~/.config/parts-mcp/.envInstall the dependencies once, so the first start in Claude isn't slow:
uv --directory /path/to/parts-mcp sync(the folder you cloned this repo into)Register the server with Claude Desktop. Go to Settings → Developer → Edit Config (
~/Library/Application Support/Claude/claude_desktop_config.json):{ "mcpServers": { "parts": { "command": "/opt/homebrew/bin/uv", "args": ["--directory", "/path/to/parts-mcp", "run", "parts-mcp"] } } }Use the absolute path from
which uv, and the absolute path of your clone in place of/path/to/parts-mcp, then restart Claude Desktop.Ask Claude to run
parts_status.
Claude Code alternative: claude mcp add parts -- uv --directory /path/to/parts-mcp run parts-mcp
Configuration (~/.config/parts-mcp/.env)
Variable | Default | |
| — | Required for TME tools |
|
| |
|
| Seconds between API calls. TME doesn't publish a rate limit, and 429/5xx responses are retried with backoff |
| — | Required for |
|
| Must be |
|
| Supplier company used for TME supplier parts |
|
| Where Quick Buy files are written |
|
|
|
|
| Used for |
KiCad conventions that make it work well
Give every specific part an
MPNfield. AManufacturerfield is optional.To force a particular TME product, add a
TMEfield with the TME symbol.Generic passives can stay as value + footprint (e.g.
100konR_0603). Claude searches TME and confirms withtme_parameters, using the rules in the skill.Mark unpopulated parts DNP or exclude them from the BOM. Test points, contact pads, solder wire pads and mounting holes are excluded automatically and listed under
excluded.
InvenTree
The inv_* tools are optional. They work with an InvenTree server that you run yourself; this
repo doesn't include a deployment, so install it with InvenTree's own instructions.
Then create an API token for the user that parts-mcp should act as, and put INVENTREE_URL and
INVENTREE_TOKEN in the .env.
That user needs roles for part, part_category, stock, stock_location and purchase_order (supplier
and manufacturer parts count as purchase_order); a user without a group gets 403 on every endpoint.
The TME supplier company is created on the first inv_receive if it doesn't exist yet.
Development
uv sync --extra test
uv run pytest # unit + mock TME + stdio MCP round-trip
INVENTREE_TEST_URL=http://127.0.0.1:8000 INVENTREE_TEST_TOKEN=... uv run pytest tests/test_inventree_live.pyThe TME mock follows the shapes in TME's OpenAPI v2 spec (https://developers.tme.eu/openapi.json).
The InvenTree tests ran against InvenTree 1.7.2 and 1.7.3 (API v570), with a token whose user has
the roles listed under InvenTree.
References and prior art
TME API v2 docs: https://developers.tme.eu/en/api-doc/v2
Gitii/tme-mcp (MIT): a TME-only MCP server (search, prices, stock), Docker-first. This project adds BOM reading, quoting, Quick Buy export and inventory.
InvenTree: https://docs.inventree.org
Disclaimer
This is an independent hobby project, maintained on a best-effort basis. It is not affiliated with, endorsed by, sponsored by or supported by Transfer Multisort Elektronik Sp. z o.o. ("TME"). TME and tme.eu are names of their respective owner and are used here only to describe what the software talks to.
Public API only. The server calls TME's publicly documented developer API with credentials that you create yourself on developers.tme.eu. It does not scrape the shop, bypass any protection or place orders. You are responsible for reading and following the TME API Terms and Conditions (the version dated 2026-07-01 at the time of writing), for the use you make of the data, and for keeping your API token and secret private.
TME data. Data powered by TME.eu Data – no guarantee of data accuracy. All intellectual property rights to content obtained via the API belong to TME, its subsidiaries, the manufacturers of the goods and/or other creators and owners. Prices, stock, MOQs and product details can be wrong or out of date: check the Quick Buy file and the cart on tme.eu before you pay.
inv_receivestores this notice as a note on the parts and TME supplier parts it creates (existing records are not changed). InvenTree 1.7 keeps notes in a separate Note model (/api/note/) instead of anotesfield on the record, and the tool uses that endpoint.No warranty, no liability. The software is provided "as is", without warranty of any kind. The author accepts no responsibility or liability for how you use it, including orders and purchasing decisions, incorrect or outdated data, suspension or blocking of your TME API access, or changes made to your InvenTree database (also see the LICENSE).
License
MIT
Available Tools
16 toolsbom_readARead-only
Read one or more BOM sources and consolidate them into purchase lines.
Args: files: [{"path": "~/Projects/x/board.net", "boards": 2, "label": "main"}]. Supported: KiCad netlist (.net), KiCad schematic (.kicad_sch, exported with kicad-cli), CSV BOM. "boards" multiplies quantities (default 1). spare_policy: "default" (extra for small/losable parts) or "none".
Lines are grouped by MPN, else TME symbol, else value+package. Each line has need (= parts on the boards), spares and suggested_qty. Test points, pads, mounting holes and DNP parts are listed under "excluded" - check them.
Inputs: files (required), spare_policy.
inv_check_bomARead-only
Check BOM lines (as returned by bom_read) against stock.
Per line: matches (exact via TME symbol/MPN; generic value+package lines only get search "candidates" that must be confirmed), available, and suggested_buy: 0 if available >= need, else need - available + spares.
Inputs: lines (required).
inv_findARead-only
Find parts in InvenTree by TME symbol (supplier SKU), MPN, or free-text search. Returns stock on hand, available (unallocated) quantity and locations.
Inputs: mpn, query, tme_symbol.
inv_receiveA
Book delivered parts into InvenTree. Run with confirm=false first (dry run), show the plan to the user, and only call with confirm=true after they agree.
items: [{"tme_symbol", "mpn", "manufacturer", "name"?, "description", "qty", "location_id"?, "category_id"?, "unit_price"?, "currency"?, "batch"? (e.g. TME order number), "keywords"? , "value"?, "package"?, "kind"?}] Creates the part, the TME supplier part and the manufacturer part when missing (matched by TME symbol, then MPN), then adds a stock item. Needs INVENTREE_ALLOW_WRITE=1. With qty 0 (or no qty) only the part cards are created and no stock is booked. New parts and supplier parts get the TME data attribution in their notes (TME API terms 8.7, 8.8).
Inputs: items (required), confirm.
inv_structureARead-only
List InvenTree stock locations and part categories (ids for inv_receive).
Inputs: no named parameters.
parts_statusARead-only
Show configuration (no secrets) and test the TME and InvenTree connections.
Inputs: no named parameters.
tme_alternativesCRead-only
Alternatives for a symbol: kind="similar" (substitutes) or "related" (accessories).
Inputs: symbol (required), kind.
tme_datasheetsCRead-only
Document links (datasheets, drawings) per TME symbol.
Inputs: symbols (required).
tme_deliveryCRead-only
Delivery estimate per symbol for the given quantities (same order).
Inputs: amounts (required), symbols (required).
tme_export_quickbuyA
Write a TME Quick Buy file into PARTS_EXPORT_DIR: "SYMBOL;QTY" per line, no header, LF line endings, extension .csv (byte-for-byte the shape of TME's own cart export).
Upload only this file at tme.eu -> Quick Buy -> "Upload products from file", review, then "Add to cart". Optionally also writes review_rows (list of dicts) as -review.csv, which is for you to read and must NOT be uploaded. Existing files are never overwritten (a timestamp is appended).
Inputs: name (required), lines (required), review_rows.
tme_lookup_mpnsARead-only
Match manufacturer part numbers to TME symbols, in bulk.
Per MPN returns status "exact" (one or more TME symbols carry exactly this MPN - e.g. cut tape vs reel), "fuzzy" (only search candidates; needs judgement) or "not_found", with MOQ/multiples and (optionally) stock and price tiers.
Inputs: mpns (required), fuzzy_fallback, include_prices.
tme_parametersCRead-only
Technical parameters (resistance, tolerance, voltage, case...) per TME symbol.
Inputs: symbols (required).
tme_prices_stockBRead-only
Stock and price tiers (your customer prices; NET/GROSS as returned) per symbol.
Inputs: symbols (required).
tme_productsARead-only
Product details (MOQ, multiples, status, packing) for TME symbols OR manufacturer part numbers. Any length; batched by 50 internally.
Inputs: mpns, symbols.
tme_quoteARead-only
Price a list of {"symbol", "qty", "ref"?} lines exactly as TME would sell them.
Rounds to MOQ/multiples, picks the price tier, and (optimize_price_breaks) moves to a higher tier when that costs no more than max_extra_cost_per_line extra. Flags: UNKNOWN_SYMBOL, NOT_IN_OFFER, CANNOT_BE_ORDERED, STOCK_SHORT_n, ROUNDED_UP_FROM_n, PRICE_BREAK_a_TO_b, HARDLY_AVAILABLE, ... Totals are in the API's currency and price type.
Inputs: lines (required), optimize_price_breaks, max_extra_cost_per_line.
tme_searchARead-only
Search the TME catalogue (phrase 2-40 chars: MPN, value, keywords).
Args: sort: SYMBOL, ACCURACY, ORIGINAL_SYMBOL, PRICE_FIRST_QUANTITY, PRICE_LAST_QUANTITY, ACCURACY_IN_STOCK_FIRST or AVAILABLE_IN_STOCK_FIRST. For passives, search e.g. "100k 0603 1%" with in_stock_only=True, then confirm candidates with tme_parameters.
Inputs: phrase (required), page, sort, limit, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Tools split cleanly along a workflow (BOM read → search/lookup → details/params/prices → quote/export → inventory check/receive), and prefixes make the TME vs InvenTree boundary obvious. There is mild overlap between tme_products (details, MOQ, status) and tme_prices_stock (stock/price tiers), and tme_products vs tme_lookup_mpns both accept MPNs, but descriptions clarify which to use when.
Nearly everything is snake_case with a domain prefix (parts_, bom_, tme_, inv_) and a verb-ish second token, which reads predictably. The only deviations are noun-only names (tme_parameters, tme_datasheets, inv_structure) mixed with verb names like inv_find or tme_search, a minor irregularity rather than a real inconsistency.
16 tools is at the upper end but each covers a distinct step: catalogue search, bulk MPN resolution, parameters, prices, datasheets, alternatives, delivery, quoting, export, plus four inventory tools. Nothing looks redundant enough to be dropped, though the catalogue-side tools could plausibly be consolidated.
The procure-to-stock lifecycle is covered end to end (read BOM, resolve MPNs, price/quote, export cart file, check stock, book goods in). Gaps remain: there is no way to adjust or consume existing stock, no order/PO tracking back from TME, and no tool to update or correct an already-created InvenTree part — only creation via inv_receive.
Maintenance
Related MCP Connectors
Electronic component sourcing, BOM management, and PCB design workflows.
Manage a Foundry IMS catalog: products, variants, BOMs, plus invoices read from supplier docs.
Search real parts with datasheet-provenance specs, check compatibility and compose priced BOMs.
Find electronic parts with live Mouser, DigiKey and JLCPCB stock and prices, check BOMs, order.
Related MCP Servers
- FlicenseAqualityFmaintenanceEnables interaction with InvenTree inventory management system, providing tools for parts, stock, orders, companies, barcodes, labels, reports, attachments, and system administration.121-
- AlicenseNot gradedqualityDmaintenanceEnables searching and retrieving detailed information on electronic components from TME, including pricing, stock, datasheets, and delivery estimates.1MIT
- AlicenseAqualityCmaintenanceEnables automated KiCad-adjacent workflows by parsing and round-tripping S-expression files, classifying DRC/ERC reports, and generating pin-header footprints without a running KiCad instance.4MIT
- AlicenseNot gradedqualityCmaintenanceProvides read-only MCP tools for parsing KiCad netlists and schematics, running evidence-based audits, and generating deterministic sizing and BOMs.MIT