Skip to main content
Glama

SZLCSC MCP

中国国内立创商城 SZLCSC 向けの MCP Server。部品検索、中国国内の人民元での小ロット価格/在庫、パラメトリック選定、代替部品比較、Datasheet ダウンロード、EasyEDA EDA アセット、Altium SchLib/PcbLib/STEP 変換、および長期部品ライブラリ管理を提供します。

現在のバージョン:v0.5.0

主な機能

  • 中国国内 szlcsc.com の検索と C 番号 / MPN クエリ。

  • 中国国内の在庫、MOQ、パッケージと人民元の段階価格。欠損値は常に unknown のまま保持され、0 として扱われません。

  • パラメトリック検索、エンジニアリング単位の解析、部品の並列比較、代替部品のスコアリング。

  • Datasheet の一括同期、失敗診断、manifest。

  • EasyEDA Symbol / Footprint / SVG / OBJ / STEP の取得。

  • altium-cruncher 駆動の SchLib / PcbLib / 3D placement / merge。

  • C 番号を調達レコードの主キー、MPN + package を CAD 重複排除キーとして使用。

  • Altium 変換結果の pin/pad/3D 自動チェック + 強制的な手動レビューの案内。

Related MCP server: jlcpcb-mcp

v0.5.0:長期部品ライブラリ検索 / 監査 / セキュリティ修正

v0.4.5 の classified/ + flat/ デュアルビューアーカイブの上に、3 つのローカルライブラリ管理ツールを追加しました:

  • szlcsc_library_search:完全オフラインで C 番号、MPN、ブランド、パッケージ、分類、在庫、Datasheet/SchLib/PcbLib/STEP ステータスによる検索が可能で、relevance/price/stock/mpn ソートにも対応しています。

  • szlcsc_library_audit:classified の主要アセット、flat ミラーの SHA256、CAD owner/index、cad_shared、Altium ファイルの存在を読み取り専用でチェックします。

  • szlcsc_library_repair:デフォルトは dry_run=true。確実に復元できる flat ミラーと CAD owner/index の整合性のみを修復します。Datasheet の再ダウンロードはしませんし、CAD の再生成もしません。classified の主要ファイルが欠落している場合は unresolved として報告するだけです。

推奨メンテナンスフロー:

szlcsc_library_audit(...)
        ↓
szlcsc_library_repair(dry_run=true)
        ↓ 人工确认计划
szlcsc_library_repair(dry_run=false)
        ↓
szlcsc_library_audit(...)

正式なテスト要件はリポジトリに含まれています:

v0.4.5:分類済み長期ライブラリ + フラット閲覧ライブラリ

部品を szlcsc_library_add でライブラリに登録すると、Datasheet、SchLib、PcbLib、STEP が同時に 2 つのビューに入ります:

szlcsc-library/
├─ library-index.json
├─ classified/
│  ├─ datasheets/<立创类目>/类型-型号-C编号.pdf
│  ├─ schlib/<立创类目>/类型-型号-C编号.SchLib
│  ├─ pcblib/<立创类目>/类型-型号-C编号.PcbLib
│  ├─ 3d/<立创类目>/类型-型号-C编号.step
│  └─ reports/<立创类目>/类型-型号-C编号-*.json
├─ flat/
│  ├─ 类型-型号-C编号.pdf
│  ├─ 类型-型号-C编号.SchLib
│  ├─ 类型-型号-C编号.PcbLib
│  └─ 类型-型号-C编号.step
└─ merged/

例:

电压基准芯片-TPR3333-S3TR-C5291487.pdf
电压基准芯片-TPR3333-S3TR-C5291487.SchLib
电压基准芯片-TPR3333-S3TR-C5291487.PcbLib
电压基准芯片-TPR3333-S3TR-C5291487.step

classified/ は長期のプライマリストレージです。まずアセットタイプごとに分離し、次に立创カテゴリの階層に従って分類します。flat/ はフラットなミラーで、部品点数が少ない場合に直接参照しやすい構成です。データソースが最終レベルのカテゴリのみを返す場合は 1 階層の分類のみになります。完全な 一级/二级/末级 パスを返す場合は、階層ごとに自動保存されます。

