Skip to main content
Glama

digikey-datasheet-mcp

Ask your AI about real parts: DigiKey search, live stock and pricing, BOM costing, LCSC lookup, and datasheets it actually reads.

CI License: MIT Python 3.10+ MCP

English | 繁體中文

An MCP server for Claude, Cursor, VS Code and any other MCP client. It turns "find me a 3.3 V LDO in SOT-23 that's in stock" or "what's the absolute max on the EN pin?" into answers backed by DigiKey's official API and the part's own datasheet, with page numbers.

An example session (numbers are illustrative):

You:     Find a 3.3 V, 500 mA LDO in SOT-23-5 under $0.50 at 100 pcs, then tell me
         its dropout voltage and what the EN pin does.

Claude:  → search_parts("LDO 3.3V 500mA SOT-23-5", in_stock=true, sort="price")
         → get_price("TPS7A2033PDBVR", 100)
         → datasheet_section("TPS7A2033PDBVR", "electrical_characteristics")
         → datasheet_section("TPS7A2033PDBVR", "pinout")

         TPS7A2033PDBVR (Texas Instruments): $0.21 each at 100 pcs on cut tape,
         41,000 in stock. Dropout is 180 mV typ / 300 mV max at 300 mA (p. 6).
         EN is pin 3, active high, and must not be left floating (p. 4)...

Why this one

  • Reads datasheets, not just links to them. Finds the pinout, absolute maximum ratings, recommended operating conditions, electrical characteristics, thermal, package and ordering sections (from PDF bookmarks, or headings when there are none) and hands the model just those pages, plus a best-effort pin table. Works on any PDF URL, not only DigiKey's.

  • Real buying answers. get_price picks the cheapest packaging that covers your quantity (cut tape vs. full reel, skipping Digi-Reel fees) and shows the next price break. price_bom costs a whole BOM for N boards and flags missing, out-of-stock and obsolete parts.

  • Compare and replace. Side-by-side parameter tables, and DigiKey's own substitutes for parts that went obsolete.

  • Works without keys too. search_lcsc (LCSC / JLCPCB assembly parts) and the datasheet tools on a URL need no account. Add DigiKey keys when you want the rest.

  • Your keys stay yours. Runs locally over stdio. Credentials go to api.digikey.com and nowhere else. Every tool is read-only: no carts, no orders.

  • Tested. 58 tests against a mocked DigiKey API and generated PDFs, on Linux, macOS and Windows, Python 3.10 to 3.13.

Related MCP server: jlcpcb-search-mcp

Tools

Tool

What it does

Needs DigiKey keys

search_parts

Keyword / part-number search with in-stock, RoHS, sort and manufacturer filters

✓

get_part

Every parameter, packaging options and price breaks, lifecycle, RoHS, lead time

✓

get_price

Best price for a quantity, across packaging types, with the next price break

✓

find_alternatives

DigiKey substitutes (direct, similar, upgrade) with stock and price

✓

compare_parts

Markdown comparison table of 2 to 6 parts, highlighting what differs

✓

price_bom

Cost a BOM (up to 100 lines) for N boards, with warnings

✓

search_lcsc

LCSC / JLCPCB parts: LCSC code, stock, price, basic/preferred status

datasheet_outline

Page count, bookmarks and where each key section starts

for part numbers

datasheet_section

Text of one section (pinout, absolute_maximum_ratings, electrical_characteristics, ...)

for part numbers

datasheet_search

Find a term (e.g. "I2C address", "quiescent current") with page numbers

for part numbers

datasheet_pages

Raw text of a page range

for part numbers

The datasheet tools take either a part number (looked up on DigiKey) or a datasheet URL (no keys needed).

Install

You need uv. uvx downloads and runs the server, so there is nothing else to install.

Claude Code

claude mcp add digikey \
  -e DIGIKEY_CLIENT_ID=your-client-id \
  -e DIGIKEY_CLIENT_SECRET=your-client-secret \
  -- uvx digikey-datasheet-mcp

Claude Desktop, Cursor, VS Code, Windsurf...

Add this to the client's MCP config (claude_desktop_config.json, .cursor/mcp.json, ...):

