> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentonboard.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Remote MCP Server (/api/mcp)

> Technical specification and tool schemas for the AgentOnboard Remote Model Context Protocol (MCP) server.

AgentOnboard hosts a remote **Model Context Protocol (MCP)** server at `https://agentonboard.xyz/api/mcp`. AI Agents in Claude Code, Cursor, Codex, OpenCode, Hermes, Pi, and OpenClaw connect to this endpoint to mint 5-minute, domain-scoped `RS256` Agent Identity Tokens without a local CLI or daemon.

***

## Endpoint & authentication

```text theme={null}
POST https://agentonboard.xyz/api/mcp
```

* **Transport:** Streamable HTTP / SSE transport conforming to the Model Context Protocol specification (`2024-11-05`).
* **Authentication:** Every request must include your AgentOnboard API Key in the `Authorization` header:
  ```http theme={null}
  Authorization: Bearer aon_live_...
  ```

> [!NOTE]
>
> **Where to get your API Key**
>
> API Keys start with `aon_live_` and are generated on [Dashboard Keys](https://agentonboard.xyz/dashboard/keys).

***

## Exposed tools

The Remote MCP server exposes two tools to connected agents:

### 1. `get_token`

Mints a 5-minute `RS256` Agent Identity Token bound to the requested Domain.

#### Input schema

| Parameter | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Target Domain hostname or URL (for example `"notes.com"` or `"https://api.notes.com/v1"`). Normalized to a bare lowercase hostname. |

#### Output JSON

```json theme={null}
{
  "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImFvbl8yMDI2X3YxIn0...",
  "token_type": "Bearer",
  "expires_in": 300,
  "expires_at": 1740000300,
  "domain": "notes.com"
}
```

The agent reads `token` and sends it to your app on every request:

```http theme={null}
Authorization: Bearer <token>
```

***

### 2. `whoami`

Returns the account email, display name, and key prefix associated with the connected API Key. Used during setup to confirm connectivity without minting a domain token.

#### Input schema

None (`{}`).

#### Output JSON

```json theme={null}
{
  "email": "ada@example.com",
  "name": "Ada Lovelace",
  "keyPrefix": "aon_live_abcd"
}
```

***

## Universal MCP configuration

Any MCP-compatible client can connect using this JSON configuration:

```json title="mcp.json" theme={null}
{
  "mcpServers": {
    "agentonboard": {
      "type": "http",
      "url": "https://agentonboard.xyz/api/mcp",
      "headers": {
        "Authorization": "Bearer aon_live_your_key_here"
      }
    }
  }
}
```

***

## Security guarantees

1. **API Key isolation:** Your `aon_live_...` key stays in your MCP Client configuration. It is never placed in the chat prompt, never committed to git, and never sent to third-party APIs.
2. **Domain-scoped tokens (`aud`):** Tokens minted by `get_token` carry an `aud` claim locked to the requested hostname. A token minted for `notes.com` is rejected by any other Domain with `AUDIENCE_MISMATCH`.
3. **5-minute expiration:** Every token expires 300 seconds after issuance (`exp = iat + 300`).
4. **Local verification:** Apps verify tokens in their own process against `https://agentonboard.xyz/.well-known/jwks.json`.

***

## Next steps

> [card] [Connect Your Agent](https://docs.agentonboard.xyz/users/connect-agent.md)
>
> Copy-paste setup prompts and commands for Claude Code, Cursor, Codex, and OpenCode.

> [card] [POST /api/v1/token/exchange](https://docs.agentonboard.xyz/api/token-exchange.md)
>
> Test POST /api/v1/token/exchange directly in the API playground.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.