szlcsc_library_merge は classified アーカイブを優先して読み込むため、一時的な altium/Cxxxx 変換ディレクトリを削除しても、アーカイブ済み CAD は引き続き再利用およびマージできます。

Altium 実機ステータス

v0.4.4 は Windows + Altium Designer で実機検証済みです:

  • altium-cruncher 2026.8.11.1

  • altium-monkey 2026.8.11.post1

  • wn-geometer 2026.6.10

  • easyeda-import: PASS

  • merge: PASS

  • 3D download / placement: PASS

  • C2040 smoke: PASS

  • C2040:57 個の Symbol ピン ↔ 57 個の Footprint パッド、手動チェックで照合

  • STEP:0°、0.0 mils の浮き高さ、Altium Designer で正常に開けます

C2040 の source EasyEDA レポートには 51/57 off-grid pin hotspots の warning が引き続き残っています。この warning は黙って無視されてはいませんが、今回の手動チェックでは構造的なブロッキング欠陥は見つかりませんでした。

詳細は docs/test-reports/v0.4.4-altium-live.md を参照してください。v0.4.5 のローカルリグレッションは 60 passed です。v0.5.0 では長期ライブラリ管理のリグレッションを追加し、67 passed となりました。詳細は docs/test-reports/v0.5.0.md を参照してください。

インストール

Python 3.11+:

py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -U pip
.\.venv\Scripts\pip.exe install -e .

MCP コマンド:

<项目路径>\.venv\Scripts\szlcsc-mcp.exe

あるいは:

uv tool install .

オプション:Altium コンバータ

SZLCSC MCP はサードパーティ製の altium-cruncher を同梱しません。Windows では次を実行できます:

powershell -ExecutionPolicy Bypass -File .\scripts\install-altium-cruncher.ps1

または手動で:

uv tool install altium-cruncher
uv tool update-shell
altium-cruncher version

続けて次を呼び出します:

szlcsc_altium_setup()
szlcsc_altium_status()

ready=true かつ status="ready" の場合のみ、Altium ツールチェーンがテスト可能であることを示します。

主な MCP Tools

Tool

用途

szlcsc_search

キーワード / MPN / C番号での検索

szlcsc_parametric_search

エンジニアリングパラメータの制約によるフィルタリング

szlcsc_get_part

部品の完全な詳細情報

szlcsc_compare_parts

複数部品の比較

szlcsc_find_alternatives

代替部品の候補とスコアリング

szlcsc_sync_datasheets

一括 Datasheet + manifest

szlcsc_eda_assets

EasyEDA Symbol / Footprint / OBJ / STEP

szlcsc_altium_setup

Altium ツールチェーン診断

szlcsc_altium_smoke_test

SchLib/PcbLib/3D/merge スモークテスト

szlcsc_altium_import

単一部品の Altium 変換

szlcsc_altium_import_batch

一括 Altium 変換

szlcsc_altium_review

変換レポートの確認

szlcsc_library_add

長期部品ライブラリへの登録 + CAD 重複排除 + デュアルビューアーカイブ

szlcsc_library_status

部品ライブラリのインデックスと分類ステータス

szlcsc_library_search

長期ライブラリのオフライン検索と CAD/アセットフィルタリング

szlcsc_library_audit

classified/flat/CAD owner の整合性監査

szlcsc_library_repair

dry-run 優先の安全なミラー/インデックス修復

szlcsc_library_sync

価格/在庫などの調達メタデータの更新

szlcsc_library_merge

分類ごとに SchLib/PcbLib をマージ

szlcsc_parse_barcode

立创包装袋の QR コード解析

完全な Agent 作業ルールは skills/szlcsc/SKILL.md を参照してください。

例

パラメトリック選定:

szlcsc_parametric_search(
  query="3.3V 电压基准",
  package="SOT-23",
  in_stock=true,
  max_price=5,
  constraints={
    "output_voltage": "=3.3V",
    "accuracy": "<=0.2%",
    "tempco": "<=30ppm/°C"
  }
)

