a2n-easyeda-mcp
Enables MCP clients to control EasyEDA Pro for schematic and PCB design through natural language, bridging the EasyEDA API without external AI or API keys.
README
a2n.EasyEDA MCP
Pure-interface MCP bridge for EasyEDA Pro. No AI, no API keys, no external server.
It exposes the EasyEDA eda.* API to any MCP client (Claude, Codex, and other
MCP-compatible agents) so the client's own model drives schematic/PCB automation directly.
Merged from the best of two open-source projects:
- Low-level
eda.*coverage (PCB primitives, tracks, vias, nets, DRC, layers, pads, pour/fill, manufacture exports, schematic primitives) — inspired byQuincySx/easyeda-agent-mcp-server. - High-level project/document/checkpoint handling and a local auto-place + auto-wire
engine (
sch_assemble_circuit) — inspired bybiosshot/easyeda-copilot(server/AI parts removed).
Features
- Pure interface to EasyEDA Pro — the bridge holds no model and needs no API key.
- Full low-level schematic and PCB control plus high-level circuit assembly.
- Configurable WebSocket port and
online/offline/hybridcomponent sourcing. - Self-contained MCP server (single bundled file) and a packaged
.eextextension.
Architecture
flowchart LR
Client["MCP Client<br/>(Claude, Codex, ...)"]
Server["a2n MCP Server<br/>(Node.js, stdio)"]
Ext["a2n EasyEDA Extension"]
EDA[("EasyEDA Pro<br/>eda.* API")]
Client -- "stdio (MCP)" --> Server
Server -- "WebSocket :8788" --> Ext
Ext -- "eda.* calls" --> EDA
EDA -- "results" --> Ext
Ext -- "WebSocket" --> Server
Server -- "tool result" --> Client
- MCP server (
src/mcp-server): runs locally, opens a WebSocket server on a configurable port (default8788), exposes the MCP tools. - EasyEDA extension (
src/extension): connects to the WebSocket server, executeseda.*calls, returns results. Adds ana2n MCPmenu (Connect / Disconnect / Configure / Status / About).
Request flow
sequenceDiagram
participant C as MCP Client
participant S as a2n MCP Server
participant X as EasyEDA Extension
participant E as EasyEDA Pro
C->>S: Tool call (e.g. sch_assemble_circuit)
S->>X: WebSocket request { method, params }
X->>E: eda.* API calls
E-->>X: API result
X-->>S: WebSocket response { result | error }
S-->>C: Tool result
Modes (online / offline / hybrid)
Configured in the extension (a2n MCP -> Configure...):
flowchart TD
Q["sch_search_component"] --> M{Mode}
M -- offline --> L["Local / system libraries only"]
M -- online --> O["EasyEDA backend search<br/>(lib_Device.search, devices/searchByCodes)"]
M -- hybrid --> H["Try local first"]
H --> F{Found?}
F -- yes --> R["Return local results"]
F -- no --> O
- offline — component search restricted to local/system libraries.
- online — component search via the EasyEDA backend. Uses your existing EasyEDA login; no extra API key.
- hybrid — local first, then online fallback (default).
Build
npm install
npm run build # builds the extension (dist/index.js) + MCP server (dist/mcp-server) and packages the .eext
# or just:
npm run compile # builds without packaging the .eext
Outputs:
dist/mcp-server/index.js— the MCP server (self-contained, runnable with Node).build/dist/a2n-easyeda-mcp_v<version>.eext— import into EasyEDA Pro (Settings -> Extensions -> Extensions Manager -> Import Extensions).
MCP client configuration
Recommended (after publishing to npm):
{
"mcpServers": {
"a2n-easyeda-mcp": {
"command": "npx",
"args": ["-y", "a2n-easyeda-mcp"]
}
}
}
Local build (without npm):
{
"mcpServers": {
"a2n-easyeda-mcp": {
"command": "node",
"args": ["<abs-path>/a2n-easyeda-mcp/dist/mcp-server/index.js", "--port=8788"]
}
}
}
The default port is 8788 and matches on both sides, so --port is optional unless you
change it. Override with --port=NNNN or the A2N_EDA_WS_PORT environment variable.
Usage
flowchart LR
A["Import .eext into<br/>EasyEDA Pro"] --> B["Enable<br/>External Interactions"]
B --> C["a2n MCP -> Connect MCP"]
C --> D["Start MCP client<br/>with this server"]
D --> E["Call eda_status<br/>to confirm"]
- Build and import the
.eextinto EasyEDA Pro; enable "External Interactions". - Open a schematic/PCB, then
a2n MCP -> Connect MCP(set the port viaConfigure...if you changed it). - Start your MCP client with this server configured, then call
eda_statusto confirm the connection and active mode.
The WebSocket port must match on both sides (server --port / A2N_EDA_WS_PORT and the
extension's Configure dialog).
License
MIT. This project is a derivative work that reuses and adapts code from the MIT-licensed
projects QuincySx/easyeda-agent-mcp-server and biosshot/easyeda-copilot; their
respective copyrights are retained under the same license.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。