Your agent, your computer

The One Dollar Computer MCP connects your own AI agent — Claude Code, Cursor, Codex, and more — to your One Dollar Computer account, so it can work with your firmware projects and lessons right from your chat.

Start with one paste

Give your agent this line — it does the rest:

Connect to my One Dollar Computer: read https://odc.rs/mcp and follow the agent instructions on that page — install the odc MCP server, call odc_connect, and show me the approval link.

How the approval works

  1. Your agent starts. It installs the MCP server and asks to connect — you get one approval link.
  2. You approve with Google. Open the link in any browser, sign in with Google, and click Approve. No account yet? That first sign-in creates it, and you pick your username on the same screen. No new password, ever.
  3. Your agent is in. It sees the approval on its own and can start working. The pairing token lives on your machine, and you can revoke it any time from your page or Learn Physical AI.

Set up your agent

You need Node.js 18 or newer. Then add the server — name it odc:

Claude Code
claude mcp add odc -- npx -y @onedollarcomputer/odc-mcp

Want it in every project? Add --scope user.

Codex
codex mcp add odc -- npx -y @onedollarcomputer/odc-mcp

Codex writes ~/.codex/config.toml for you.

Cursor
{
  "mcpServers": {
    "odc": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@onedollarcomputer/odc-mcp"]
    }
  }
}

Paste into ~/.cursor/mcp.json, then switch odc on under Customize → MCPs.

VS Code (Copilot)
{
  "servers": {
    "odc": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@onedollarcomputer/odc-mcp"]
    }
  }
}

Or use Command Palette → MCP: Add Server → Command (stdio) → npx -y @onedollarcomputer/odc-mcp. Note VS Code calls the key servers.

Any other agent
{
  "mcpServers": {
    "odc": {
      "command": "npx",
      "args": ["-y", "@onedollarcomputer/odc-mcp"]
    }
  }
}

Most agents accept this mcpServers shape. Windsurf, Cline, Gemini CLI, Zed and Continue use the same command with small format differences.

After the server is added, just tell your agent: “Connect to my One Dollar Computer.” It calls odc_connect and hands you the approval link.

What your agent can do

Firmware projects: list, create, read, edit, publish and fork. Lessons for Learn Physical AI: list, create, read and edit. Board firmware is always complete Simple Rust (use odc::*;) — your agent gets the full authoring brief from the server itself.

For agents

{
  "server": "odc",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "@onedollarcomputer/odc-mcp"],
  "connect": {
    "tool": "odc_connect",
    "flow": "The tool starts a pairing, returns an approveUrl, and waits. Show the approveUrl to the user. The user opens it in any browser, signs in with Google (first sign-in creates the account), confirms a username if asked, and approves. The tool then stores the pairing token locally (~/.config/odc/) and reports connected.",
    "approveUrlPattern": "https://onedollarcomputer.com/mcp/approve/?code=",
    "linkLifetimeMinutes": 10,
    "revoke": "The user can revoke agent access any time from onedollarcomputer.com/project/ or onedollarcomputer.com/c/ (Agent -> Revoke)."
  },
  "afterConnect": ["project_brief", "project_list", "curriculum_agent_brief", "curriculum_list_lessons"],
  "rules": [
    "Board firmware must be complete Simple Rust: use odc::*; fn main() { ... }",
    "Never read_button() / pin 13 / BUTTON as user input - pin 13 is bootloader only",
    "Do not scrape onedollarcomputer.com; use the MCP tools"
  ]
}