Mouser logo

Mouser

CommunityPopular
aklofas
mouser

Search Mouser Electronics for electronic components — secondary source for prototype orders. Find parts, check pricing/stock, download datasheets, analyze specifications. Use with KiCad for BOM creation and part selection. Also supports batch MPN-list seeding (`--mpn-list`) for bulk datasheet workflows without a KiCad project. Use this skill when the user specifically mentions Mouser, when DigiKey is out of stock or has worse pricing, when comparing prices across distributors, or when searching for parts that DigiKey doesn't carry. For package cross-reference tables and BOM workflow, see the `bom` skill.

Overview

Publisheraklofas
Repositorykicad-happy
Skill namemouser
Stars
1.2K
Forks
109
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aklofas on GitHub. Read the source before you install it.

Installation

Install the Mouser AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aklofas/kicad-happy.git /tmp/kicad-happy
mkdir -p .claude/skills
cp -r /tmp/kicad-happy/skills/mouser .claude/skills/mouser
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mouser in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mouser on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mouser is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Mouser Electronics Parts Search & Analysis

Related Skills

SkillPurpose
kicadSchematic analysis — extracts MPNs for part lookup
bomBOM management — orchestrates sourcing across distributors
digikeyPrimary prototype source (prefer for datasheets — direct PDF links)
spiceUses Mouser parametric data for behavioral SPICE models

Mouser is the secondary source for prototype orders — use when DigiKey is out of stock or has worse pricing. For production orders, see lcsc/jlcpcb. For BOM management and export workflows, see bom. For datasheets, prefer DigiKey's API (direct PDF links) — Mouser blocks automated PDF downloads.

API Credential Setup

Mouser uses simple API key authentication — no OAuth, no tokens, no callback URLs. The Search API key is a UUID passed as a query parameter.

Getting Your API Key

  1. Go to mouser.com → My Mouser → My Account
  2. Under "APIs" section, click "Manage"
  3. Register for Search API key — this is the one needed for part lookups and datasheet downloads
  4. Search API keys may require approval (status shows "pending authorization" initially)

Setting Credentials

Set the environment variable before running the scripts:

bash
export MOUSER_SEARCH_API_KEY=your-search-api-key-uuid

If credentials are stored in a central secrets file (e.g., ~/.config/secrets.env), load them first:

bash
export $(grep -v '^#' ~/.config/secrets.env | grep -v '^$' | xargs)

Mouser Search API Reference

All search endpoints use the Search API key as a query parameter: ?apiKey=<key>. Content-Type is application/json for all POST requests.

V1 Endpoints

Keyword Search
POST /api/v1/search/keyword?apiKey=<key>
json
{
  "SearchByKeywordRequest": {
    "keyword": "100nF 0402 ceramic capacitor",
    "records": 50,
    "startingRecord": 0,
    "searchOptions": "InStock"
  }
}
  • searchOptions: "None" | "Rohs" | "InStock" | "RohsAndInStock"
  • records: max 50 per request
  • startingRecord: offset for pagination
Part Number Search
POST /api/v1/search/partnumber?apiKey=<key>
json
{
  "SearchByPartRequest": {
    "mouserPartNumber": "GRM155R71C104KA88D|RC0402FR-0710KL",
    "partSearchOptions": "Exact"
  }
}
  • Up to 10 part numbers, pipe-separated (|)
  • Works with both Mouser part numbers AND manufacturer part numbers (MPNs)
  • partSearchOptions: "Exact" | "BeginsWith" | "Contains"

V2 Endpoints

V2 adds manufacturer filtering and pagination by page number.

Keyword + Manufacturer Search
POST /api/v2/search/keywordandmanufacturer?apiKey=<key>
json
{
  "SearchByKeywordMfrNameRequest": {
    "keyword": "LMR51450",
    "manufacturerName": "Texas Instruments",
    "records": 25,
    "pageNumber": 1,
    "searchOptions": "InStock"
  }
}

Note: the wrapper object name is SearchByKeywordMfrNameRequest (not SearchByKeywordMfrRequest — the V1 name is deprecated).

Part Number + Manufacturer Search
POST /api/v2/search/partnumberandmanufacturer?apiKey=<key>
Manufacturer List
GET /api/v2/search/manufacturerlist?apiKey=<key>

