TLDR: Use Claude to control or ask questions about your Altium project. This is a Model Context Protocol (MCP) server that provides an interface to interact with Altium Designer through Python. The server allows for querying and manipulation of PCB designs programmatically.
Note: Having Claude place components on the PCB currently fails hard.
- Run all output jobs
- Create a symbol for the part in the attached datasheet and use the currently open symbol as a reference example.
- Create a schematic symbol from the attached MPM3650 switching regulator datasheet and make sure to strictly follow the symbol placement rules. (Note: Need to open a schematic library. Uses
AppData\Roaming\Claude\Claude Extensions\local.dxt.altium-mcp\server\symbol_placement_rules.txtdescription as pin placement rules. Please modify for your own preferences.) - Find me the LM358 symbol in my opamp library and open it
- Create a multi-part symbol for a quad op-amp from the attached LM324 datasheet (creates parts A, B, C, D with shared V+/V- power pins)
- Duplicate my selected layout. (Will prompt user to now select destination components. Supports Component, Track, Arc, Via, Polygon, & Region)
- Show all my inner layers. Show the top and bottom layer. Turn off solder paste.
- Get me all parts on my design made by Molex
- Give me the description and part number of U4
- Place the selected parts on my pcb with best practices for a switching regulator. Note: It tries, but does terrible placement. Hopefully I can find a way to improve this.
- Give me a list of all IC designators in my design
- Get me all length matching rules
- Make sure Claude has Python 3.11 installed:
drop down > File > Settings > Extensions > Advanced > Python: 3.11.0. If not, install 3.11 and add python to PATH. - Download the
altium-mcp.dxtdesktop extension file from releases - In Claude Desktop on Windows:
drop down > File > Settings > Extensions > Advanced > Install Extension...Select the .dxt file
You shouldn't need to restart Claude and you should now see altium-mcp in the tool menu near the search bar.
- Populate the packages in the
server/libdirectory: from root dir >python -m pip install --no-cache-dir --target server/lib -r requirements.txt - Update the manifest for
server/liband include any new tools that have been added, bump the revisions, etc.
"server": {
"type": "python",
"entry_point": "server/main.py",
"mcp_config": {
"command": "python",
"args": ["${__dirname}/server/main.py"],
"env": {
"PYTHONPATH": "${__dirname}/server/lib"
}
}
}
- Download Node.js, install Anthropic's DXT tool:
npm install -g @anthropic-ai/dxt, package dxt:dxt pack
On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex" and then
set Path=C:\Users\nntra\.local\bin;%Path%- Create the venv directory where DXT expects: from the root directory run
uv venv server/venv --relocatable - Install dependencies to venv:
uv pip install --python server/venv/Scripts/python.exe -r requirements.txt - Update the manifest for
server/venvand include any new tools that have been added, bump the revisions, etc.
"server": {
"type": "python",
"entry_point": "server/main.py",
"mcp_config": {
"command": "${__dirname}/server/venv/Scripts/python.exe",
"args": ["${__dirname}/server/main.py"],
"env": {
"PYTHONPATH": "${__dirname}/server/venv"
}
}
}
- Download Node.js, install Anthropic's DXT tool:
npm install -g @anthropic-ai/dxt, package dxt:dxt pack
- Desktop Extensions
- Desktop Extensions Github
- Getting Started with DXT
- Python DXT Example Code
- DXT Manifest
When launching claude for the first time, the server will automatically try to locate your Altium Designer installation. It will search for all directories that start with C:\Program Files\Altium\AD* and use the one with the largest revision number. If it cannot find any, you will be prompted to select the Altium executable (X2.EXE) manually when you first run the server. Altium's DelphiScript scripting is used to create an API between the mcp server and Altium.
The server provides several tools to interact with Altium Designer:
get_output_job_containers: Using currently open .OutJob file, reads all available output containersrun_output_jobs: Pass a list of output job container names from the currently open .OutJob to run any number of them..OutJobmust be the currently focused document.
get_all_designators: Get a list of all component designators in the current boardget_all_component_property_names: Get a list of all available component property namesget_component_property_values: Get the values of a specific property for all componentsget_component_data: Get detailed data for specific components by designatorget_component_pins: Get pin information for specified components
get_schematic_data: Get schematic data for specified componentscreate_schematic_symbol(YouTube): Passes pin list with pin type & coordinates to Altium script. Supports multi-part symbols (e.g. quad op-amps) via apart_countparameter and anowner_part_idfield on each pin (use 0 for shared power/GND pins). Also supports active-low pin name overbars by placing a backslash after each overbarred character (e.g.R\E\S\E\T\renders asRESETwith overbar).get_symbol_placement_rules: Create symbol's helper tool that reads~\AppData\Roaming\Claude\Claude Extensions\local.dxt.altium-mcp\server\symbol_placement_rules.txtto get pin placement rules for symbol creation.get_library_symbol_reference: Create symbol's helper tool to use an open library symbol as an example to create the symbolsearch_library_symbol: Search for a symbol by name in a schematic library (.SchLib) and navigate to it. Supports partial name matching. Will open the library file in Altium if a path is provided, or show a file picker if not.
get_all_nets: Returns a list of unique nets from the pcbcreate_net_class(YouTube): Create a net class from a list of netsget_pcb_layers: Get detailed layer information including electrical, mechanical, layer pairs, etc.get_pcb_layer_stackup: Gets stackup info like dielectric, layer thickness, etc.set_pcb_layer_visibility(YouTube): Turn on or off any group of layers. For example turn on inner layers. Turn off silk.get_pcb_rules: Gets the rule descriptions for all pcb rules in layout.get_selected_components_coordinates: Get position and rotation information for currently selected componentsmove_components: Move specified components by X and Y offsetslayout_duplicator(YouTube): Starts layout duplication assuming you have already selected the source components on the PCB.layout_duplicator_apply: Action #2 oflayout_duplicator. Agent will use part info automatically to predict the match between source and destination components, then will send those matches to the place script.
The cool thing about layout duplication this way as opposed to with Altium's built in layout replication, is that the exact components don't have to match because the LLM can look through the descriptions and understand which components match and which don't have a match. That's something that can't really be hard coded.

