a2n-easyeda-mcp
Provides tools for EasyEDA Pro schematic and PCB design automation: low-level primitives (tracks, vias, nets, DRC, layers, pads, pour/fill), high-level project/document/checkpoint handling, and a local auto-place/auto-wire engine.
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., "@a2n-easyeda-mcp place a 10k resistor on the schematic"
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.
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.
Related MCP server: 果子狸MCP服务
Tools
Common
eda_status,eda_set_mode,eda_get_project_info,eda_open_document,eda_guideeda_call/eda_exec— generic escape hatches to invoke any registered handler or anyeda.*API path directly (no extension rebuild needed for new calls).
Schematic (sch_*)
Read:
sch_get_all_components,sch_get_component_pins,sch_get_all_wires,sch_get_netlist,sch_read_circuit,sch_get_selected,sch_run_drcsch_validate_netlist— read-only connectivity diagnostic: floating (unconnected) pins, single-pin nets (likely dangling), and a per-net summary. Computed from the resolved circuit; performs no write.sch_export_image— export the full schematic sheet as a PNG (whole A4 page: border, title block, and every component) with true colors, reproducing EasyEDA's "Export → PNG". It reads the schematic SVG via the Chrome DevTools Protocol, reframes to the full content, converts the title-block<foreignObject>to SVG text, and rasterizes — it is NOT a viewport screenshot. Requires EasyEDA Pro launched with remote debugging — userun-easyeda-debug.bat(or pass--remote-debugging-port=9222 --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-background-timer-throttling) — and an open schematic page. Port viaA2N_EDA_CDP_PORT(default 9222), resolution viascale(default 2, orA2N_EDA_CAPTURE_SCALE). The PNG is returned inline; passfileNameto ALSO save it (absolute path, or a bare name underA2N_EDA_CAPTURE_DIR/ OS temp dir).Search/write:
sch_search_component,sch_place_component,sch_create_wire,sch_create_netflag,sch_delete_componentsHigh-level:
sch_assemble_circuit(local auto-place + auto-wire by net name)Management:
sch_create_schematic,sch_create_page,sch_save,sch_checkpoint_save/sch_checkpoint_list/sch_checkpoint_restore
PCB (pcb_*)
Read:
pcb_get_all_components,pcb_get_component_pins,pcb_get_all_nets,pcb_get_net_length,pcb_get_all_layers,pcb_get_selected,pcb_get_board_outlineWrite:
pcb_create_track,pcb_create_via,pcb_create_pour,pcb_move_component,pcb_delete_primitives,pcb_set_copper_layers,pcb_highlight_netChecks:
pcb_run_drcExport (base64):
pcb_export_gerber,pcb_export_bom,pcb_export_pick_place,pcb_export_pdf,pcb_export_3dpcb_save
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" --> ClientMCP 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 resultModes (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 --> Ooffline — 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 .eextOutputs:
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.
Environment variables
All are optional; the server/extension work with the defaults below.
Variable | Used by | Default | Purpose |
| MCP server |
| WebSocket bridge port (must match the extension's |
|
|
| Chrome DevTools Protocol port EasyEDA Pro is launched with (see |
|
|
| Rasterization scale factor (1–4). The tool's |
|
| OS temp dir | Base directory for a bare |
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).
Troubleshooting
eda_status fails / tools time out — bridge not connected.
Confirm the extension menu shows a connected state:
a2n MCP -> Status. If not, runa2n MCP -> Connect MCP.Verify the ports match: the MCP server's
--port/A2N_EDA_WS_PORTmust equal the value in the extension'sConfigure...dialog (default8788on both sides).Make sure EasyEDA Pro has "External Interactions" enabled (required for the extension to open the WebSocket).
Only one MCP server should own the port at a time. If the port is taken, pick another and set it on both sides.
sch_* or pcb_* calls error with a context/document message.
sch_*tools require a SCHEMATIC PAGE to be the active document;pcb_*tools require a PCB.Switch with
eda_open_documentusing a UUID fromeda_get_project_info. Running a PCB op while a schematic is active (or vice versa) will error.
sch_export_image fails: "Cannot reach EasyEDA CDP on 127.0.0.1:9222".
EasyEDA Pro must be launched with remote debugging. Close it, then start it via
run-easyeda-debug.bat(or with--remote-debugging-port=9222 --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-background-timer-throttling).If you changed the debug port, pass it as the tool's
portargument or setA2N_EDA_CDP_PORT.A schematic page must be open. "No active schematic sheet found" means the editor has no schematic frame to capture — open a page first.
sch_export_image produces a blank/empty image.
The backgrounding flags above keep the renderer painting when EasyEDA is not the foreground window; without them, captures can stall or come out empty. Re-launch via the
.bat.
Component search returns nothing.
Check the active mode with
eda_status. Inofflinemode only local/system libraries are searched. Useeda_set_modeto switch tohybrid(local first, then online) oronline.Online search uses your existing EasyEDA login; make sure you are signed in to EasyEDA Pro.
Extension changes don't take effect after a rebuild.
Re-import the freshly built
build/dist/a2n-easyeda-mcp_v<version>.eextinto EasyEDA Pro, then reconnect (a2n MCP -> Disconnect MCPthenConnect MCP). The MCP server side just needs a restart ofdist/mcp-server/index.js.
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.
Available Tools
49 toolseda_callA
Advanced: call any low-level EasyEDA handler method directly by name with a params object. Use when no dedicated tool exists. Method names follow the "domain.action.target" convention (e.g. "pcb.create.via", "sch.wire.create", "lib.device.search").
Inputs: method (required), params.
eda_execA
Dev/advanced: invoke ANY eda.* API by dotted path without changing the extension. e.g. path="sch_ManufactureData.getExportDocumentFile", args=["sch","PNG",{},"Current Schematic Page"]. New capabilities can be prototyped Node-side only (no extension reinstall). File results return as base64; image files are shown directly.
Inputs: path (required), args.
eda_get_project_infoA
Read the current EasyEDA project tree (boards, schematics, pages with UUIDs) and metadata.
Inputs: no named parameters.
eda_guideA
Read this FIRST. Conventions and recommended workflow for driving EasyEDA via this MCP: coordinate system, net-by-name wiring, schematic vs PCB context, and the place -> wire -> verify loop.
Inputs: no named parameters.
eda_open_documentA
Open a document (schematic, schematic page, PCB) by its UUID from the project tree.
Inputs: documentUuid (required).
eda_set_modeA
Set the component sourcing mode. "offline" = local/system libraries only. "online" = EasyEDA backend search. "hybrid" = local first then online.
Inputs: mode (required).
eda_statusA
Get a2n.EasyEDA MCP connection status, the active mode (online/offline/hybrid), and current project info.
Inputs: no named parameters.
pcb_create_pourC
Create a copper pour region on a layer/net.
Inputs: net (required), layer (required), polygon (required), pourName, +4 more.
pcb_create_trackC
Create a single track segment between two points on a layer/net.
Inputs: net (required), endX (required), endY (required), layer (required), +3 more.
pcb_create_viaC
Create a via at a position.
Inputs: x (required), y (required), net (required), diameter (required), +2 more.
pcb_delete_primitivesC
Delete one or more PCB primitives by type and IDs.
Inputs: ids (required), type (required).
pcb_export_3dB
Export a 3D model file of the PCB (e.g. STEP). Returned as base64. Requires a PCB document active.
Inputs: element, fileName, fileType, modelMode, +1 more.
pcb_export_bomC
Export BOM file (returned as base64).
Inputs: fileName, fileType.
pcb_export_gerberC
Export Gerber files (returned as base64).
Inputs: fileName.
pcb_export_pdfC
Export the PCB layout to PDF (returned as base64). Requires a PCB document active.
Inputs: fileName.
pcb_export_pick_placeB
Export pick-and-place (centroid) file for assembly (returned as base64). Requires a PCB document active.
Inputs: unit, fileName, fileType.
pcb_get_all_componentsA
Get all PCB components, optionally filtered by layer.
Inputs: layer.
pcb_get_all_layersA
Get all PCB layers and their properties.
Inputs: no named parameters.
pcb_get_all_netsA
Get all net names on the PCB.
Inputs: no named parameters.
pcb_get_board_outlineA
Get the PCB board outline / dimensions (shape, width, height). Requires a PCB document to be active.
Inputs: no named parameters.
pcb_get_component_pinsC
Get all pads/pins of a PCB component by primitive ID.
Inputs: primitiveId (required).
pcb_get_net_lengthB
Get total routed length of a net.
Inputs: net (required).
pcb_get_selectedB
Get all currently selected PCB primitives.
Inputs: no named parameters.
pcb_highlight_netC
Highlight a net on the PCB.
Inputs: net (required).
pcb_move_componentC
Move/rotate a PCB component, optionally flip layer, set lock or designator.
Inputs: primitiveId (required), x, y, layer, +3 more.
pcb_run_drcC
Run Design Rule Check on the PCB.
Inputs: ui, strict, verbose.
pcb_saveC
Save the current PCB document.
Inputs: uuid.
pcb_set_copper_layersC
Set the number of copper layers (e.g. 2, 4, 6).
Inputs: count (required).
sch_assemble_circuitA
High-level: place a list of components and auto-wire them locally by net name. No external server, no AI. Components are placed at free positions; pins sharing a net are wired, and VCC/GND/net-port symbols are auto-inserted. Ideal for generating a schematic from a parts+nets list.
Inputs: nets (required), components (required), saveCheckpoint.
sch_checkpoint_listB
List saved checkpoints.
Inputs: no named parameters.
sch_checkpoint_restoreB
Restore a checkpoint by id (or the latest if omitted).
Inputs: id.
sch_checkpoint_saveB
Save a checkpoint of the current document for later restore.
Inputs: no named parameters.
sch_create_netflagC
Create a net flag (e.g. VCC/GND short symbol) attached to a net at a position.
Inputs: x (required), y (required), net (required), identification (required), +2 more.
sch_create_pageB
Create a new page under an existing schematic.
Inputs: schematicUuid (required).
sch_create_schematicC
Create a new schematic in the current project. Returns the first page uuid.
Inputs: parentBoardName.
sch_create_wireB
Create a wire on the schematic. "line" is a flat coordinate array [x1,y1,x2,y2,...].
Inputs: line (required), net.
sch_delete_componentsB
Delete one or more schematic components by primitive ID(s).
Inputs: ids (required).
sch_export_imageA
Export the FULL schematic sheet as a PNG (whole A4 page: border, title block, and every component) — reproducing EasyEDA's "Export -> PNG" with true colors, via Chrome DevTools Protocol. Not a viewport screenshot: it reads the schematic SVG, reframes to the full content, and rasterizes. Requires EasyEDA Pro launched with remote debugging (run-easyeda-debug.bat / README) and an open schematic page. The image is returned inline; pass "fileName" to ALSO save it to disk.
Inputs: port, scale, fileName.
sch_get_all_componentsA
Get all schematic components (parts, net flags, net ports, etc.) with positions, rotation, designators.
Inputs: componentType, allSchematicPages.
sch_get_all_wiresA
Get all wires in the schematic, optionally filtered by net name(s).
Inputs: net.
sch_get_component_pinsB
Get all pins of a schematic component by its primitive ID.
Inputs: primitiveId (required).
sch_get_netlistB
Get the schematic netlist in the specified format.
Inputs: type.
sch_get_selectedA
Get all currently selected primitives in the schematic editor.
Inputs: no named parameters.
sch_place_componentA
Place a schematic component from a library at a position. Provide device uuid + libraryUuid (from sch_search_component). Use libraryUuid "lcsc" with a device uuid for online placement.
Inputs: x (required), y (required), uuid (required), libraryUuid (required), +6 more.
sch_read_circuitB
Read the current schematic as a structured circuit (components + pins + resolved net per pin). Best high-level read.
Inputs: allSchematicPages.
sch_run_drcC
Run Design Rule Check (DRC) on the schematic.
Inputs: strict, userInterface.
sch_saveC
Save the current schematic document.
Inputs: no named parameters.
sch_search_componentA
Search for a component using EasyEDA libraries. In offline mode searches local/system libraries; in online/hybrid mode also queries the EasyEDA backend. Returns device uuid + libraryUuid for placement.
Inputs: query (required), limit.
sch_validate_netlistA
Validate schematic connectivity from the resolved circuit: reports floating (unconnected) pins, single-pin nets (likely dangling), and a per-net summary. Read-only diagnostic that complements the place -> wire -> verify loop. No EasyEDA write is performed.
Inputs: allSchematicPages.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 49 tools
Tools are clearly grouped by domain prefixes (eda, pcb, sch) and have distinct verb-noun patterns. Each tool targets a unique action and resource; no two tools appear to do the same thing, even for similar operations like reading circuit vs. validating netlist.
All tools follow a consistent 'domain_verb_noun' pattern in snake_case. Verbs like create, get, delete, export, save, run are used predictably across domains, making the set easy to navigate.
With 49 tools, the count is high but somewhat justified by the broad scope covering schematic, PCB, and general operations. However, it exceeds the 25-tool threshold considered heavy, which may overwhelm agents.
The tool set covers most core workflows for schematic and PCB design: CRUD, exports, DRC, netlist ops, and high-level assembly. Minor gaps exist (e.g., no separate delete for schematic wires, no sch_move_component) but can be worked around via low-level tools.
Maintenance
Related MCP Connectors
EasyGerber brings AI printed circuit board (PCB) design, layout, and routing to MCP-compatible assistants. Describe a circuit or start from firmware pin assignments, search published electronic components, and build schematics using catalog parts with their footprints and available 3D models. Create and revise boards, generate layouts with automatic component placement and routing, inspect previews, and check saved layouts for blocking design issues. Export manufacturing ZIPs containing Gerber and drill files, a bill of materials, and component placement data, or download an editable EasyGerber (.egb) file. Start without signing up. Your agent uses one private board reference to create and continue a board, including catalog access, edits, layout, checks, previews, and exports, without a separate guest setup step or token to manage. To keep the board in your account or work with permitted saved personal or organization boards, complete EasyGerber sign-in and OAuth consent, then resume the same task. Account permissions, plan limits, and generation billing apply; support depends on your MCP client and installed integration.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Design and revise PCBs from plain language, track jobs, and retrieve design artifacts.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- FlicenseAqualityCmaintenanceEnables MCP clients like Claude Code to control a running EasyEDA Pro instance for PCB design automation, including DRC checks, project management, and script execution via a bridge server.16-
- FlicenseBqualityCmaintenanceConnects Jia Li Chuang EDA / EasyEDA Pro schematics to MCP clients, enabling AI-driven schematic editing, reading, and analysis.19-
- AlicenseCqualityBmaintenanceConnects MCP clients to live EasyEDA Pro projects, enabling schematic and PCB inspection and editing through natural language.76268 npm43MIT
- AlicenseNot gradedqualityDmaintenanceLocal Model Context Protocol server that exposes EasyEDA Pro design capabilities as MCP tools, enabling project inspection, schematic editing, PCB design, validation, and manufacturing exports through natural language.MIT