Returns the full list of manufacturer names for use in filtered searches.

V1 Deprecated Endpoints

These still work but V2 equivalents are preferred:

  • POST /api/v1/search/keywordandmanufacturer → use V2
  • POST /api/v1/search/partnumberandmanufacturer → use V2
  • GET /api/v1/search/manufacturerlist → use V2

Search Response Structure

All search endpoints return the same response format:

json
{
  "Errors": [],
  "SearchResults": {
    "NumberOfResult": 142,
    "Parts": [...]
  }
}

Key Part Fields

FieldTypeDescription
MouserPartNumberstringMouser's internal part number (prefixed, e.g., 81-GRM155R71C104KA88)
ManufacturerPartNumberstringManufacturer's part number (MPN) — use for cross-distributor matching
ManufacturerstringManufacturer name
DescriptionstringProduct description
CategorystringProduct category
DataSheetUrlstringURL to datasheet PDF (Mouser-hosted — see Datasheet section)
ProductDetailUrlstringURL to Mouser product page
ImagePathstringProduct image URL
AvailabilitystringHuman-readable stock text (e.g., "2648712 In Stock")
AvailabilityInStockstringNumeric stock quantity (as string)
AvailabilityOnOrderarrayIncoming stock: [{Quantity, Date}]
LeadTimestringFactory lead time (e.g., "84 Days")
LifecycleStatusstring|null"New Product", "End of Life", etc.
IsDiscontinuedstring"true" or "false" (string, not boolean)
SuggestedReplacementstringReplacement MPN if discontinued
MinstringMinimum order quantity (as string)
MultstringOrder multiple (as string)
ReelingboolTape-and-reel packaging available
ROHSStatusstringRoHS compliance status
PriceBreaksarrayTiered pricing: [{Quantity, Price, Currency}]
ProductAttributesarrayParametric specs: [{AttributeName, AttributeValue}]
AlternatePackagingsarray|nullAlternate packaging MPNs: [{APMfrPN}]
SurchargeMessagesarrayTariff/surcharge info: [{code, message}]
ProductCompliancearrayHTS codes, ECCN: [{ComplianceName, ComplianceValue}]
UnitWeightKgobject{UnitWeight: <float>} in kg

Quirks and Gotchas

  • Price is a string with currency symbol: "$0.10", not a float. Parse it before comparing.
  • Stock is a string: AvailabilityInStock returns "2648712" not 2648712.
  • IsDiscontinued is a string: "true" or "false", not boolean.
  • Mouser part numbers have prefixes: 81-GRM155R71C104KA88 — the prefix is Mouser-specific. Use ManufacturerPartNumber for cross-referencing.
  • V2 wrapper names differ from V1: V2 uses SearchByKeywordMfrNameRequest, not SearchByKeywordMfrRequest.
  • Tariff info: SurchargeMessages may contain US tariff percentages — useful for cost estimation.
  • On-order data: AvailabilityOnOrder shows incoming stock quantities and expected dates.

Datasheet Download & Sync

Mouser's DataSheetUrl field points to Mouser-hosted URLs (mouser.com/datasheet/...). These URLs block automated downloads — they return an HTML "Access denied" page when fetched with Python/curl/wget, even with browser User-Agent headers. The download scripts handle this with a multi-strategy approach:

  1. Try the Mouser datasheet URL directly (works for some parts)
  2. Scrape the Mouser product page HTML for alternative datasheet links
  3. Try manufacturer-specific alternative URL patterns

Note: Mouser's product pages return 403 for most automated requests, so strategy 2 has limited success. DigiKey and LCSC are more reliable datasheet sources.

Datasheet Directory Sync

Use sync_datasheets_mouser.py to maintain a datasheets/ directory alongside a KiCad project. Same workflow and manifest.json format as the DigiKey skill.

bash
# Sync datasheets for a KiCad project
python3 <skill-path>/scripts/sync_datasheets_mouser.py <file.kicad_sch>

# Preview what would be downloaded
python3 <skill-path>/scripts/sync_datasheets_mouser.py <file.kicad_sch> --dry-run