{
  "mcpServers": {
    "digikey": {
      "command": "uvx",
      "args": ["digikey-datasheet-mcp"],
      "env": {
        "DIGIKEY_CLIENT_ID": "your-client-id",
        "DIGIKEY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Leave out env to start with only the LCSC and datasheet-URL tools.

"args": ["--from", "git+https://github.com/Sharkeeeeeee/digikey-datasheet-mcp", "digikey-datasheet-mcp"]

Get DigiKey API keys (free, about 3 minutes)

  1. Sign in at developer.digikey.com with a DigiKey account.

  2. Organizations → create one (any name) → Production Apps → Create Production App.

  3. Give it a name, any OAuth callback URL (e.g. https://localhost), and tick ProductInformation V4.

  4. Open the app and copy the Client ID and Client Secret.

  5. Check them:

    DIGIKEY_CLIENT_ID=... DIGIKEY_CLIENT_SECRET=... uvx digikey-datasheet-mcp --check
    # OK: DigiKey production API reachable, 1234 results for NE555 (site US, USD).

DigiKey's default quota for a new app is around 1,000 requests per day, plenty for interactive use. This server uses the 2-legged (client credentials) flow, so there is no browser login.

Configuration

Variable

Default

Meaning

DIGIKEY_CLIENT_ID / DIGIKEY_CLIENT_SECRET

Your DigiKey app credentials

DIGIKEY_LOCALE_SITE

US

DigiKey site, e.g. TW, DE, UK, JP, CN

DIGIKEY_LOCALE_CURRENCY

USD

Price currency, e.g. TWD, EUR, GBP, JPY

DIGIKEY_LOCALE_LANGUAGE

en

Description language, e.g. zht, de, ja

DIGIKEY_CUSTOMER_ID

0

Your customer number, for account-specific pricing

DIGIKEY_SANDBOX

false

true to use a Sandbox app

DIGIKEY_MCP_CACHE_DIR

~/.cache/digikey-datasheet-mcp

Where extracted datasheet text is cached

DATASHEET_MAX_MB

50

Largest PDF to download

LCSC_SEARCH_URL

https://jlcsearch.tscircuit.com

LCSC index; point at a self-hosted jlcsearch if you like

How datasheet reading works

  1. The PDF is downloaded once (following a landing page to its PDF link if needed) and its text is cached on disk, page by page.

  2. Sections are located from the PDF's bookmarks when present. Otherwise the server looks for heading-like lines (6.1 Absolute Maximum Ratings) and ignores the table of contents and in-sentence mentions ("see Absolute Maximum Ratings").

  3. datasheet_section returns the section from its heading up to the next known section, across page breaks, with [page N] markers so answers can cite pages.

Limits worth knowing: scanned (image-only) PDFs have no text and are reported as such; tables come out as text rows, so the model reads columns from context; the pin table is a heuristic and is labelled pins_guess. Some manufacturer sites block automated downloads; then pass a direct PDF link.

Example prompts

  • "Cost this BOM for 50 boards and tell me what's out of stock:" followed by a pasted BOM

  • "Compare TPS7A2033PDBVR, AP2112K-3.3TRG1 and MCP1700T-3302E/TT for a battery-powered sensor."

  • "LM1117 is obsolete in my design. What are drop-in replacements in stock?"

  • "From the STM32F103C8 datasheet, list the 5 V tolerant pins."

  • "Find a JLCPCB basic part for a 10 kΩ 0402 resistor."

Development

git clone https://github.com/Sharkeeeeeee/digikey-datasheet-mcp
cd digikey-datasheet-mcp
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .

Try it in the MCP Inspector: npx @modelcontextprotocol/inspector uv run digikey-datasheet-mcp.

License

MIT. Not affiliated with or endorsed by DigiKey, LCSC or JLCPCB. Product data comes from their services and is subject to their terms.

Available Tools

11 tools
compare_partsB
Read-onlyIdempotent

Side-by-side comparison of 2-6 parts. Returns a Markdown table of the parameters they share plus price and stock.

Inputs: part_numbers (required). Returns: object

datasheet_outlineA
Read-onlyIdempotent

Open a datasheet and list what is where: page count, PDF bookmarks, and the pages of key sections (pinout, absolute maximum ratings, electrical characteristics...).

Inputs: source (required). Returns: object

datasheet_pagesB
Read-onlyIdempotent

Raw text of a page range (1-based, inclusive) from a datasheet.

Inputs: source (required), first_page (required), last_page, max_chars. Returns: object

datasheet_sectionA
Read-onlyIdempotent

Return the text of one datasheet section with page numbers. For 'pinout' it also returns a best-effort pin table.

Inputs: source (required), section (required), max_chars. Returns: object

find_alternativesA
Read-onlyIdempotent

DigiKey's substitutes for a part (direct, similar, upgrade...), with stock and price. Useful for out-of-stock or obsolete parts.

Inputs: part_number (required), limit. Returns: object

get_partA
Read-onlyIdempotent

Full DigiKey record for one part: every parameter, packaging options with price breaks, stock, lifecycle, RoHS, lead time, datasheet URL.

Inputs: part_number (required). Returns: object

get_priceA
Read-onlyIdempotent

Price a quantity of one part: picks the cheapest packaging (cut tape, tray, reel...) that covers the quantity and shows the next price break.

Inputs: part_number (required), quantity. Returns: object

price_bomA
Read-onlyIdempotent

Cost a bill of materials on DigiKey: best packaging per line, line totals, grand total, and warnings for missing, out-of-stock or obsolete parts.

Inputs: items (required), build_quantity. Returns: object

search_lcscA
Read-onlyIdempotent

Search LCSC / JLCPCB assembly parts (no API key needed). Shows LCSC code, stock, price and JLCPCB basic/preferred status.

Inputs: query (required), limit, package. Returns: object

search_partsB
Read-onlyIdempotent

Search DigiKey by keyword or part number. Returns stock, unit price, status, datasheet URL and key parameters.

Inputs: query (required), rohs, sort, limit, +2 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation4/5

    Tools are mostly clearly separated by resource and action: supplier search, part lookup, pricing, alternatives, comparison, BOM costing, and datasheet navigation. Minor overlap exists between get_part and get_price since the full part record already includes packaging price breaks, and datasheet_section versus datasheet_pages could be mildly confused, but descriptions clarify intent.

    Naming Consistency4/5

    Nearly all names are snake_case and readable, with a mostly verb_noun pattern such as search_parts, get_part, get_price, compare_parts, price_bom. The datasheet tools switch to a noun-prefixed pattern (datasheet_outline, datasheet_section, etc.), which is consistent within that group but a minor deviation from the overall verb-first convention.

    Tool Count5/5

    Eleven tools is a well-scoped size for a component-sourcing and datasheet-reading server. Each tool covers a distinct workflow step from supplier search through BOM costing and datasheet navigation, with little apparent redundancy.

    Completeness4/5

    The surface covers the core lifecycle well: search and detail lookup, quantity pricing, alternatives, part comparison, BOM costing, LCSC lookup, and datasheet outline/section/search/pages. Minor gaps remain, such as a dedicated LCSC part-detail tool or cross-supplier part matching beyond DigiKey substitutes, but the primary research workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables searching and filtering over 1.5 million electronic components across JLCPCB, Mouser, and DigiKey using parametric queries and smart parsing. It supports finding alternative parts, accessing pinout data, and downloading KiCad footprints directly through AI coding assistants.
      17
      152
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search JLCPCB's 450K+ electronic component catalog with real-time stock levels and pricing, supporting keyword search, filtering, and detailed component information.
      4
      24 PyPI
      9
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and retrieving electronic component data from DigiKey, Mouser, Farnell, and jlcsearch/LCSC, including stock, pricing, parameters, URLs, and datasheets, with unified search across enabled suppliers.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects AI assistants to a ~960,000-product electronics catalog across 955 categories, enabling keyword and parametric-filter search, stock and price lookups, substitute finding, BOM cost checking, and datasheet download/reading. Runs locally and requires no API key, membership, or fee.
      11
      25 npm
      33
      MIT