DigiKey MCP Server
Provides access to the DigiKey Product Search API v4, allowing users to search for electronic components and retrieve detailed product specifications. It supports keyword searches, pricing inquiries, manufacturer lookups, and access to technical datasheets.
README
DigiKey MCP Server
A Model Context Protocol server for the DigiKey Product Search API v4, built with FastMCP. Docker-first, designed for the Docker MCP Toolkit.
Originally inspired by bengineer19/digikey_mcp.
Prerequisites
- DigiKey API credentials — Register at developer.digikey.com, create an app with
client_credentialsgrant type - Docker (recommended) or Python 3.10+
- Docker MCP Toolkit — included with Docker Desktop (requires MCP Toolkit support)
Quick Start — Docker MCP Toolkit
The recommended way to run this server. The Docker MCP gateway manages the container lifecycle, injects secrets, and exposes tools to MCP clients like Claude Code or Claude Desktop.
1. Build the Docker image
git clone https://github.com/simon-77/digikey-mcp.git
cd digikey-mcp
docker build -t digikey-mcp:latest .
2. Create a custom catalog
The gateway discovers servers through catalog files. Create one at ~/.docker/mcp/catalogs/custom.yaml:
version: 3
name: custom
displayName: Custom MCP Servers
registry:
digikey:
description: DigiKey component search, pricing, and datasheets via API
title: DigiKey
type: server
image: digikey-mcp:latest
secrets:
- name: digikey.CLIENT_ID
env: CLIENT_ID
- name: digikey.CLIENT_SECRET
env: CLIENT_SECRET
env:
- name: USE_SANDBOX
value: "false"
- name: DIGIKEY_LOCALE_SITE
value: "US"
- name: DIGIKEY_LOCALE_LANGUAGE
value: "en"
- name: DIGIKEY_LOCALE_CURRENCY
value: "USD"
tools:
- name: keyword_search
- name: product_details
- name: search_manufacturers
- name: search_categories
- name: get_category_by_id
- name: search_product_substitutions
- name: get_product_media
- name: get_product_pricing
- name: get_digi_reel_pricing
prompts: 0
resources: {}
Change the env values to match your locale (e.g., AT/en/EUR for Austria).
Note: The
toolslist must match the tools defined in the server. The gateway uses this list to register tools with MCP clients.prompts: 0andresources: {}indicate the server exposes no MCP prompts or resources.
3. Register the catalog and enable the server
docker mcp catalog import ~/.docker/mcp/catalogs/custom.yaml
docker mcp server enable digikey
Re-run catalog import whenever you modify custom.yaml.
4. Set secrets
docker mcp secret set digikey.CLIENT_ID
docker mcp secret set digikey.CLIENT_SECRET
You'll be prompted to enter each value. Secret names must be prefixed with the server name (digikey.).
5. Connect an MCP client
docker mcp client connect claude-code
This adds the gateway to your project's .mcp.json:
{
"mcpServers": {
"MCP_DOCKER": {
"command": "docker",
"args": ["mcp", "gateway", "run"],
"type": "stdio"
}
}
}
When the MCP client starts, the gateway launches the digikey-mcp:latest container, injects secrets as environment variables, and proxies tool calls.
Rebuilding after changes
docker build -t digikey-mcp:latest .
# Restart your MCP client to pick up the new image
No need to re-import the catalog or re-set secrets — just rebuild and restart.
Alternative: Docker standalone
Run the container directly without the MCP Toolkit. You manage secrets and lifecycle yourself.
docker build -t digikey-mcp .
docker run --rm -i \
-e CLIENT_ID=your_client_id \
-e CLIENT_SECRET=your_client_secret \
-e USE_SANDBOX=false \
-e DIGIKEY_LOCALE_SITE=US \
-e DIGIKEY_LOCALE_LANGUAGE=en \
-e DIGIKEY_LOCALE_CURRENCY=USD \
digikey-mcp
.mcp.json for MCP clients:
{
"mcpServers": {
"digikey": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "CLIENT_ID=your_client_id",
"-e", "CLIENT_SECRET=your_client_secret",
"-e", "USE_SANDBOX=false",
"-e", "DIGIKEY_LOCALE_SITE=US",
"-e", "DIGIKEY_LOCALE_LANGUAGE=en",
"-e", "DIGIKEY_LOCALE_CURRENCY=USD",
"digikey-mcp"
]
}
}
}
Locale env vars are optional — defaults are US/en/USD (see Configuration).
Alternative: Standalone (pip)
Run without Docker. Requires Python 3.10+.
git clone https://github.com/simon-77/digikey-mcp.git
cd digikey-mcp
pip install .
cat > .env <<EOF
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
USE_SANDBOX=false
DIGIKEY_LOCALE_SITE=US
DIGIKEY_LOCALE_LANGUAGE=en
DIGIKEY_LOCALE_CURRENCY=USD
EOF
python digikey_mcp_server.py
.mcp.json for MCP clients:
{
"mcpServers": {
"digikey": {
"command": "python",
"args": ["digikey_mcp_server.py"],
"cwd": "/path/to/digikey-mcp",
"env": {
"CLIENT_ID": "your_client_id",
"CLIENT_SECRET": "your_client_secret",
"USE_SANDBOX": "false",
"DIGIKEY_LOCALE_SITE": "US",
"DIGIKEY_LOCALE_LANGUAGE": "en",
"DIGIKEY_LOCALE_CURRENCY": "USD"
}
}
}
}
Locale env vars are optional — defaults are US/en/USD (see Configuration).
Tools
Search
| Tool | Description |
|---|---|
keyword_search |
Search products by keyword with sorting, filtering, manufacturer/category constraints |
search_manufacturers |
List all manufacturers |
search_categories |
List all product categories |
search_product_substitutions |
Find substitute/alternative products |
Product Details
| Tool | Description |
|---|---|
product_details |
Full product information for a part number |
get_category_by_id |
Category details by ID |
get_product_media |
Images, documents, videos for a product |
get_product_pricing |
Detailed pricing with quantity breaks |
get_digi_reel_pricing |
DigiReel-specific pricing |
Search Options
Filters (comma-separated in search_options): LeadFree, RoHSCompliant, InStock, HasDatasheet, HasProductPhoto, Has3DModel, NewProduct
Sort fields: Packaging, ProductStatus, DigiKeyProductNumber, ManufacturerProductNumber, Manufacturer, MinimumQuantity, QuantityAvailable, Price, Supplier, PriceManufacturerStandardPackage
Configuration
All settings are controlled via environment variables. In Docker MCP Toolkit mode, these are set in the catalog env block. In standalone mode, use a .env file.
| Variable | Default | Description |
|---|---|---|
CLIENT_ID |
(required) | DigiKey API client ID |
CLIENT_SECRET |
(required) | DigiKey API client secret |
USE_SANDBOX |
true |
Use sandbox API (true) or production (false). The Dockerfile and catalog examples override this to false. |
DIGIKEY_LOCALE_SITE |
US |
DigiKey site (e.g., AT, DE, UK) |
DIGIKEY_LOCALE_LANGUAGE |
en |
Response language |
DIGIKEY_LOCALE_CURRENCY |
USD |
Pricing currency (e.g., EUR) |
Docker MCP Registry
This repo is structured for submission to the docker/mcp-registry. The server.yaml file contains the registry entry reference — this is not the same as the local catalog above. When the server is published to the registry, users won't need to create a custom catalog; they'll install it directly via docker mcp server enable digikey.
Troubleshooting
Gateway shows 0 tools: The server uses lazy OAuth initialization — it won't authenticate until the first tool call. If the gateway still shows no tools, verify the tools list in your catalog matches the tool names above.
OAuth errors on first tool call: Verify your credentials with docker mcp secret list. Secret names must be prefixed: digikey.CLIENT_ID, not CLIENT_ID.
Catalog changes not taking effect: Re-run docker mcp catalog import ~/.docker/mcp/catalogs/custom.yaml after editing the catalog file. Restart your MCP client afterward.
License
MIT License — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。