Altium Designer MCP 快速入门
Altium Designer MCP Server 是 Altium Designer 的扩展,可让 Claude 等 AI 助手读取您当前打开的设计并对其执行操作。本指南将带您完成从安装到首次针对实际电路板提问的整个过程。
前提条件
| 要求 | 说明 |
|---|---|
| Altium Designer 26.5 or later | 下载地址: https://www.altium.com/products/downloads。 |
| MCP add-on license | 除了常规 Altium Designer 许可证外,还需要 Altium Designer MCP 功能。请在 License Management 下查看。 |
| An Altium 365 workspace | 评论、项目历史记录与修订版本,以及元件和库查询均需要此项;使用前三项功能时,还需登录,并将项目托管于其中。仅针对原理图提问则不需要。 |
| An AI client on the same PC | Claude Desktop 是推荐的入门选择。也原生支持 OpenAI Codex 和 VS Code。 |
步骤 1:安装 AI 客户端
从 https://claude.ai 安装 Claude Desktop 并登录。
首次使用须知:
-
您可以在 Claude 中选择不同的模型(例如 Opus 和 Sonnet)。Opus 的推理能力更强,更适合设计审查;Sonnet 速度更快、费用更低。您可以为每个对话切换模型。
-
也可以使用其他 AI 客户端,但它们对 MCP 的支持有所不同。以下说明以 Claude 为例;Codex 和 VS Code 也有相同的按钮。
步骤 2:在 Altium Designer 中安装 MCP Server 扩展
-
启动 Altium Designer。
-
转到 Extensions and Updates。
-
在扩展列表中找到 MCP Server 并安装。
-
Restart Altium Designer.
步骤 3:将 Altium Designer 连接到 AI 客户端
-
在 Altium Designer 中,打开 Preferences → Data Management → MCP Server。
-
确保已勾选 Enable MCP Server。
-
在 Client Connections 区域中,选择您所用客户端的选项卡: Claude、 Codex、 VS Code 或 Custom。
-
点击 Install。此操作会自动将连接设置写入 AI 客户端的配置文件。完成后,按钮会变为 Uninstall。
-
Fully close and reopen your AI client,以便重新读取配置。
步骤 4:检查是否正常工作
-
在 Altium Designer 中打开一个项目(首次测试最好使用 Altium 365 工作区中的项目,因为这样也能启用评论功能)。
-
启动 AI 客户端。
-
确认 Altium 工具已列出并启用。在 Claude Desktop 中,点击消息框中的 + 并选择 Connectors ——您应当看到以下两项,且均已开启:
- Altium Designer MCP ——原理图数据、ERC、历史记录与修订版本、评论
- SCH Library ——符号创建和引脚分配工具
-
提出一个简单的问题,例如: "List all nets in my active project using the Altium MCP."
-
当 Claude 请求权限时,请批准工具调用。
如果返回了合理的网络列表,就说明设置已完成。请直接转到步骤 5。否则,请参阅 故障排除。
步骤 5:立即试用
以下是 立即试用 中十二条提示词中的四条。每条都经过精心挑选,旨在展示仅将网表或截图粘贴到聊天窗口中 not 获得的信息,让您能够直接用自己的设计快速判断其价值。请原样复制,无需了解任何工具名称。
这些提示词使用 Altium Designer MCP 连接器。请先打开一个项目。
1. Get your bearings.
"Using the Altium MCP, give me a one-page overview of this project: sheets, component counts, the power rails, and the ten nets with the most pins."
验证助手确实在读取您的设计,并提供一个基准,供您与自己掌握的信息进行核对。
2. Trace a signal, then see it on the sheet.
"What is connected to the RESET pin of U1? List every pin on that net with its component, value and direction — then highlight that net on the schematic."
为您解析跨图纸连接关系,并在 Altium Designer 中直接呈现结果:在当前图纸上选中该网络,并缩放显示。
3. Run a real review pass.
"Run ERC, summarise the violations by severity and by sheet, then show me which checks are switched off in the configuration."
最后一个分句才是关键——如果不知道哪些规则被禁用,即使 ERC 未报告问题,意义也不大。
此提示词使用 SCH Library 连接器。创建或打开一个 .SchLib(或在元件编辑器中创建或打开一个工作区元件),然后点击该文档,使其成为活动文档。
4. Build a symbol from a part number.
"Create a symbol for STM32F103C8T6 in the library I have open. Show me the full pinout table for review before you build anything."
自动为您查找元件。审查表是把关环节——请先仔细阅读,再确认。