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

# Install the MCP server

> Connect Claude Code or Cursor to the Asteroid MCP server, and fix common connection problems.

The MCP server signs you in through the browser. It does not take an API key.

> [tab] Claude Code
>
> **1. Add the server**
>
> Run this in your terminal:
>
> ```bash theme={null}
> claude mcp add --transport http asteroid https://mcp.asteroid.ai/mcp
> ```
>
> **2. Sign in**
>
> Complete the browser sign-in the first time Claude Code calls an Asteroid tool. The client stores the token
> and sends it on later requests.
>
> **3. Check it works**
>
> Ask Claude Code:
>
> ```
> List all my Asteroid agents
> ```
>
> Your workflows come back in the reply.

> [tab] Cursor
>
> **1. Add the server**
>
> Add this to `.cursor/mcp.json` in the project, or to `~/.cursor/mcp.json` for every project:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "asteroid": {
>       "url": "https://mcp.asteroid.ai/mcp"
>     }
>   }
> }
> ```
>
> **2. Sign in**
>
> Accept the OAuth prompt on first use so Cursor gets a token for your Asteroid user.
>
> **3. Check it works**
>
> In the chat, ask:
>
> ```
> List all my Asteroid agents
> ```

> [!NOTE]
>
> The server speaks streamable HTTP at `/mcp`. It publishes OAuth metadata at
> `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`, so clients that
> discover authentication find it on their own.

## When it does not connect

| Problem | Fix |
| :- | :- |
| "Tool not found" | Check the server is registered. Run `claude mcp list`, or read `.cursor/mcp.json`. |
| 401 or an authentication error | Remove the server, add it again, and sign in. Check your user has access to the organization. |
| Timeouts | Check your network reaches `mcp.asteroid.ai`. |

> [!TIP]
>
> Give your coding agent [skill.md](https://docs.asteroid.ai/skill.md) too, so it can act on these docs
> directly. See [Point your coding agent at the docs](https://docs.asteroid.ai/build/from-your-coding-agent.md#point-your-coding-agent-at-the-docs).

## Next

> [card] [What the MCP server can do](https://docs.asteroid.ai/mcp/tools.md)
>
> Every tool, grouped by what it acts on

> [card] [Build a workflow over MCP](https://docs.asteroid.ai/build/from-your-coding-agent.md#build-a-workflow-over-mcp)
>
> A worked example, start to finish


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