長期ライブラリへの登録:

szlcsc_library_add(
  identifiers=["C2040", "C5291487"],
  library_root="D:/Components/SZLCSC-Library",
  altium_output_root="D:/Components/Altium",
  import_missing=true,
  dedupe_cad=true
)

ライブラリ内の検索:

szlcsc_library_search(
  library_root="D:/Components/SZLCSC-Library",
  query="TPR3333",
  in_stock=true,
  has_pcblib=true,
  has_step=true,
  sort_by="price"
)

監査と修復:

szlcsc_library_audit(library_root="D:/Components/SZLCSC-Library")
szlcsc_library_repair(library_root="D:/Components/SZLCSC-Library", dry_run=true)
# 确认 actions 后再 dry_run=false

分類ごとのマージ:

szlcsc_library_merge(
  library_root="D:/Components/SZLCSC-Library",
  output_dir="D:/Components/SZLCSC-Library/merged"
)

データとセキュリティの原則

  • 中国国内の調達結論は szlcsc.com を基準とし、国際版 LCSC の米ドル価格に黙って置き換えることはありません。

  • デフォルトでは、最小購入数量に対応する人民元の段階価格を比較します。

  • リバースエンジニアリングは行わず、CAPTCHA、ログイン、WASM 署名、その他のアクセス制御を迂回しません。

  • Datasheet は立创の添付ファイル CDN と、管理された公式メーカーの HTTPS PDF ドメインをサポートします。通常のアセットは引き続き SZLCSC/LCSC ドメインに制限されます。

  • EasyEDA/Altium の自動変換は製造上の正確性の証明にはなりません。基板発注の前に、メーカー Datasheet、Pin 1、ピン番号、パッドサイズ、3D の向きを必ず確認する必要があります。

License

MIT。altium-cruncher は独立したサードパーティ製ツールであり、独自のライセンスを使用します。本プロジェクトはそのソースコードを vendoring しません。

Available Tools

25 tools
szlcsc_altium_importC

调用本机 altium-cruncher,把指定 C 编号/MPN 的 EasyEDA 数据转换为 Altium SchLib/PcbLib/3D。

Inputs: identifier (required), preview, timeout, output_root, +9 more. Returns: result

szlcsc_altium_import_batchB

批量调用 altium-cruncher 生成 Altium 库;最多 50 个器件,逐个执行并分别报告失败。

Inputs: identifiers (required), preview, timeout, output_root, +3 more. Returns: result

szlcsc_altium_reviewA

读取已生成的 Altium EasyEDA 导入报告,汇总 pin/pad/3D placement 告警,不修改文件。

Inputs: identifier (required), output_root. Returns: result

szlcsc_altium_setupA

返回 Altium 转换工具链诊断和安全安装/升级命令;本工具本身不会执行安装。

Inputs: no named parameters. Returns: result

szlcsc_altium_smoke_testB

实机 Altium 冒烟测试:最多 5 个 C 编号,检查 SchLib/PcbLib/report/可选3D,并可测试合并。

Inputs: identifiers (required), preview, timeout, require_3d, +2 more. Returns: result

szlcsc_altium_statusB

检查可选第三方 altium-cruncher 是否已安装,以及 easyeda-import 子命令是否可用。

Inputs: no named parameters. Returns: result

szlcsc_cache_statusB

查看 SQLite 请求缓存;clear=true 清空;prune_days=N 清理 N 天以前缓存。

Inputs: clear, prune_days. Returns: result

szlcsc_compare_partsA

并排比较多个明确器件,返回基础字段和同名参数差异;不会自动声明可直接替换。

Inputs: identifiers (required). Returns: result

szlcsc_download_partB

下载并整理单个器件:part.json、README.md、datasheet.pdf(若可用)和商品图片。

Inputs: identifier (required), force, output_root. Returns: result

szlcsc_download_partsC

批量下载并整理多个器件完整资料目录。

Inputs: identifiers (required), force, output_root. Returns: result

szlcsc_eda_assetsC

