MCP (Connecting AI Assistants)
blokdots can connect to AI assistants over the Model Context Protocol (MCP). While blokdots is open, a small local server lets an AI client on your computer — like Claude Desktop, Claude Code, Cursor or VS Code — read the components in your project and build logic cards for you.
It works on your blokdots project: it reads and changes components and logic cards and, only when you ask for it, runs the project, uploads code to your board and saves. It can't read other files or do anything outside blokdots, and it only runs while blokdots is open on your machine.
This is a Pro feature and is on by default for Pro users. You can turn it off any time in Settings → AI Integration.
#How it works
blokdots exposes a set of tools over the Model Context Protocol (MCP), grouped by what they do:
Discovering your project
- list_components — List component capabilities
- list_project_components — List project slots
- get_board_status — Get board connection status
- list_connections — List external connections
- get_live_value — Get a component's current live value
- list_serial_ports — List available serial ports
Building logic
- preview_arduino_code — Preview generated Arduino code
- add_logic_card — Create an IFTTT card
- list_cards — List logic cards
- update_card — Replace a logic card's behaviour
- remove_card — Delete a logic card
- set_card_active — Turn a logic card on or off
Managing hardware
- setup_component — Set up a component in the project
- remove_component — Remove a component from the project
- rename_component — Rename a component
- move_component — Move a component to a different pin
- set_board — Declare which board the project targets
- set_component_options — Change a component's setup options
- how_to_wire_component — Get hardware setup instructions
Board control (only when you ask for it)
- run_project — Run the project live
- stop_project — Stop the running project
- reconnect_board — Reconnect to the board
- set_component_value — Directly set a component's live value
Code & saving
- save_project — Save the project
- save_project_as — Save the project to a new file
- generate_code — Generate project Arduino code
- upload_code — Upload project code to the board
The AI never generates, uploads, or saves as a side effect of building logic — those are always separate, explicit steps you (or the AI, when you ask it to) trigger on purpose. A handful of components — Project, All Connections, Socket.IO, ProtoPie Connect and ProtoPie Player — are always present in every project and can never be removed, since blokdots has no way to add them back.
#Connecting an AI client
Open Settings → AI Integration in blokdots. When the server is
running it shows its address (by default http://127.0.0.1:31333/mcp) and
buttons to connect Claude Desktop, Cursor and VS Code. For
other clients, use the instructions below.
#Claude Desktop
Install the blokdots extension for Claude Desktop:
- Download
blokdots.mcpb. - Double-click it, or drag it into Claude Desktop's Settings → Extensions, and confirm the install.
- With blokdots open, ask Claude something like "What's in my blokdots project?"
The extension is a small local bridge between Claude Desktop and blokdots: it needs no configuration, and it works even if you install it before opening blokdots (it connects as soon as blokdots is running). It's updated separately from the app, so download it again when a new version is announced.
Until the extension is listed in Anthropic's extension directory, Claude Desktop may show a "not verified" warning while installing it. That's expected for extensions installed from a file and doesn't affect how it works.
If blokdots shows a different address than 127.0.0.1:31333 (see the note
at the end of this section), open the extension's settings in Claude
Desktop and change the port to match.
#Cursor / VS Code (one click)
In Settings → AI Integration, click Add to Cursor or Add to VS
Code. Your editor opens and asks to add the blokdots MCP server:
confirm, and you're connected. blokdots must be open for it to work.
#Claude Code
claude mcp add --transport http blokdots http://127.0.0.1:31333/mcpThen in a session, /mcp lists the connection and its tools. blokdots
must be open for the connection to work.
#Gemini CLI
gemini mcp add --transport http blokdots http://127.0.0.1:31333/mcp#OpenAI Codex CLI
codex mcp add blokdots --url http://127.0.0.1:31333/mcp#Other clients
Any client that speaks MCP over Streamable HTTP can connect: point it at the URL shown in blokdots' settings.
blokdots tries port 31333 first. If another program is already using it, blokdots falls back to a random free port. Check Settings → AI Integration for the actual address in that case.
#Cards for hardware you haven't set up yet
If you ask the AI for a card that uses a component you haven't added to the project, blokdots still creates the card but leaves it inactive, and tells the AI exactly what you need to set up (which component, on which pin) with a link to that component's documentation. The AI can set the component up for you directly, or you can add it yourself in blokdots — either way, the card activates on its own once it's there.
#Wiring help and connecting other tools
The AI knows how your project is set up, so it can give concrete help instead of generic advice:
- Wiring: it knows your board, whether you use Grove cables with a shield or jumper wires (the slot/pin view in the Wizard), and which pins or connectors are still free. It suggests a spot that actually fits, including the second pin that components like the Joystick need.
- Socket.IO: it gives you the exact address your own code (p5.js, TouchDesigner, a Node.js script, …) should connect to, from this computer or from another device on your network, and the message format blokdots expects.
- ProtoPie: it can tell whether ProtoPie Connect or the ProtoPie Player app is connected, and walks you through connecting it.
- Figma: it sees which layers you exposed in the blokdots Figma plugin and only uses those. If a layer is missing, it asks you to select it in Figma and click "Expose current selection to blokdots".
#Turning it off
Settings → AI Integration → Allow AI clients to connect. Turning it off stops the server immediately; any connected client is disconnected.