Reference / Trace App CLI

MCP

Connect Trace to a coding assistant such as Claude Code or Codex with trace-cli mcp, the MCP server built into trace-cli.

New in Trace 3.3. trace-cli mcp connects Trace to a coding assistant that uses MCP (Model Context Protocol), such as Claude Code or Codex. The assistant can then check your design, write fabrication files and ask Trace's assistant to make changes, without you typing the commands.

Before you start

  1. Install the Trace app and put trace-cli on your PATH. See Find trace-cli.
  2. Sign in with trace-cli auth login. For an assistant that runs where no browser can open, use an API token instead. See Sign in without a browser.

Add Trace to your assistant

The server runs on your computer and talks to the assistant over its standard input and output. In Claude Code:

claude mcp add trace -- trace-cli mcp --project /path/to/my-board

For another assistant, add a local (stdio) MCP server whose command is trace-cli mcp, with --project and the path to your project folder. Without --project, the server works on the project in the folder it starts in.

What the assistant can do

ToolWhat it does
trace_guideExplains how to work with Trace projects and these tools. Assistants are told to read it first.
trace_erc, trace_drc, trace_checkRun the electrical rules check, the design rule check, or both.
trace_update_pcb, trace_refill, trace_finish, trace_repair, trace_annotateUpdate the board from the schematic, refill zones, finish the board, repair DRC findings or number the schematic's parts.
trace_export, trace_fab, trace_bom, trace_renderWrite fabrication and documentation files, the zipped fabrication package, the bill of materials or a 3D picture of the board.
trace_prep, trace_score, trace_metrics, trace_projectCheck the board is ready for layout, score the placement, measure the layout or list the project's files.
trace_chatAsk Trace's assistant to do something on the project, as the chat in the Trace app would.

All tools except trace_chat are free and run on your computer. They are the same as the project commands with --json.

trace_chat uses your Trace account and your plan's usage. It works in Agent mode unless the assistant asks for ask or plan, so it can edit your design. It returns Trace's reply and a conversation ID the assistant can use to continue. Nobody is there to answer Trace's questions, so they go with Trace's recommended answer, and part previews and file deletions are declined.

  • Paid runs are off. trace_chat never starts an advanced layout run unless you start the server with --allow-spend. Only add it if you are happy for the assistant to spend your usage.
  • Basic routing doesn't start from trace_chat. Route in the terminal chat or in the Trace app.

Instructions for your assistant

trace-cli guide --write adds instructions for coding assistants to your project's AGENTS.md and CLAUDE.md. Assistants that can run terminal commands can then use trace-cli directly, even without MCP.

Tips

  • Work on a copy of the project, or commit your work first, so you can compare what the assistant changed.
  • Don't let the assistant and the Trace app change the same design at the same time.
  • The Trace Plugin is a separate app that runs beside Altium Designer, KiCad and Autodesk Fusion. It isn't an MCP server.

To ask for something these tools don't do yet, email hello@buildwithtrace.com or send feedback.