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

# Claude Code

> Add the Arcus MCP server to Claude Code

Give [Claude Code](https://claude.com/claude-code) access to the Arcus docs so it can answer questions and generate code grounded in the live REST and WebSocket reference.

## Prerequisites

* Claude Code installed (`npm i -g @anthropic-ai/claude-code`)
* An Anthropic account (Claude Pro, Max, Team, or API access)

## Setup

<Steps>
  <Step title="Add the MCP server">
    In your terminal, run:

    ```bash theme={null}
    claude mcp add --transport http arcus-docs https://docs.arcus.xyz/mcp
    ```

    Optional scope:

    * `-s user` — available across every project on this machine
    * `-s project` — saved to `.mcp.json` in the repo (shared with teammates)
    * default (no flag) — only this project, only you
  </Step>

  <Step title="Authenticate">
    Start a Claude Code session and run:

    ```
    /mcp
    ```

    Select **arcus-docs**, then **Authenticate**. A browser window opens, you sign in, and the OAuth token is stored locally. You only do this once.
  </Step>

  <Step title="Verify the connection">
    ```bash theme={null}
    claude mcp list
    ```

    You should see `arcus-docs ✓ Connected`. Inside a session, `/mcp` will also show the tools the server exposes (search, fetch, etc.).
  </Step>

  <Step title="Try it">
    Ask something that exercises the spec:

    > *Which endpoint accepts take-profit and stop-loss parameters — `placeOrder` or `batchPlaceOrder`? Show me the request shape.*

    Claude Code will call the MCP server, pull the relevant page, and answer from the actual spec instead of guessing.
  </Step>
</Steps>

## Removing the server

```bash theme={null}
claude mcp remove arcus-docs
```

## Notes

* The first request after authentication may take a moment while the client establishes the streaming HTTP session.
* If the `Authenticate` step never opens a browser, update Claude Code and re-add the server — HTTP-transport OAuth support is recent.
* For the underlying server details and OAuth metadata, see the [MCP server overview](/ai-tools/mcp).
