# Mouser

Search Mouser Electronics for electronic components, secondary source for prototype...

- Repository: https://github.com/aklofas/kicad-happy (1565 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add aklofas/kicad-happy --skill mouser -g -a claude-code -y`
Codex: `npx skills add aklofas/kicad-happy --skill mouser -g -a codex -y`
Cursor: `npx skills add aklofas/kicad-happy --skill mouser -g -a cursor -y`
Gemini CLI: `npx skills add aklofas/kicad-happy --skill mouser -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add aklofas/kicad-happy`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Mouser Electronics Parts Search & Analysis

## Related Skills

| Skill | Purpose |
|-------|---------|
| `kicad` | Schematic analysis, extracts MPNs for part lookup |
| `bom` | BOM management, orchestrates sourcing across distributors |
| `digikey` | Primary prototype source (prefer for datasheets, direct PDF links) |
| `spice` | Uses 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](https://www.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

The rest: https://github.com/aklofas/kicad-happy/blob/HEAD/skills/mouser/SKILL.md
