The filters are where the time goes. "In stock, RoHS compliant, has a datasheet, sorted by price at quantity 100" is one call here — and when the part turns out to be gone, the substitutions tool answers the next question straight away.
An MCP server over DigiKey's Product Search API, built with FastMCP. It covers the search side — keyword, manufacturer, category — and the part side: details, media, pricing and substitutions.
- Keyword search with sorting, filtering and a result limit you set
- Filters for InStock, RoHSCompliant, LeadFree, HasDatasheet, HasProductPhoto and NewProduct
- Sorting by price, quantity available, minimum quantity, product status and manufacturer part number
- Full detail on a part by part number
- Substitute parts for a part number, with marketplace listings excludable
- Images, documents and videos for a part, plus standard and DigiReel pricing at a requested quantity
Python 3.10 or newer, the uv package manager, and DigiKey API credentials — a client id and a client secret — in a .env file. A switch in the same file runs it against DigiKey's sandbox instead of production.
Build from source — clone the repository and build it, then point your client at the binary
