altium-mcp
Enables querying PCB and schematic data and driving DelphiScript automation in Altium Designer via MCP.
README
altium-mcp
Model Context Protocol (MCP) server that connects Cursor (and other MCP clients) to Altium Designer on Windows, so an assistant can query PCB and schematic data and drive DelphiScript automation.
This is a third-party project; it is not affiliated with Altium.
Requirements
| Item | Notes |
|---|---|
| OS | Windows 10/11 (live bridge targets Altium on Windows) |
| Altium Designer | 22+ recommended (X2.EXE) |
| Node.js | 20+ |
| Cursor | MCP over stdio |
Quick start
npm install
npm run build
Configure Cursor using docs/cursor-mcp.md.
First steps in the IDE:
- Call MCP tool
get_server_status— confirms workspace paths andX2.EXEdiscovery (and syncs scripts into the workspaceAltiumScript/folder). - If needed, call
configure_altium_exewith the full path toX2.EXE. - Call
altium_pingto confirm the DelphiScript bridge responds inside Altium. - Use
get_workspace_projectsto discover open.PrjPcbpaths and schematic sheet paths. - PCB: with the target
.PcbDocopen and focused in Altium, useget_pcb_layers,get_all_nets, etc. - Schematic:
get_schematic_dataandedit_schematicdo not require an active PCB; passschematic_full_pathorproject_full_path+schematic_sheet_file_name. After edits, callget_schematic_dataagain on the same sheet to verify.
Agent-oriented details (timeouts, lock file, placement hints) are in the MCP server instructions and in skills/altium-mcp/SKILL.md. Schematic edit coverage and notes: docs/edit-schematic-progress.md.
How it works
- The server writes
request.jsonunder the workspace (default%USERPROFILE%\.altium-mcp\workspace). - It launches Altium with
-RScriptingSystem:RunScriptpointing at the bundledAltium_API.PrjScrproject. - DelphiScript
Runreads the request, runs PCB/SCH API calls, and writesresponse.json. - A file lock
.bridge.lockserializes concurrent tool calls (longer timeout foredit_schematic).
See docs/architecture.md and JSON schemas in schemas/.
MCP tools (high level)
| Tool | Purpose |
|---|---|
get_server_status |
Paths, env, whether X2.EXE and script project exist; bridge diagnostic snippets |
configure_altium_exe |
Save X2.EXE path to %USERPROFILE%\.altium-mcp\config.json |
altium_ping |
Health check via DelphiScript |
get_workspace_projects |
Open workspace projects and logical documents (paths for SCH/PCB tools) |
get_schematic_data |
Export schematic sheet data; optional include_queries[] to filter buckets (wires, nets, components, …) |
edit_schematic |
Edit a .SchDoc (move/rotate, parameters, place component, wires, buses, net labels, power ports, …) |
get_pcb_layers / get_pcb_rules / get_all_nets / get_pcb_layer_stackup |
Active focused PCB queries |
get_all_designators |
All component designators on the PCB |
get_component_pins |
Pins for given designators |
file_mode_capabilities |
Whether offline .PcbLib/.SchLib tools are wired (extension point) |
DelphiScript source
The altium-scripts/ tree is MIT-licensed code derived from coffeenmusic/altium-mcp, with additions such as ping, get_schematic_data / schematic export, and schematic_edit. See NOTICE.
File-mode (offline libraries)
Not bundled by default. See docs/file-mode.md and packages/file-ops/README.md.
Scripts
| Command | Description |
|---|---|
npm run build |
Compile TypeScript to dist/ |
npm start |
Run MCP server (stdio) |
npm test |
Vitest |
npm run lint |
tsc --noEmit |
Releases and tags
This repo uses semantic version Git tags of the form vMAJOR.MINOR.PATCH (for example v0.1.0), aligned with package.json when practical. Check the tags page (or Releases) on GitHub to jump to a specific version.
Contributing
Issues and pull requests are welcome. This project is not affiliated with Altium; keep discussion technical and respectful.
Before you open a pull request
- Use a focused branch and describe what changed, why, and how to verify (manual Altium steps if applicable).
- Run
npm run build,npm test, andnpm run lintlocally. CI runs the same on Node 22 (see .github/workflows/ci.yml). - Changes under
altium-scripts/often need a quick check in Altium Designer on Windows; state the AD major version you used when you can. - DelphiScript here builds on upstream work — follow attribution and licensing notes in NOTICE when editing bundled scripts.
Scope and quality
- Prefer small, reviewable PRs. For large refactors or new subsystems, open an issue first to agree on direction.
- New or changed MCP tools should stay consistent with
src/toolDefinitions.ts, update JSON schemas inschemas/when the bridge contract changes, and add or extend tests where behavior is verifiable in Node (Vitest).
License
By contributing, you agree your contributions are licensed under the same terms as this repository — see LICENSE (MIT).
License
MIT — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.