DigiKey MCP server

Integrates with DigiKey's Product Search API to enable electronic component discovery, detailed specifications retrieval, pricing information, product substitution finding, and datasheet access for electronics engineers and procurement teams.
Back to servers
Setup instructions
Provider
bengineer19
Release date
Jun 29, 2025
Stats
8 stars

DigiKey MCP Server is a Model Context Protocol implementation that provides access to DigiKey's Product Search API. This server allows you to search for electronic components, retrieve detailed product information, and find pricing data using the FastMCP framework.

Requirements

  • Python 3.10+
  • uv package manager
  • DigiKey API credentials (CLIENT_ID and CLIENT_SECRET)

Installation

Install Dependencies

Use the uv package manager to install all required dependencies:

uv sync

Configure Environment Variables

Create a .env file in the project root directory with your DigiKey API credentials:

CLIENT_ID=your_digikey_client_id
CLIENT_SECRET=your_digikey_client_secret
USE_SANDBOX=false

If you want to use DigiKey's sandbox environment for testing, set USE_SANDBOX=true.

Start the Server

Run the MCP server using the following command:

uv run python digikey_mcp_server.py

Available Tools

Search Products

The server provides several methods for searching DigiKey's product catalog:

Keyword Search

keyword_search(keywords, limit=5, manufacturer_id=None, category_id=None, search_options=None, sort_field=None, sort_order="Ascending")

This method allows you to search for products by keyword with various filtering and sorting options.

Find Manufacturers and Categories

search_manufacturers()
search_categories()

These methods retrieve all product manufacturers and categories available in DigiKey's catalog.

Search Product Substitutions

search_product_substitutions(product_number, limit=10, search_options=None, exclude_marketplace=False)

This method helps you find substitute products for a specific part number.

Get Product Details

product_details(product_number, manufacturer_id=None, customer_id="0")

Retrieve comprehensive information about a specific product.

Get Media and Pricing

get_product_media(product_number)
get_product_pricing(product_number, customer_id="0", requested_quantity=1)
get_digi_reel_pricing(product_number, requested_quantity, customer_id="0")

These methods provide access to product images, documents, videos, and detailed pricing information.

Search Options and Sorting

Sorting Options

When using the keyword_search method, you can sort results using these fields:

  • Packaging - Sort by packaging type
  • ProductStatus - Sort by product status
  • DigiKeyProductNumber - Sort by DigiKey part number
  • ManufacturerProductNumber - Sort by manufacturer part number
  • Manufacturer - Sort by manufacturer name
  • MinimumQuantity - Sort by minimum order quantity
  • QuantityAvailable - Sort by available quantity
  • Price - Sort by price
  • Supplier - Sort by supplier
  • PriceManufacturerStandardPackage - Sort by manufacturer standard package price

Sort orders: Ascending or Descending

Search Filters

You can apply these filters using the search_options parameter:

  • LeadFree - Lead-free products only
  • RoHSCompliant - RoHS compliant products only
  • InStock - In-stock products only
  • HasDatasheet - Products with datasheets
  • HasProductPhoto - Products with photos
  • Has3DModel - Products with 3D models
  • NewProduct - New products only

Usage Examples

Here are some practical examples of using the MCP server:

Basic Keyword Search

keyword_search("resistor", limit=10)

Search with Sorting

keyword_search("capacitor", limit=5, sort_field="Price", sort_order="Ascending")

Search with Filters

keyword_search("LED", limit=10, search_options="InStock,RoHSCompliant")

Get Product Details and Pricing

product_details("296-8875-1-ND")
get_product_pricing("296-8875-1-ND", requested_quantity=100)

Claude Desktop Integration

To use this server with Claude Desktop, add the following to your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "digikey": {
      "command": "uv",
      "args": ["run", "python", "digikey_mcp_server.py"],
      "cwd": "/path/to/project"
    }
  }
}

Replace /path/to/project with the actual path to your DigiKey MCP Server installation directory.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "digikey" '{"command":"uv","args":["run","python","digikey_mcp_server.py"],"cwd":"/path/to/project"}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "digikey": {
            "command": "uv",
            "args": [
                "run",
                "python",
                "digikey_mcp_server.py"
            ],
            "cwd": "/path/to/project"
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "digikey": {
            "command": "uv",
            "args": [
                "run",
                "python",
                "digikey_mcp_server.py"
            ],
            "cwd": "/path/to/project"
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later