果子狸MCP服务
Integrates with EasyEDA (嘉立创 EDA) professional edition, providing tools to list schematics, read board information, create/modify components, wires, net labels, run DRC, and analyze readability issues.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@果子狸MCP服务 List all schematic sheets in the project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
果子狸MCP服务
果子狸MCP服务把嘉立创 EDA / EasyEDA 专业版原理图连接到支持 MCP 的 AI 客户端。项目由两部分组成:
easyeda-extension/:安装在嘉立创 EDA 专业版中的扩展,只执行明确列入白名单的结构化操作。src/server.mjs:运行在本机的 MCP stdio 服务,同时监听127.0.0.1:49620-49629,供扩展自动发现和连接。
它不依赖 Run API Gateway,不开放 HTTP 代码执行接口,也不使用 eval、Function 或 AsyncFunction 执行外部代码。
主要功能
无需先打开图页即可列出当前工程中的全部原理图和图页。
读取页面、器件、PIN、导线和网络信息。
创建、批量移动、旋转、删除原理图器件及图元,并可将选定器件与完整导线折线作为一组平移。
创建导线、网络端口和网络标识,并提供按 PIN 方向放置端口的高层工具。
执行原理图 DRC,并原样返回当前 EasyEDA 版本提供的结果。
分析器件密度、交叉连线、网络端口方向等可读性问题。
每次 MCP 进程首次修改一份原理图前自动创建一次完整备份;同一会话后续操作复用该安全点。
在编辑器中显示连接状态悬浮框。
完整工具列表见 docs/EASYEDA_MCP_TOOLS.md,实现与协议见 docs/EASYEDA_MCP_ARCHITECTURE.md。
Related MCP server: a2n-easyeda-mcp
环境要求
嘉立创 EDA / EasyEDA 专业版
3.2.x。Node.js 20 或更高版本。
支持本地 stdio MCP 服务的客户端,例如 Codex。
安装扩展
从 GitHub Releases 下载最新版
guozili-mcp-service_v*.eext,或按“从源码构建”生成安装包。打开嘉立创 EDA 专业版的扩展管理器。
导入
.eext文件并启用“果子狸MCP服务”。停用 Run API Gateway,刷新一次编辑器页面。
顶部菜单进入“果子狸MCP服务”,可查看状态悬浮框、重新连接或停止连接。
安装本地 MCP 服务
git clone https://github.com/lyq11/guozili-mcp-service.git
cd guozili-mcp-service
npm install服务入口是 src/server.mjs。MCP 客户端应以 stdio 方式启动它;直接调试时也可以运行:
npm start以 Codex 的 config.toml 为例,将绝对路径替换为实际克隆位置:
[mcp_servers.guozili_easyeda]
command = "node"
args = ["C:\\path\\to\\guozili-mcp-service\\src\\server.mjs"]
startup_timeout_sec = 20
tool_timeout_sec = 120保存配置后重启 MCP 客户端或新开一个任务。打开原理图后调用 easyeda_health,应能看到 MCP、WebSocket RPC 和 EasyEDA 当前上下文。
连接方式
扩展启动后会自动扫描 49620-49629,找到协议匹配的本机 MCP 服务后注册。默认仅监听环回地址,不接受局域网或公网连接。
可用环境变量:
变量 | 作用 |
| 扫描端口范围起点,默认 |
| 扫描端口范围终点,默认 |
| 覆盖 MCP 服务端认证令牌;必须与自行构建的扩展保持一致 |
| 固定会话 ID,通常无需设置 |
| 向 stderr 输出 RPC 调试日志 |
发布包中的扩展使用内置的本机握手令牌。若要轮换令牌,请同时修改 easyeda-extension/src/protocol.ts 或通过自己的构建流程注入相同值。
从源码构建
npm install
npm run check
npm run test:pin-layout
npm run test:rpc
cd easyeda-extension
npm install
npm run check
npm run build生成的扩展包位于:
easyeda-extension/dist/guozili-mcp-service_v0.2.2.eext扩展安装并打开原理图后,可在仓库根目录执行联机冒烟测试:
npm run test:smoke安全边界
WebSocket 仅绑定
127.0.0.1。MCP 和扩展通过 RPC v1 与令牌握手。
插件只接受固定能力清单内的结构化方法。
请求体最大 2 MiB,认证及 RPC 均设有超时。
写操作串行执行,但一组 EasyEDA API 操作不是数据库事务;失败时可使用自动备份恢复。
许可证
本项目使用 Apache License 2.0,详见 LICENSE。果子狸图标为本项目生成的原创资产,可随本项目在同一许可证下使用。
Available Tools
10 toolscomponent_searchA
Search the EasyEDA device library and return stable library/device UUIDs and sourcing metadata.
Inputs: query (required), limit.
schematic_create_net_flagsC
Create standard power, ground, analog-ground, or protection-ground flags.
Inputs: flags (required), pageUuid (required), reason.
schematic_create_textsC
Create one or more human-readable schematic annotations.
Inputs: texts (required), pageUuid (required), reason.
schematic_create_wiresA
Create direct named wires. A net name can be assigned without placing a net port or label first.
Inputs: wires (required), pageUuid (required), reason.
schematic_delete_pageB
Delete one schematic page; the only remaining page cannot be deleted.
Inputs: pageUuid (required), reason.
schematic_delete_primitivesC
Delete components and wires by primitive ID.
Inputs: pageUuid (required), reason, wireIds, componentIds.
schematic_inspect_regionB
Read components and wires that touch a rectangular schematic region.
Inputs: top (required), left (required), right (required), bottom (required), +3 more.
schematic_move_componentsA
Move one or more existing part components to absolute schematic coordinates. Inspect the page first to obtain primitive IDs.
Inputs: pageUuid (required), movements (required), reason.
schematic_rename_pageC
Rename one schematic page directly.
Inputs: name (required), pageUuid (required), reason.
schematic_run_drcB
Run strict schematic DRC on a page. EasyEDA may return only aggregate counts in some versions.
Inputs: pageUuid (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct operation: inspection, library search, page management, DRC, primitive deletion, moving, and creating wires/net flags/texts. There is no meaningful overlap between create/delete/move/inspect operations.
Most tools follow the schematic_verb_noun pattern very consistently. component_search is the clear outlier, lacking the schematic_ prefix and using a noun-first convention instead.
Ten tools is well-scoped for schematic editing. Each tool fills a distinct role without redundant operations or excessive surface area.
Core schematic operations like inspecting, creating wires/net flags/texts, moving, deleting, renaming pages, and running DRC are covered. However, there is no way to create a new schematic page or place a library component from search results, leaving a notable workflow gap.
Maintenance
Related MCP Connectors
One connector for 15,000+ MCP servers plus your team's private MCPs, from any AI client.
Connect AI clients to your Dactic work context through a hosted MCP service.
MCP server for AI dialogue using various LLM models via AceDataCloud
BeautySpark MCP server for ChatGPT, Claude and other MCP clients
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables MCP clients to control JLCPCB EDA (嘉立创 EDA) for PCB and schematic design operations through a bridge and plugin architecture.38MIT
- AlicenseBqualityCmaintenanceEnables MCP clients to control EasyEDA Pro for schematic and PCB design through natural language, bridging the EasyEDA API without external AI or API keys.49MIT
- AlicenseNot gradedqualityCmaintenanceBridges JLCPCB/Lichuang EDA Pro with MCP clients to export and analyze schematic/PCB DRC, netlists, and BOMs, enabling automated diagnostics and data queries.4MIT
- AlicenseCqualityBmaintenanceConnects MCP clients to live EasyEDA Pro projects, enabling schematic and PCB inspection and editing through natural language.76268 npm43MIT