lcsc
Search LCSC Electronics for electronic components — find parts by LCSC number (Cxxxxx) or MPN, check stock/pricing, download datasheets, analyze specifications.
Skill by aklofas
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aklofas-lcsc
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, productivity, finance, api-integration, document-processing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/lcsc
What's inside
- Skill name
lcsc- Description
- Search LCSC Electronics for electronic components — find parts by LCSC number (Cxxxxx) or MPN, check stock/pricing, download datasheets, analyze specifications. Sister company to JLCPCB, same parts library. Sync and maintain a local datasheets directory for a KiCad project, or use batch MPN-list seeding (`--mpn-list`) for bulk workflows without a project. No API key needed — uses the free jlcsearch community API. Use this skill when the user mentions LCSC, JLCPCB parts library, JLCPCB assembly parts, production sourcing, Cxxxxx part numbers, needs to find LCSC equivalents for parts, is preparing a BOM for JLCPCB assembly, or wants to download datasheets and LCSC is available. For package cross-reference tables and BOM workflow, see the `bom` skill.
- License
- MIT
- Instructions
- 238 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (5)
- SKILL.md
- fetch_datasheet_lcsc.py · scripts/
- search_lcsc.py · scripts/
- sync_datasheets_lcsc.py · scripts/
- test_search_lcsc.py · scripts/
SKILL.md (first lines)
# LCSC Electronics — Component Search, Datasheets & Ordering
## Related Skills
| Skill | Purpose |
|-------|---------|
| `kicad` | Schematic analysis — extracts MPNs for part lookup |
| `bom` | BOM management — orchestrates sourcing across distributors |
| `jlcpcb` | PCB assembly — shares the same parts library |
| `spice` | Uses LCSC parametric data for behavioral SPICE models (no auth needed) |
LCSC is JLCPCB's sister company — they share the same parts library and `Cxxxxx` part numbers. Use LCSC for **production sourcing** (assembled boards from JLCPCB/PCBWay). DigiKey/Mouser are for prototyping. For BOM management and export workflows, see `bom`.
## Key Differences from DigiKey/Mouser
- **No API key needed** — jlcsearch community API is free and open
- **Lower prices** — especially for passives and Chinese-manufactured ICs
- **JLCPCB integration** — same LCSC part numbers used in JLCPCB assembly BOMs
- **Direct PDF downloads** — LCSC's CDN (wmsc.lcsc.com) serves datasheets without bot protection
- **Low MOQ** — many parts available in quantities as low as 1
- **Warehouses** — Shenzhen (JS), Zhuhai (ZH), Hong Kong (HK)
- **Website**: `https://www.lcsc.com`
## LCSC Part Numbers
Format: `Cxxxxx` (e.g., `C14663`). This is the universal identifier across both LCSC and JLCPCB. Use it for:
- Direct ordering on LCSC
- BOM matching in JLCPCB assembly (see `jlcpcb` skill)
- Cross-referencing between platforms
## Component Search
Use `search_lcsc.py` to search LCSC and JLCPCB for electronic components, check live stock, inspect pricing tiers, identify basic vs. extended parts, and fetch parametric attributes. **No API key required.**
```bash
# Search by keyword or description
python3 <skill-path>/scripts/search_lcsc.py "tactile switch"
# Search for basic parts only (no JLCPCB extended loading fees)
python3 <skill-path>/scripts/search_lcsc.py "0805 100R" --basic
# Filter by package/footprint and stock
python3 <skill-path>/scripts/search_lcsc.py "red led" --package 0805 --in-stock
# Inspect full component details (manufacturer, datasheet URL, price breaks, parametric attributes)
python3 <skill-path>/scripts/search_lcsc.py "C318884" --details
# Output machine-readable JSON (for scripts and agent workflows)
python3 <skill-path>/scripts/search_lcsc.py "ME2108" --limit 5 --json
# Sort results by price or stock
python3 <skill-path>/scripts/search_lcsc.py "microcontroller STM32" --sort price
# Parametric category search (rows carry package, stock, price and attributes)
python3 <skill-path>/scripts/search_lcsc.py "STM32" --category microcontrollers
```
The script:
- Queries the free `jlcsearch` community API for the search, then enriches from LCSC's direct product-detail endpoint (manufacturer, datasheet URL, price breaks) for exact `Cxxxxx` queries and for every hit shown with `--details` — one extra request per hit, 0.5s apart. If jlcsearch has no row for a `Cxxxxx` code, the direct lookup is the fallback.
- Formats results into a clean terminal table highlighting `LCSC #`, `MPN`, `Package`, `Basic/Ext` status, `Stock`, `Price`, and `Description`
- Supports `--basic` filtering to optimize PCB assembly BOM costs for JLCPCB manufacturing
- Supports `--json` for automated BOM enrichment and agent workflows
## jlcsearch API Reference
The jlcsearch community API is the recommended way to search LCSC. **No authentication required.**
**Base URL:** `https://jlcsearch.tscircuit.com`
### General Search
```
GET /api/search?q=<query>&limit=20&full=true
```
Parameters:
- `q` — search query (matches MPN, LCSC code, or description keywords)
- `package` — optional footprint filter (e.g., `0402`)
- `limit` — max results (default 100)
- `full` — accepted but no longer adds fields (the former `extra` block is gone, see below)
### Category-Specific Search
```
GET /resistors/list.json?search=10k+0402
GET /capacitors/list.json?search=100nF+0402
GET /microcontrollers/list.json?search=STM32
GET /voltage_regulators/list.json?search=3.3V
```
### Response Format
General search returns `{"components": [...]}`. As of 2026-09 each hit carries only these fields — the `extra` block (manufacturer, datasheet URL, per-warehouse stock, attributes, price breaks) is no longer returned, even with `full=true`:
```json
{
"lcsc": 318884,
"mfr": "TS-1187A-B-A-B",
"package": "SMD-4P,5.1x5.1mm",
"is_basic": true,
"is_preferred": false,
"description": "-30℃~+85℃ 1.5mm 1.6N ... SMD-4P,5.1x5.1mm Tactile Switches ROHS",
"stock": 1683297,
"price": 0.0197
}
```
Key fields:
- `lcsc` — numeric LCSC ID (without "C" prefix); prepend `C` for the LCSC code
- `mfr` — manufacturer part number (no manufacturer name)
- `is_basic` — `true` if JLCPCB basic part (no setup fee); `is_preferred` — JLCPCB preferred extended part
- `stock` / `price` — JLCPCB assembly stock and unit price (USD)
Category endpoints return `{"<category>": [...]}` — keyed by the category name, **not** `components`. Rows differ from the general search: `price1` instead of `price`, `in_stock`, an empty `description`, parametric columns (e.g. `resistance`, `cpu_core`), and `attributes` as a JSON **string**:
```json
{"resistors": [{"lcsc": 25804, "mfr": "0603WAF1002T5E", "description": "", "stock": 37165617,
"price1": 0.000842857, "in_stock": true, "package": "0603", "resistance": 10000,
"is_basic": true, "is_preferred": false,From aklofas/kicad-happy, MIT.
More from aklofas/kicad-happy
- 0.832score
bom
aklofas
BOM (Bill of Materials) management for electronics projects — the workflow skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
spice
aklofas
Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
mouser
aklofas
Search Mouser Electronics for electronic components — secondary source for prototype orders.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
emc
aklofas
EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
element14
aklofas
Search Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
digikey
aklofas
Search DigiKey for electronic components and download datasheets — primary source for prototype orders and the preferred API method for fetching datasheets.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
datasheets
aklofas
Extract structured specifications from electronic component datasheet PDFs — pinouts, electrical characteristics, peripherals, topology, and features.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.826score
jlcpcb
aklofas
JLCPCB PCB fabrication and assembly — BOM/CPL generation, basic vs extended parts, assembly constraints, design rules, ordering workflow.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.821score
kicad
aklofas
Analyze KiCad projects and PDF schematics: schematics, PCB layouts, Gerbers, footprints, symbols, netlists, and design rules.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.693score
pcbway
aklofas
PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.587score
Cursor rules · aklofas/kicad-happy
aklofas
1 Cursor rule file from aklofas/kicad-happy: kicad-happy.
TemplateAFreshness: A★ 1.5KCursor
Signals
- Stars
- 1,497
- Forks
- 131
- Open issues
- 3
- Last commit (this folder)
- Oct 5, 2026 (22 days ago)
- Last release
- Oct 23, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/aklofas/kicad-happy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aklofas
- 0.832score
bom
aklofas
BOM (Bill of Materials) management for electronics projects — the workflow skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
spice
aklofas
Run automatic SPICE simulations on subcircuits detected from KiCad schematic analysis — validates filter frequencies, divider ratios, opamp gains, LC…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
mouser
aklofas
Search Mouser Electronics for electronic components — secondary source for prototype orders.
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
emc
aklofas
EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
element14
aklofas
Search Newark, Farnell, and element14 for electronic components — find parts by MPN or distributor part number, check pricing/stock, download datasheets…
SkillAFreshness: A★ 1.5KClaude Code +9 - 0.832score
digikey
aklofas
Search DigiKey for electronic components and download datasheets — primary source for prototype orders and the preferred API method for fetching datasheets.
SkillAFreshness: A★ 1.5KClaude Code +9
Cite this page
lcsc skill. Agent Mart. https://agentmart.dev/skills/aklofas-lcsc (last updated 2026-10-24)