get_screenshot: Take a screenshot of the Altium PCB window or Schematic Window that is the current view. It should auto focus either of these if it is open but a different document type is focused. Note: Claude is not very good at analyzing images like circuits or layout screenshots. ChatGPT is very good at it, but they haven't released MCP yet, so this functionality will be more useful in the future.
get_server_status: Check the status of the MCP server, including paths to Altium and script files
The server communicates with Altium Designer using a scripting bridge:
- It writes command requests to
workspace\request.json - It launches Altium with instructions to run the
Altium_API.PrjScrscript - The script processes the request and writes results to
workspace\response.json - The server reads and returns the response
- Get scripts' project path from Jeff Collins and William Kitchen's stripped down version
- BlenderMCP: I got inspired by hearing about MCP being used in Blender and used it as a reference. https://github.com/ahujasid/blender-mcp
- Used CopyDesignatorsToMechLayerPair script by Petar Perisin and Randy Clemmons for reference on how to .Replicate objects (used in layout duplicator)
- Petar Perisin's Select Bad Connections Script: For understanding how to walk pcb primitives (track, arc, via, etc) connected to a pad
- Matija Markovic and Petar Perisin Distribute Script: For understanding how to properly let the GUI know when I've updated tracks' nets
- Petar Perisin's Room from Poly: Used as reference to detect poly to pad overlap since I couldn't get more tradition methods to work.
- Petar Perisin's Layer Panel Script: Used as reference for getting layers and changing layer visibility
- Jeff Collins has an XIA_Release_Manager.pas script that taught me the art of the Output Job. See his post on the Altium Forums: https://forum.live.altium.com/#/posts/189423
This is a third-party integration and not made by Altium. Made by coffeenmusic
- Change selection filter:
scripts-libraries\Scripts - PCB\FilterObjects\scripts-libraries\Scripts - SCH\SelectionFilter\
- Show/Hide Panels:
DXP/ReportPCBViews.pas - Create rules:
PCB/CreateRules.pas - Run DRC: IPCB_Board.RunBatchDesignRuleCheck(
- Move cursor to position: IPCB_Board.XCursor, IPCB_Board.YCursor
- Add get schematic & pcb library path for footprint.
- Add get symbol from library
- log response time of each tool
- Add go to schematic sheet
- Go to sheet with component designator
- Board.ChooseLocation(x, y, 'Test');
- Zoom to selected objects:
- Change Schematic Selection Filter: SelectionFilter.pas
- Place schematic objects (place component from library): PlaceSchObjects.pas
- How can I read through components from libraries in Components panel?
TODO Tests: Need to add the following test units
get_pcb_layersset_pcb_layer_visibilitylayout_duplicatorget_pcb_screenshot

