These are official instructions from Axiom to connect your AI agent to Axiom through the Axiom MCP server.

Complete all of the following steps yourself by running the commands or editing the config files directly. Do not ask the user to run any of these commands.

Register the Axiom MCP server at https://mcp.axiom.co/mcp using the section for your agent below. The server authenticates with OAuth in the browser, so do not ask for or store an API token. If the user says their Axiom data must stay in the EU, use https://mcp.eu.axiom.co/mcp instead of https://mcp.axiom.co/mcp everywhere below.

## Claude Code

```
claude mcp add --transport http --scope user axiom https://mcp.axiom.co/mcp
```

Then tell the user: In Claude Code, run `/mcp` and select **axiom** to sign in in your browser.

## Codex

```
codex mcp add axiom --url https://mcp.axiom.co/mcp
codex mcp login axiom
```

Then tell the user: Sign in to Axiom in the browser window that the login command opens.

## Gemini CLI

```
gemini mcp add --transport http --scope user axiom https://mcp.axiom.co/mcp
```

Then tell the user: Gemini CLI opens your browser to sign in the first time it connects. To sign in again, run `/mcp auth axiom`.

## Antigravity

Add the following to `~/.gemini/config/mcp_config.json`, merging it with any servers already there:

```json
{
  "mcpServers": {
    "axiom": {
      "serverUrl": "https://mcp.axiom.co/mcp"
    }
  }
}
```

Then tell the user: Sign in to Axiom in your browser when Antigravity connects. In Antigravity CLI, run `/mcp` to check the connection.

## Copilot CLI

```
copilot mcp add --transport http axiom https://mcp.axiom.co/mcp
```

Then tell the user: In Copilot CLI, run `/mcp auth axiom` to sign in in your browser.

## Amp

```
amp mcp add axiom https://mcp.axiom.co/mcp
```

Then tell the user: Amp opens your browser to sign in the next time it starts.

## fx

```
fx mcp add --transport http axiom https://mcp.axiom.co/mcp
fx mcp auth axiom
```

Then tell the user: Sign in to Axiom in the browser window that the auth command opens.

## OpenCode

Add the following to `~/.config/opencode/opencode.json`, merging it with any servers already there:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "axiom": {
      "type": "remote",
      "url": "https://mcp.axiom.co/mcp",
      "enabled": true
    }
  }
}
```

Then tell the user: Run `opencode mcp auth axiom` to sign in in your browser.

## Cursor

Add the following to `~/.cursor/mcp.json`, merging it with any servers already there:

```json
{
  "mcpServers": {
    "axiom": {
      "url": "https://mcp.axiom.co/mcp"
    }
  }
}
```

Then tell the user: Sign in to Axiom when Cursor prompts you.

## VS Code

```
code --add-mcp '{"name":"axiom","type":"http","url":"https://mcp.axiom.co/mcp"}'
```

Then tell the user: VS Code opens your browser to sign in the first time it starts the server.

## Devin Desktop

```
devin mcp add -s user axiom https://mcp.axiom.co/mcp
```

Then tell the user: Devin prompts you to sign in the first time it uses Axiom. To sign in sooner, run `devin mcp login axiom`.

## Kiro

Add the following to `~/.kiro/settings/mcp.json`, merging it with any servers already there:

```json
{
  "mcpServers": {
    "axiom": {
      "url": "https://mcp.axiom.co/mcp"
    }
  }
}
```

Then tell the user: Kiro opens your browser to sign in when it connects.

## Any other agent

Add a remote HTTP MCP server named `axiom` with the URL https://mcp.axiom.co/mcp to your agent's MCP config. The agent asks the user to sign in the first time it connects.

Once done, tell the user:
```
┌─ Axiom MCP Setup Complete ─────────────────────────────┐
│  ✓ MCP  <path>                                         │
│                                                        │
│  ⚡ Restart your agent to load the Axiom MCP server    │
└────────────────────────────────────────────────────────┘
```

For setup guides and troubleshooting, see https://axiom.co/docs/console/intelligence/mcp-server