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

# MCP server for LLMs and AI coding tools

> Connect the Bastion documentation MCP server to Claude, Cursor, and VS Code so your AI tools can search the docs and API reference while you build.

The Bastion documentation site hosts a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server so AI-powered tools — like Claude, Cursor, VS Code, and other MCP-compatible editors — can search the Bastion docs and API reference directly while you build.

## MCP server URL

The Bastion MCP server is available at the `/mcp` path of the documentation site:

```
https://docs.bastion.com/mcp
```

<Note>
  The MCP server exposes the same content as the published documentation, including the [API reference](/v2/api-reference/authentication/overview) generated from our OpenAPI specification. If the docs require sign-in, use the `/authed/mcp` path instead.
</Note>

## Connect from any page

Every page on this site has a contextual menu in the top-right corner with one-click options to connect the MCP server to your tools:

* **Copy MCP server URL** — copies the URL above to your clipboard.
* **Copy MCP install command** — copies an `npx add-mcp` command that installs the server.
* **Connect to Cursor** / **Connect to VS Code** — installs the server directly in your editor.

## Manual setup

<Tabs>
  <Tab title="Claude Code">
    Add the server with the Claude Code CLI:

    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    claude mcp add --transport http bastion https://docs.bastion.com/mcp
    ```

    Verify the connection with `claude mcp list`.
  </Tab>

  <Tab title="Claude">
    1. Open the [Connectors](https://claude.ai/settings/connectors) page in your Claude settings.
    2. Select **Add custom connector**.
    3. Add the server — Name: `Bastion`, URL: `https://docs.bastion.com/mcp`.
    4. Select **Add**. In a chat, use the attachments (**+**) button to select the Bastion server.
  </Tab>

  <Tab title="Cursor">
    1. Open the command palette (<kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>, or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows) and search for **Open MCP settings**.
    2. Select **Add custom MCP** to open `mcp.json`.
    3. Add the server:

    ```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    {
      "mcpServers": {
        "bastion": {
          "url": "https://docs.bastion.com/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="VS Code">
    Create a `.vscode/mcp.json` file and add the server:

    ```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    {
      "servers": {
        "bastion": {
          "type": "http",
          "url": "https://docs.bastion.com/mcp"
        }
      }
    }
    ```
  </Tab>
</Tabs>

## What you can do

Once connected, ask your AI tool questions about Bastion and it will pull answers from the live documentation. For example:

* "How do I onboard an individual customer with Bastion?"
* "What fields does the Submit Cryptocurrency Transfer endpoint require?"
* "Which chains and assets does Bastion support?"

Because the MCP server includes our OpenAPI-generated [API reference](/v2/api-reference/authentication/overview), your tools can look up endpoints, parameters, and response schemas without leaving your editor.


## Related topics

- [Security architecture overview](/guides/security/overview.md)
- [API authentication overview](/guides/security/api-authentication.md)
- [JWT generation example](/v2/api-reference/authentication/jwt-generation-example.md)
- [Redeem Bastion-issued stablecoins to USD](/guides/quickstarts/redeem-bastion-issued-stablecoins.md)
- [Mint Bastion-issued stablecoins with the Issuance API](/guides/quickstarts/mint-bastion-issued-stablecoins.md)
