Skip to content
AI & MCP / MCP server

MCP server

Markdown

Install and configure the Atracode MCP server in Claude Desktop, Claude Code, Cursor or Devin Desktop, and fix common setup problems.

Preview. Atracode opens at launch, and the commands, tools and API shapes on this page may change before then.

The Atracode MCP server connects any client that speaks the Model Context Protocol to the hosted compiler. Once it is configured, your agent gets four tools: atracode_compile, atracode_verify_equivalence, atracode_inspect_seg and atracode_get_raven_hash. MCP tools documents each one.

The server ships as the npm package @atracode/mcp-server and uses the stdio transport: your client starts it as a local process with npx, and the process talks to the compiler over authenticated endpoints. The compiler itself stays on Atracode’s servers.

Note: The @atracode/mcp-server package is published at platform launch. The configs below are what you will paste in then.

Before you start

You need:

  • An API key from your workspace. Keys look like atc_live_xxxxxxxxxxxx. You get one after you pick a plan on the pricing page; Authentication has the details.
  • Node.js, so your client can run npx.

Replace atc_live_xxxxxxxxxxxx in each example with your own key.

Claude Desktop

Add this to claude_desktop_config.json, then restart Claude Desktop:

{
  "mcpServers": {
    "atracode": {
      "command": "npx",
      "args": [
        "-y",
        "@atracode/mcp-server"
      ],
      "env": {
        "ATRACODE_API_KEY": "atc_live_xxxxxxxxxxxx"
      }
    }
  }
}

Claude Code

Run this in your terminal:

claude mcp add atracode --env ATRACODE_API_KEY=atc_live_xxxxxxxxxxxx -- npx -y @atracode/mcp-server

Cursor

Add this to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "atracode": {
      "command": "npx",
      "args": [
        "-y",
        "@atracode/mcp-server"
      ],
      "env": {
        "ATRACODE_API_KEY": "atc_live_xxxxxxxxxxxx"
      }
    }
  }
}

Devin Desktop

Devin Desktop is the editor formerly called Windsurf, and it still reads the same file. Add this to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "atracode": {
      "command": "npx",
      "args": [
        "-y",
        "@atracode/mcp-server"
      ],
      "env": {
        "ATRACODE_API_KEY": "atc_live_xxxxxxxxxxxx"
      }
    }
  }
}

Other MCP clients take the same three values: the command npx, the arguments -y @atracode/mcp-server, and the environment variable ATRACODE_API_KEY.

Environment variable

The server reads one variable:

NameRequiredValue
ATRACODE_API_KEYYesThe API key from your Atracode workspace

The server sends it as a Bearer token on every request. Each connected agent holds one agent stream, and every compilation it makes counts toward your workspace’s monthly quota.

Discovery

Agents that support discovery can find the server on their own at /.well-known/mcp.json. The file names the package (@atracode/mcp-server), the transport (stdio), the required ATRACODE_API_KEY variable, the four tools, and a link to /llms.txt for documentation. It also reports "status": "pre-launch" until the package is published. llms.txt covers both files.

Troubleshooting

The key is missing or rejected

If ATRACODE_API_KEY is not set, or the key has been rotated or revoked, tool calls fail with an authentication error. Check that the env block (or the --env flag in Claude Code) contains the full key, starting with atc_live_, and that you restarted the client after editing its config. See Errors.

The tools do not show up

  • Restart the client. Most clients only read MCP config at startup.
  • Check that the JSON is valid and the server is under mcpServers, with the key atracode.
  • Check that npx is on the path your client uses. Run npx -y @atracode/mcp-server in a terminal to see whether it starts.
  • In Cursor, check that .cursor/mcp.json is in the project you have open.

A call came back refused

A refusal is a normal result. When atracode_compile returns "status": "refused", the compiler worked: it found a construct it cannot verify bit for bit and reported its exact file, line and column, with a hint. Your agent should read the hint, change the code and compile again. Refusals are not errors, and the server does not report them as failed tool calls. Refusals explains the common causes.

Next steps

esc

Type to search titles, headings and text.