下载 EasyEDA 原始 EDA 资产:CAD JSON、符号/封装 SVG、OBJ/STEP(若该器件提供)。

Inputs: identifier (required), force, include_obj, output_root, +2 more. Returns: result

szlcsc_find_alternativesC

获取 SZLCSC 替代料候选并排序。结果不是 drop-in 兼容声明。

Inputs: identifier (required), max_results, in_stock_only. Returns: result

szlcsc_get_partA

按 C 编号或明确 MPN 获取国内 SZLCSC 详情、参数、库存、价格、商品页和 Datasheet。

Inputs: identifier (required). Returns: result

szlcsc_healthcheckA

轻量检查 SZLCSC 搜索接口与本地缓存是否可用;不读取价格库存详情。

Inputs: query. Returns: result

szlcsc_library_addB

把器件登记进本地库;C编号保留采购元数据,MPN+封装用于 CAD 去重,可按需生成 Altium 库。

Inputs: identifiers (required), preview, timeout, dedupe_cad, +5 more. Returns: result

szlcsc_library_auditB

只读审计长期器件库:检查 classified/flat、CAD owner、索引与文件完整性。

Inputs: identifiers, library_root, verify_hashes. Returns: result

szlcsc_library_mergeB

按库分类把已登记的独立 SchLib/PcbLib 合并成多器件 Altium 库;共享 CAD 只合并一次。

Inputs: timeout, category, conflicts, output_dir, +1 more. Returns: result

szlcsc_library_repairA

安全修复长期器件库;默认 dry-run,只恢复 flat 镜像和 CAD owner/index 一致性,不重新下载或生成 CAD。

Inputs: dry_run, identifiers, repair_flat, library_root, +1 more. Returns: result

szlcsc_library_statusB

查看本地 SZLCSC/Altium 器件库索引、分类、重复 MPN/CAD 组和已登记器件。

Inputs: query, category, library_root, only_cad_owners. Returns: result

szlcsc_library_syncB

刷新库内价格、库存、Datasheet 等采购元数据;不会因这些变化重建 CAD,MPN/封装变化会标记复核。

Inputs: dedupe_cad, identifiers, library_root. Returns: result

szlcsc_parse_barcodeA

解析立创包装袋常见二维码文本(pc=C编号、pm=MPN、qty=数量);lookup=true 时顺便查询器件详情。

Inputs: raw (required), lookup. Returns: result

szlcsc_sync_datasheetsC

批量同步 Datasheet 到一个目录并增量维护 manifest.json;适合 BOM/MPN 列表。

Inputs: identifiers (required), force, output_dir. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools are cleanly separated by domain and action: search, parametric search, get, compare, alternatives, download, Altium import, and library management each have distinct purposes. A few adjacent pairs such as download_parts vs sync_datasheets and library_status vs library_audit require careful description reading, but the boundaries are mostly clear.

    Naming Consistency4/5

    All tools share the szlcsc_ prefix and the majority follow a domain_action pattern such as get_part, library_add, and altium_import. A handful of noun-style names like eda_assets, altium_status, and healthcheck prevent the set from being fully uniform.

    Tool Count3/5

    At 25 tools, the server sits at the upper edge of the heavy range and is larger than typical MCP servers. The count is understandable given the broad scope covering online search, artifact downloads, Altium conversion, and local library management, but it still feels slightly heavy.

    Completeness4/5

    The tool set covers the full workflow from online discovery and comparison to datasheet/EDA download, Altium conversion, and long-term local library management with audit and repair. The main gap is lifecycle management: parts can be added, merged, and synced, but there is no explicit tool to remove a part from the library.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      MCP servers for KiCad schematic, PCB, symbol, footprint, and project automation, enabling AI-assisted electronic design via tools for read/write, analysis, and exports.
      109
      521 PyPI
      16
      GPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for JLCPCB/LCSC component search, live stock and pricing, datasheets, and PCB/3D printing ordering via authenticated API.
      28
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that picks JLCPCB/LCSC parts for KiCad circuits with assembly cost in mind, automating part selection, stock risk checks, and quantity-tiered pricing.
      8
      4
      MIT