# Retry previously failed downloads
python3 <skill-path>/scripts/sync_datasheets_mouser.py <file.kicad_sch> --force

# Custom output directory
python3 <skill-path>/scripts/sync_datasheets_mouser.py <file.kicad_sch> -o ./my-datasheets

# Parallel downloads (3 workers)
python3 <skill-path>/scripts/sync_datasheets_mouser.py <file.kicad_sch> --parallel 3

# Batch mode — sync from a plain MPN list (no KiCad project required)
python3 <skill-path>/scripts/sync_datasheets_mouser.py --mpn-list mpns.txt --output ./datasheets

MPN-list batch mode (KH-312) — when you have a list of MPNs but no KiCad project to point at (harness datasheet seeding, bulk part-library seeding). One MPN per line; blank lines and # comments (full-line and inline) are skipped; generic values (100nF, DNP) are filtered via is_real_mpn() and de-duplicated. Output defaults to ./datasheets/ in the current working directory when --output is omitted.

Rate limiting — the script paces API calls with a 1.0s delay between requests by default (Mouser's Search API allows 30 calls/min on the free tier; 1.0s stays comfortably under). Override with --delay <seconds> if you have a higher-tier key or want to slow things down further.

Single Datasheet Download

Use fetch_datasheet_mouser.py for one-off downloads.

bash
# Search by MPN (uses Mouser API)
python3 <skill-path>/scripts/fetch_datasheet_mouser.py --search "TPS61023DRLR" -o datasheet.pdf

# Direct URL download
python3 <skill-path>/scripts/fetch_datasheet_mouser.py "https://example.com/datasheet.pdf" -o datasheet.pdf

# JSON output
python3 <skill-path>/scripts/fetch_datasheet_mouser.py --search "ADP1706" --json

Download Strategy

The scripts try multiple sources in order:

  1. Schematic URL — uses the datasheet URL embedded in the KiCad symbol (sync only)
  2. Mouser API search — gets the DataSheetUrl from the API response
  3. Alternative manufacturer sources — tries known URL patterns for major manufacturers (TI, Microchip, etc.) when the Mouser URL is blocked
  4. Headless browser fallback — if playwright is installed, uses headless Chromium as a last resort

When all methods fail, provide the ProductDetailUrl to the user so they can download from the Mouser product page in their browser.

Web Search Fallback

If no API key is available, search Mouser by fetching product pages directly:

  • Search URL: https://www.mouser.com/c/?q=<query>
  • Product pages contain full specs, pricing tiers, stock, datasheets
  • Results from Mouser can be noisy (JS-heavy pages)

Include key parameters in the query:

  • Passives: value, package (0402/0603/0805), tolerance, voltage/power rating, dielectric (C0G/X7R)
  • ICs: part number or function, package (QFN/SOIC/TSSOP), key specs (voltage, current, interface)
  • Connectors: type (USB-C, JST-PH), pin count, pitch, mounting (SMD/THT), orientation

Tips

  • Pipe-separate up to 10 part numbers in a single PartNumber search for batch lookups
  • Min and Mult fields matter — some parts have minimum order qty or must be ordered in multiples
  • SurchargeMessages may include US tariff percentages — factor into cost estimates
  • AvailabilityOnOrder shows incoming stock with expected dates
  • Check IsDiscontinued and LifecycleStatus before selecting parts

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mouser AI skill do?

Search Mouser Electronics for electronic components — secondary source for prototype orders. Find parts, check pricing/stock, download datasheets, analyze specifications. Use with KiCad for BOM creation and part selection. Also supports batch MPN-list seeding (`--mpn-list`) for bulk datasheet workflows without a KiCad project. Use this skill when the user specifically mentions Mouser, when DigiKey is out of stock or has worse pricing, when comparing prices across distributors, or when searching for parts that DigiKey doesn't carry. For package cross-reference tables and BOM workflow, see th...

Why use Mouser on TypingMind?

Because you install it once and use it with any model. Mouser is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mouser in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aklofas/kicad-happy/tree/main/skills/mouser. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mouser?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mouser?

As many as you like. As long as a model supports skills, you can use Mouser with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mouser AI skill free?

Yes. It is published on GitHub by aklofas under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