easyeda-pro-mcp
Provides full read/write control over a live EasyEDA Pro session, enabling AI agents to inspect and modify schematics, PCBs, copper layers, pours, DRC rules, libraries, selection, navigation, and manufacturing exports.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
easyeda-pro-mcp
A Model Context Protocol server plus an EasyEDA Pro extension that gives AI agents (OpenCode, Claude, Cursor, VS Code, Codex, …) full read/write control over a live EasyEDA Pro session — schematics, PCBs, copper layers, pours, DRC rules, libraries, selection, navigation and manufacturing exports.
The agent can inspect the real editor, change it, and read the result back.
┌──────────────┐ stdio (MCP) ┌──────────────────┐ WebSocket ┌──────────────────┐
│ AI client │ ◄─────────────► │ easyeda-pro-mcp │ ◄────────────► │ EasyEDA Pro │
│ OpenCode/… │ │ bridge + tools │ 127.0.0.1 │ MCP Bridge .eext │
└──────────────┘ └──────────────────┘ 49620-49629 └──────────────────┘No cloud, no credentials, no screenshots. Everything runs locally.
The extension dials out to the MCP server on loopback; the server never accepts remote connections by default.
Exhaustive coverage: a generated catalog of all 846 methods across 114
eda.*namespaces (plus 103 enums) is callable througheasyeda_call_api, and a test walks the entire catalog to prove it. Typed tools (119) are conveniences on top of that guarantee.
Requirements
Component | Version |
EasyEDA Pro | 3.x or 4.x with Extension API support |
Node.js | ≥ 20.11 (developed on 26.x) |
OS | Windows, macOS, Linux |
EasyEDA Pro 2.x predates the sys_WebSocket API the bridge relies on; use 3.x or
newer.
The extension must be granted Allow interactive with external in EasyEDA's Extension Manager. Without it, the bridge cannot open a WebSocket.
Related MCP server: JLCEDA MCP Server
Install
1. Get the extension
Fastest: download easyeda-mcp-bridge_v1.0.0.eext from
Releases.
From source:
git clone https://github.com/rawnullbyte/easyeda-pro-mcp.git
cd easyeda-pro-mcp
npm ci
npm run build
npm run package:extension
# dist/easyeda-mcp-bridge_v1.0.0.eextWhen installed from npm, extract the bundled .eext instead:
npx -y easyeda-pro-mcp extension --out .2. Install it in EasyEDA Pro
Open EasyEDA Pro.
Extensions → Extension Manager → Install from file (wording varies by version) and pick
dist/easyeda-mcp-bridge_v1.0.0.eext.Open the extension's Config tab and tick Allow interactive with external (optionally also Show at header menu so MCP Bridge appears in the top bar; leave Auto update off for a locally built extension).
A MCP Bridge menu appears in the home, schematic, PCB, footprint and panel editors. Use Status… to confirm it is waiting for the server.
The extension retries forever with exponential backoff, so you can start it before or after the MCP server.
3. Register the MCP server
From a checkout, use node /absolute/path/to/EasyEDA-Pro-MCP/dist/src/index.js.
Once the package is published, npx -y easyeda-pro-mcp works the same way.
OpenCode (V2 — note mcp.servers, not mcp.<name>):
opencode mcp add easyeda-pro --global -- node /absolute/path/to/EasyEDA-Pro-MCP/dist/src/index.js
opencode mcp listOr by hand in opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"easyeda-pro": {
"type": "local",
"command": ["npx", "-y", "easyeda-pro-mcp"]
}
}
}
}Config reloads automatically; no restart needed. Use /mcps to check the
connection, and disabled: true (not enabled) to keep it configured but off.
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"easyeda-pro": {
"command": "npx",
"args": ["-y", "easyeda-pro-mcp"]
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"easyeda-pro": {
"command": "npx",
"args": ["-y", "easyeda-pro-mcp"]
}
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"easyeda-pro": {
"type": "stdio",
"command": "npx",
"args": ["-y", "easyeda-pro-mcp"]
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.easyeda-pro]
command = "npx"
args = ["-y", "easyeda-pro-mcp"]Local-checkout variants are in examples/.
4. Verify
node dist/src/index.js doctorYou should see the bridge port, the connected window and a successful execution
test. Inside the agent, call easyeda_status.
Quick start
Ask the agent:
Connect to EasyEDA and show me the current project and active document.
The agent calls easyeda_status → easyeda_get_context → easyeda_list_documents.
Then:
Add a GND copper pour on the top layer covering the board, 0.2 mm clearance, thermal relief with 0.3 mm spokes.
The agent calls easyeda_pcb_create_pour with clearanceMm: 0.2 and
thermalRelief, then easyeda_pcb_rebuild_pours.
Tool reference
Connection & discovery
Tool | Purpose |
| Transport, windows, active window, current context |
| All registered editor windows |
| Route calls to one window |
| Escape hatch: arbitrary async JS with |
| Alias of |
| Search the official API reference |
| Full markdown for a class/enum/interface |
| Undo/redo the last PCB command group |
Exhaustive API access (every official method)
Tool | Purpose |
| Totals + namespace list for the generated catalog |
| Every method of a namespace, with parsed params and read/write classification |
| Exact signature, params, return type, call example |
| Enum members and values ( |
|
|
| Invoke any |
| Invoke any instance method on one primitive |
easyeda_call_api accepts positional arguments in documented order, resolves
{ "$enum": "EPCB_LayerId.TOP" } to 1 and { "$layer": "top" } to the live
layer id (including nested markers), and requires confirm: true for methods the
catalog classifies as mutating. In read-only mode, read methods still work and
mutating ones return READ_ONLY.
Project & documents
Tool | Purpose |
| Active project/board/PCB/schematic/page |
| Projects across teams and folders |
| Open by UUID (may discard unsaved work) |
| Schematics, pages, PCBs, boards, panels |
| Tab management |
| Save active PCB/schematic |
| Create documents |
| Create workspace/project structure |
| Board/PCB/schematic/page/panel lifecycle |
| Page order |
| Folder and project placement |
Schematic
Tool | Purpose |
| List with designator/device/attributes |
| Full state + pins |
| Place by UUID, LCSC part or keyword |
| Batch position/rotation/attributes |
| Delete (confirm) |
| Wires |
| Delete wires (confirm) |
| Buses |
| Free pins |
| Labels and fields |
| Nets and netlist |
| Electrical rule check |
PCB
Tool | Purpose |
| Metadata, copper layers, primitive counts |
| Components |
| Place a footprint by UUID/LCSC part/keyword |
| Batch attributes, layer, rotation, designator |
| Batch move/rotate/layer (one undo group) |
| Delete (confirm) |
| Polyline track on a net/layer |
| Via |
| Region/keepout with rule types |
| Text and copper fill primitives |
| Arc and polyline copper |
| Dimensions and images |
| Designator/value attribute primitives |
| Delete line/via/pad/region/fill/text/… (confirm) |
| line/via/pad/region/fill/text/dimension/arc/polyline/image/pour/poured/component |
| Spatial query |
| Detailed net info |
Copper, layers, pours
Tool | Purpose |
| All layers with id/name/type/color/visibility |
| Stackup + physical configurations |
| Overwrite/save a physical stackup (reorder build-up) |
| 2/4/6/… (confirm) |
| Custom layers |
| Show/hide layers |
| Pour borders |
| Net, layer, polygon, fill method, priority, thermal |
| Modify/delete |
| Recompute poured copper |
| Thermal relief per net/pad |
DRC / ERC rules
Tool | Purpose |
| Raw config + flattened |
| Deep-merge patch and/or exact path patch + read-back |
| One value by path or path regex |
| Convenience: track width (mm/mil) |
| Convenience: clearance (mm/mil) |
| Net classes |
| Add/remove nets, rename, delete a class |
| List/create/delete differential pairs |
| Equal-length net groups |
| List/get/rename/delete/set-default configurations |
| Detailed DRC results |
Libraries
Tool | Purpose |
| Libraries and their UUIDs |
| Keyword search |
| LCSC/JLC part lookup |
| Placement-ready |
| Device details |
Exports
easyeda_export_gerber, easyeda_export_bom, easyeda_export_cpl,
easyeda_export_pdf, easyeda_export_netlist, easyeda_export_3d,
easyeda_export_dxf.
Files are written to EASYEDA_MCP_EXPORT_DIR (default ./easyeda-export) or the
outputDir argument. The response contains absolute paths and byte sizes.
Selection & navigation
easyeda_get_selection, easyeda_select_primitives, easyeda_clear_selection,
easyeda_highlight_net, easyeda_zoom, easyeda_focus_primitives.
Units
Domain | Internal unit | Conversion |
PCB | 1 mil (0.001 in) |
|
Schematic | 0.01 in (10 mil) |
|
Tools accept *Mm fields (xMm, widthMm, clearanceMm, pointsMm,
regionMm, spacingMm, …) and convert for you. Raw fields (x, width,
points, polygon with units: "mil") use internal units.
DRC rule configurations are opaque. EasyEDA stores rule lengths in mil in
practice; easyeda_pcb_set_rule_value defaults to mil and lets you pass
ruleUnits: "mm" if your configuration differs. Always dry-run first.
Example prompts
Copper pour with clearance and thermal relief
Add a solid GND pour on the top layer over the board outline, priority 1, 0.2 mm clearance, thermal relief with 0.3 mm spokes and 0.3 mm gap.
// easyeda_pcb_create_pour
{
"net": "GND",
"layer": "top",
"polygon": { "type": "rect", "x": 0, "y": 0, "width": 80, "height": 60 },
"units": "mm",
"fillMethod": "solid",
"priority": 1,
"name": "GND_TOP",
"thermalRelief": { "connectionMethod": "Divergent", "spacingMm": 0.3, "lineWidthMm": 0.3 },
"clearanceMm": 0.2,
"confirm": true
}Change the default track width and re-run DRC
// 1. preview
{ "widthMm": 0.25, "dryRun": true }
// 2. apply
{ "widthMm": 0.25, "confirm": true }
// 3. re-check
{ "includeGroups": true }Move decoupling capacitors near their IC power pins
The agent lists components (easyeda_pcb_list_components), reads pads and nets
(easyeda_pcb_get_component), computes offsets, then calls
easyeda_pcb_move_components once for the whole batch. The batch is a single
undo group.
Export a fabrication package
Export Gerbers, BOM and CPL to ./out.
Calls easyeda_export_gerber, easyeda_export_bom, easyeda_export_cpl with
outputDir: "./out".
Arbitrary API access
// easyeda_run_script
{
"code": "const pcb = await eda.dmt_Pcb.getCurrentPcbInfo(); const layers = await eda.pcb_Layer.getAllLayers(); return { pcb, layers };"
}Any official method, without writing JS
// 1. discover the exact signature
{ "namespace": "pcb_Drc", "method": "checkDetailed" } // easyeda_describe_method
// 2. call it, with enums and layers resolved for you
{
"namespace": "pcb_Layer",
"method": "setLayerVisible",
"args": [[{ "$enum": "EPCB_LayerId.TOP" }]],
"confirm": true
}
// 3. instance methods on one primitive (setState_* applies automatically)
{
"namespace": "pcb_PrimitivePad",
"primitiveId": "<pad id>",
"method": "setState_HeatWelding",
"args": [{ "connectionMethod": "Divergent", "divergenceSpacing": 12, "divergenceLineWidth": 8, "divergenceAngle": 45 }],
"confirm": true
}CLI
easyeda-pro-mcp [options] # MCP over stdio
easyeda-pro-mcp doctor [options] # diagnosticsOption | Meaning |
|
|
| Bind host (loopback only unless |
| Require the same token from the extension |
| Attach to an existing bridge ( |
| Export destination |
| Default execution timeout |
| Block every mutating tool |
| Only attach, never host a bridge |
|
|
Environment equivalents are listed in --help.
Multiple MCP clients
The first server binds a port in 49620-49629 and hosts the bridge. Later servers
probe the range, find the existing bridge and attach over /agent, so every
client sees the same editor windows.
Official Run API Gateway compatibility
If the official Run API Gateway extension is installed instead of this one,
the server detects service: "easyeda-bridge" and uses the official HTTP
/execute endpoint. Typed tools still work; console logs are not available in
that mode.
Architecture
See docs/ARCHITECTURE.md.
Highlights:
Snippets, not a giant RPC enum. Typed tools are TypeScript functions stringified and executed in the editor. They are unit-tested against a mock
edaobject, so closure/serialization bugs are caught before release.Per-window serialization. Editor mutations never interleave.
Batch undo groups. PCB batch edits use
beginCommandGroup/commitCommandGroup.Rich serialization. Primitives become
getState_*snapshots;File/Blobexports become base64 and are written to disk by the server; cycles, depth and size are bounded.Permission-aware. The extension probes the external-interaction permission and reports it in Status….
Development
npm ci # reproducible install (CI uses this)
npm run build # API catalog + server (tsc) + extension (esbuild)
npm test # snippets, bridge, client, docs, catalog coverage, MCP surface, e2e
npm run typecheck
npm run typecheck:extension
npm run package:extension # -> dist/*.eext
npm run check:extension-package # validate the archivenpm run build runs build:docs first, so a fresh clone needs no extra steps.
Coverage guarantee
npm run build:docs generates docs/api-catalog.json from the vendored official
reference: every callable namespace, every method with parsed parameters, and
every enum. test/api-coverage.test.mjs then invokes all 846 methods through
the dispatcher and asserts none are unreachable. If an EasyEDA release adds a
method, refreshing the vendored docs and rebuilding makes it callable with no
code changes.
Project layout:
src/ MCP server (TypeScript)
bridge/ WebSocket bridge, discovery, client, decoding
runtime/ snippet runner + typed snippets per domain
tools/ MCP tool registrations
docs/ runtime API doc lookup
shared/ protocol, serialization, helpers (server + extension)
extension/ EasyEDA Pro extension source + extension.json
docs/api/ vendored official API reference (MIT)
scripts/ build, package, docs index, vendoring
test/ node:test suites
examples/ MCP client configsTo refresh the API reference:
npm run vendor:api-docs
npm run build:docsTroubleshooting
Symptom | Fix |
| Install the |
| The server is running but the extension has not registered; click Reconnect |
| Re-run with |
| Server started with |
Timeouts on DRC/pour rebuild | Pass a larger |
| EasyEDA API changed; look it up with |
Port range busy | Another server hosts the bridge; this one attaches automatically. |
Token mismatch | Set the same token in the extension menu Set Bridge Token… |
Logs go to stderr (--log-level debug). stdout is reserved for MCP.
License
MIT. See LICENSE and NOTICE for attribution to
EasyEDA's Apache-2.0 Run API Gateway and MIT API reference.
Read SAFETY.md before using this on a production design.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Design and revise PCBs from plain language, track jobs, and retrieve design artifacts.
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.
Build, check, and export parametric CAD models in your ForgeCAD Projects from your AI agent.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with 嘉立创 EDA for PCB design tasks including project management, component libraries, rule checking, and manufacturing constraints.-
- FlicenseNot gradedqualityFmaintenanceEnables AI assistants to interact with JLCEDA EDA for schematic/PCB design operations like component placement, wiring, and circuit analysis through natural language.-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-capable AI agents to generate and reorganize schematics, resolve LCSC components, place and route PCBs with custom DRC constraints, inspect design data, and safely apply, repair, or restore changes in native EasyEDA Pro and JLCEDA documents.228MIT
- AlicenseBqualityCmaintenanceEnables an AI assistant to drive a live EasyEDA Pro editor for end-to-end PCB design: searching the LCSC library for parts, placing and wiring schematic symbols, transferring the design to the board, placing footprints, routing tracks and vias, drawing outlines and silkscreen, pouring copper, running DRC, and exporting BOM, pick-and-place, netlist, DXF and Gerber fabrication files.480Apache 2.0