altium-mcp

altium-mcp

Enables querying PCB and schematic data and driving DelphiScript automation in Altium Designer via MCP.

Category
访问服务器

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:

  1. Call MCP tool get_server_status — confirms workspace paths and X2.EXE discovery (and syncs scripts into the workspace AltiumScript/ folder).
  2. If needed, call configure_altium_exe with the full path to X2.EXE.
  3. Call altium_ping to confirm the DelphiScript bridge responds inside Altium.
  4. Use get_workspace_projects to discover open .PrjPcb paths and schematic sheet paths.
  5. PCB: with the target .PcbDoc open and focused in Altium, use get_pcb_layers, get_all_nets, etc.
  6. Schematic: get_schematic_data and edit_schematic do not require an active PCB; pass schematic_full_path or project_full_path + schematic_sheet_file_name. After edits, call get_schematic_data again 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.json under the workspace (default %USERPROFILE%\.altium-mcp\workspace).
  • It launches Altium with -RScriptingSystem:RunScript pointing at the bundled Altium_API.PrjScr project.
  • DelphiScript Run reads the request, runs PCB/SCH API calls, and writes response.json.
  • A file lock .bridge.lock serializes concurrent tool calls (longer timeout for edit_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, and npm run lint locally. 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 in schemas/ 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选