Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Time: 5 minutes. You need: Claude Code installed, and a Protoboard account on any plan. MCP calls don't use ProtoBot Energy.

Steps

1

Create an agent API key

Create an agent API key

Animated GIF · Steps:

  1. Open Settings (sidebar, or the avatar menu) and choose Developer.

  2. Under Agent API Keys, type a name that says where the key lives, for example Claude Code laptop.

  3. Click Create.

  4. Click Copy key. The key starts with pb_agent_ and is shown only once.

  5. Click Done.

2

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.

3

Check the connection

  1. Run claude mcp list. protoboard should show as connected.

  2. Start Claude Code and run /mcp to see the Protoboard tools.

4

Open a board and try it

  1. In the browser, open the Main controller board.

  2. Ask Claude Code: What Protoboard boards do I have open? It calls list_boards and connects to the board.

  3. 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.

The editor header with a green AGENT pill next to the board name, and the Agents panel on the External tab listing the connected key Claude Code laptop with its call count
The AGENT pill and the External tab.

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

401 or "Unauthorized"

The key is wrong, revoked, or missing the Bearer prefix. Copy the key again (create a new one if you lost it) and re-run the add command after claude mcp remove protoboard.

"No board connected" or no boards found

No board is open in a signed-in browser tab. Open the board, then ask again. If several boards are open, ask Claude Code to use connect_board with the one you want.

A call comes back as QUEUED

The board's tab is asleep in the background. Click the tab to wake it; queued calls run then. See Agent Bridge troubleshooting.

Last updated