Connect Claude Code through MCP
Create an agent API key, add the Protoboard MCP server to Claude Code and let it work on a board you have open
Goal
Connect Claude Code to Protoboard so it can read and edit the Line-Following Robot board you have open, using the same tools ProtoBot uses. Other clients (Claude Desktop, Cursor, VS Code, Codex) are covered in Agent Bridge setup.
Steps
Create an agent API key
Animated GIF · Steps:
Open Settings (sidebar, or the avatar menu) and choose Developer.
Under Agent API Keys, type a name that says where the key lives, for example
Claude Code laptop.Click Create.
Click Copy key. The key starts with
pb_agent_and is shown only once.Click Done.
Add the server to Claude Code
In a terminal, run this with your key in place of pb_agent_YOUR_KEY_HERE:
claude mcp add-json --scope user protoboard '{"type":"http","url":"https://alpha.protoboard.ai/api/mcp","headers":{"Authorization":"Bearer pb_agent_YOUR_KEY_HERE"}}'--scope user makes Protoboard available in every Claude Code session on this machine.
Open a board and try it
In the browser, open the Main controller board.
Ask Claude Code:
What Protoboard boards do I have open?It callslist_boardsand connects to the board.Ask:
Run DRC on the board and summarize any issues.
A green AGENT pill appears next to the board name. Click it to open Agents > External, which lists the connected key and its call count.


Result
Claude Code can now search the library, place and wire parts, run DRC and manage the BOM on any board you open. The connection sticks to one board until you ask it to switch with connect_board. The full list is in the Tool reference.
Common failures
Related pages
Agent Bridge overview: what the bridge can and can't do
Agent Bridge setup: every client, user and project scope
API keys: rename, revoke and rotate keys
Tool reference: every tool your agent can call
Last updated

