Author: Lucy Lu | Published for icallin.com | Updated: November 12, 2026
A Codex Altium MCP workflow connects an external coding client directly to Altium Designer's scripting API so an AI agent reads and edits native schematic and PCB objects instead of clicking screenshots. Exposing structured CAD queries reduces visual guesswork during part placement, net wiring, and rule inspection, yet tool execution alone does not prove electrical or safety correctness. Engineering sign-off still owns circuit topology, creepage boundaries, analog sense geometry, and final fabrication release.
Evaluating this setup through the same stage-gate discipline used in PCB AI tool evaluation by workflow stage keeps responsibility clear. Whether your team runs a GPT-6 PCB workflow or pairs Codex with another reasoning model, the model operates inside the host client while an open-source bridge translates requests into Altium DelphiScript commands. Treating every automated edit as a draft candidate—verified against datasheets, native DRC rules, and standalone CAM inspection—turns experimental AI PCB design into an auditable engineering process.
An Altium scripting bridge provides a local command translator that converts Model Context Protocol (MCP) tool requests from the AI client into native CAD operations executed against live Altium documents. Instead of parsing pixels from screen captures, the client requests structured queries—such as listing project sheets, placing library symbols, updating net labels, or reading compiled violation counts—and receives text responses.
As outlined in OpenAI's Model Context Protocol documentation for Codex, the MCP host runs outside the target application and communicates with registered tool servers over local stdio or network endpoints. In community Altium integrations such as the Apache-2.0 salitronic/eda-agent repository, four distinct software layers participate in every action:
eda-agent): Validates tool arguments and writes serialized command payloads into a local workspace directory.Altium_API.PrjScr / StartMCPServer): Executes native scripting calls against the open .PrjPcb, .SchDoc, and .PcbDoc files and returns status data.Because third-party MCP bridges are community-maintained open-source packages rather than official Altium products, review repository code, license terms, and data-sharing boundaries before connecting proprietary hardware projects. Remember that a local Python bridge only keeps the CAD execution step local; unless your organization runs an approved enterprise endpoint, prompts and netlist context sent to the model traverse the configured AI service.
Connecting a Codex Altium MCP session safely requires starting with read-only inspection on a version-controlled backup copy of your board project. Install the Python bridge (Python 3.11+ on Windows alongside Altium Designer), register the stdio server inside ~/.codex/config.toml with --headless mode enabled, install the global script project in Altium Preferences, and launch StartMCPServer from Dispatcher.pas.
Before permitting any write operations, run read-only queries (EDA_AGENT_READONLY = "1" where supported by your pinned commit) to prove that the bridge sees the exact open project, schematic sheets, library paths, and active PCB document. Confirming document identity up front prevents an agent from modifying a stale backup sheet or pulling footprints from an unapproved global library.
Scope write permissions in small, reviewable increments:
EDA_AGENT_UI_AUTOMATION = "0") rather than simulated mouse clicks.
Figure 1. Structured MCP tool calls link Codex to live Altium documents, while human engineering review governs safety isolation crossings and precision Kelvin sense geometry.
Translating a hardware brief into explicit electrical boundaries requires defining every safety barrier and sense loop before asking an AI agent to select components or wire schematic sheets. Consider an illustrative AC energy-metering board combining a mains-referenced shunt sensor IC, an isolated DC/DC module, and a low-voltage MCU over UART: if the prompt only asks for "an isolated metering board," an automated draft can easily place an isolated power converter while leaving UART lines directly referenced to mains neutral or routing load current through measurement traces.
State every domain boundary and analog measurement constraint as hard numerical and topological inputs before schematic generation:
Reviewing schematic connectivity requires checking both the compiled electrical netlist and the human readability of the drawn sheets. An MCP script can place wires that miss pin hot spots by one grid unit, tie two domains together through a reused GND power port (GND_HOT vs. GND_ISO), or stack text labels over component bodies. Run Altium's project compiler, inspect single-pin nets and power-object scope across sheets, and verify every pin-to-pad assignment against the component datasheet.
Once the netlist synchronizes cleanly into the .PcbDoc, enforce a physical placement hierarchy before allowing any automated or assisted routing:
Routing critical nets before ordinary logic interconnects requires constraining high-current trunks and sensitive sense pairs first so automated passes do not consume reference-plane space or violate safety spacing. Route high-current mains trunks, differential Kelvin routing pairs, and decoupling loops under explicit net-class width and clearance rules first, refill all copper polygons, and run Batch DRC as described in Altium Designer's Design Rule Check (DRC) documentation.
Because zero DRC violations only proves compliance with the rules currently enabled in the constraint matrix, pair automated rule counts with the broader sign-off framework in our ERC, DRC, and DFM verification scope guide:
| Automated output or agent status | Risk of accepting at face value | Independent PCB release check required |
|---|---|---|
Tool call returns success in Codex | Command executed on wrong sheet, missed grid pin, or changed unintended net | Read back compiled Altium objects and inspect schematic/PCB diff in Git |
0 ERC / Batch DRC violations reported | Critical creepage, net-tie, or high-voltage clearance rules disabled or mis-scoped | Audit enabled rule matrix and measure primary-to-secondary clearance across all layers |
| Autorouted sense & power copper | Load current shared with sense pad or broken ground return beneath fast edges | Visually trace Kelvin sense pick-offs at shunt pads and verify continuous return planes |
| Exported fabrication & assembly archive | Outdated polygon pour, missing board slot in drill file, or rotated polarized footprint | Follow Altium's Preparing for Manufacture guide and inspect Ucamco Gerber, NC drill, BOM, and centroid files in a standalone CAM viewer |
Table 1. Engineering verification gates required between Codex Altium MCP execution and production file release.
No—upgrading the reasoning model inside a Codex Altium MCP setup improves multi-step tool planning, but the model still lacks direct physical accountability for datasheet pinouts, safety creepage standards, or disabled CAD rules. Every AI-assisted board requires independent datasheet pin-to-pad verification, enabled Batch DRC auditing, and standalone Gerber/BOM inspection before fabrication.
An Altium scripting bridge queries and modifies native CAD data structures—returning exact pin coordinates, net names, and DRC violation lists in compact text—whereas screenshot agents must infer dense copper geometry from compressed pixels and GUI clicks. Structured CAD access reduces coordinate errors and token overhead while keeping every change inspectable inside native .SchDoc and .PcbDoc files.
A disciplined Codex Altium MCP workflow provides script-level CAD speed governed by strict hardware engineering sign-off. By locking versioned project backups, specifying galvanic isolation and Kelvin routing boundaries up front, verifying netlists and floorplans before routing, and auditing exported Gerbers and BOMs independently, teams can accelerate Altium layout work without sacrificing release confidence.
Written by Lucy Lu for icallin.com.
Share your PCB manufacturing or PCBA assembly requirements with icallin through our dedicated quotation page.

PCB Price Shock
We help buyers reduce risk, save time, and secure available stock.
Fast quote for global buyers