Skip to main content
The DeepPCB MCP server gives any client that speaks the Model Context Protocol the same board tools Cooper, DeepPCB’s assistant, uses. Your agent can read a board and its connectivity, set up net classes, layers, planes, differential pairs and decoupling rules, then place and route the board and follow the run. The server is hosted by DeepPCB, so there is nothing to install.

Connect

You need a DeepPCB API key: see Getting your API key. Every call runs as the user who owns the key and sees only that user’s boards.
Keep your API key out of shared configuration files and version control. The examples below read it from the DEEPPCB_API_KEY environment variable, or prompt for it.
Your shell expands $DEEPPCB_API_KEY once, when you run the command, and Claude Code stores the key in its own configuration (~/.claude.json).
Any other client that supports Streamable HTTP with a custom Authorization header works the same way.
Clients that connect only through OAuth sign-in, such as claude.ai and ChatGPT connectors, are not supported yet.

How it behaves

  • Boards come in by URL. create_board takes links to your board files and the server downloads them. It cannot read files from your computer, so upload a local file first (see below). Public links and short-lived signed links both work.
  • Destructive changes ask first. Tools that can remove work (placing a board, routing over existing copper, clearing routing) refuse the first call and report what would change. Your agent calls again with confirm_destructive_change=true and the confirmation_token from the refusal to go ahead. If the board changed in between, the call is refused again with fresh counts.
  • Runs are asynchronous. route_board and place_board start a run and return straight away. Follow it with get_board_progress and stop it with stop_board.
  • Every tool is annotated. Read-only, destructive and idempotent hints are set on every tool, so your client can decide what to confirm with you.
  • Errors explain themselves. A refused or invalid call says what was wrong and how to fix it.
  • Fair use. The endpoint is rate limited. A call refused for rate is safe to retry after a short wait.

Using a board file from your computer

MCP cannot carry a file’s contents, and the hosted server cannot see your disk. Upload the file to DeepPCB first. The upload answers with a signed link, valid for 24 hours, that create_board accepts:
Keep the path in single quotes so your shell expands nothing in the file name. The upload stores the file under a generated name, so pass board_name to create_board (for example the local file’s name), or the board is named after the stored copy. Agents that can run shell commands (Claude Code, Cursor, Codex and similar) do both steps on their own: create_board tells them how. Upload each file of a multi-file design (for example a KiCad .kicad_pcb and its .kicad_pro) separately and pass all the links together. Accepted file types: .dsn, .dsgf, .ftf, .rulf, .pcbdoc, .json, .kicad_pcb, .kicad_pro. See Supported Formats.
Never paste your API key into the chat. Export DEEPPCB_API_KEY in the shell your agent runs commands in instead.

Tools

Your client lists every tool with its full description and input schema. The main groups are: A few older tools with TitleCase names (Route, Place, Get_board_progress and others) are kept for existing integrations and are deprecated. Each one’s description names its replacement.

MCP or the REST API

The MCP server suits interactive work, where you guide an agent in natural language. For unattended pipelines, such as routing in CI, the DeepPCB REST API gives you direct control over the full job lifecycle. You can use both with the same API key.

Support

Questions and problems: support@deeppcb.ai.