lcsc

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 see

By aklofas · 440 installs

npx skills add aklofas/kicad-happy --skill lcsc

Source repository · Upstream listing

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. 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 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 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 : 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 : LCSC Direct Product Detail (enrichment) For manufacturer, datasheet URL and price breaks, query LCSC's own endpoint by Cxxxxx code — no auth, JSON, code: 200 on success: Useful result fields: productModel (MPN), brandNameEn (manufacturer), pdfUrl (direct datasheet PDF), encapStandard (package), productIntroEn / productDescEn (description), stockNumber (LCSC stock), productPriceList[] ( ladder = min qty, usdPrice ). fetch datasheet lcsc.search lcsc direct() wraps this and normalizes the result to the jlcsearch dict shape ( extra.number , extra.mpn , extra.manufacturer.name , extra.datasheet.pdf , ladder list in price ); search lcsc.py uses it for Cxxxxx enrichment and as the fallback when jlcsearch has no row. Rate Limits Neither API documents rate limits, but be respectful — use delays of 0.5s between calls. Datasheet Download & Sync LCSC's CDN serves datasheet PDFs directly — no bot protection, no special headers needed. This makes LCSC a reliable datasheet source alongside DigiKey. Datasheet Directory Sync Use sync datasheets lcsc.py to maintain a datasheets/ directory alongside a KiCad project. Same workflow and manifest.json format as the DigiKey and Mouser skills. No API key required. MPN list batch mode (KH 312) — when you have a list of MPNs but no KiCad project to point at. One MPN per line; blank lines and comments (full line and inline) are skipped; generic values are filtered via is real mpn() and de duplicated. Output defaults to ./datasheets/ in the current working directory when output is omitted. The script: Runs the kicad schematic analyzer to extract components, MPNs, and LCSC codes Accepts any identifier — MPN, LCSC code, or other distributor PNs from KiCad symbol properties Prefers LCSC code for search (exact match) — falls back to MPN keyword search Falls back to wmsc.lcsc.com API when jlcsearch has no results, or a hit has no datasheet URL, for an LCSC code (Cxxxxx) Downloads from LCSC CDN — direct PDF URLs, no bot protection Writes manifest.json manifest — same format as DigiKey/Mouser skills Verifies PDF content — checks MPN, manufacturer, and description keywords Rate limited — 0.5s between API calls (configurable with delay ) Saves progress incrementally — safe to interrupt Single Datasheet Download Use fetch datasheet lcsc.py for one off downloads. The script: OS agnostic — uses requests → urllib → playwright fallback chain (no wget/curl) Validates PDF headers — rejects HTML error pages Falls back to alternative manufacturer sources when LCSC URL fails Exit codes : 0 = success, 1 = download failed, 2 = search/API error Dependencies : pip install requests (recommended; urllib fallback works fine for LCSC) pip install playwright && playwright install chromium (optional; rarely needed for LCSC) LCSC Official API (Requires Approval) Base URL: https://ips.lcsc.com . Requires API key + signature authentication. Contact support@lcsc.com for access. Rarely needed — jlcsearch covers most use cases. Web Search Fallback If the jlcsearch API is unavailable, search LCSC by fetching the website directly: Cross Referencing & Missing Equivalents LCSC part numbers are specific to the LCSC/JLCPCB ecosystem. Use the mfr field (MPN) to cross reference on DigiKey/Mouser. When an MPN has no exact LCSC match: 1. Search by key parameters (e.g., "100nF 0402 X7R 16V") 2. Look for pin compatible alternatives from Chinese manufacturers 3. Verify specs and footprint match — pad dimensions can vary even within the same package size 4. As a last resort, mark as "consigned" and source separately Tips is basic field matters — JLCPCB basic parts have no setup fee; extended parts cost $3 each jlcsearch stock is JLCPCB assembly stock; the wmsc detail's stockNumber is LCSC's own stock — the two differ MOQ and order multiples are no longer in the jlcsearch response — check the LCSC product page before ordering Datasheet quality varies for Chinese manufacturers — cross reference MPN on DigiKey for better docs