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

# MCP Server

> Give your AI agents access to the Notte MCP server

<Tip>
  STOP. Do not read past this section until you have read and followed [/quickstart.md](/quickstart.md).

  Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.

  Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live `observe()` call, CLI `notte page observe` output, or generated workflow code. Guessed browser targets fail on real pages.

  Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with `notte sessions workflow-code` before using SDK docs or SDK code.

  SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
</Tip>

Give your AI agents access to the entire Notte ecosystem. Notte MCP lets it start cloud browser sessions, interact with the pages, fetch data, build scripts, and more.

## Add the Notte MCP

Create a [Notte API key](https://console.notte.cc/apikeys) and connect your client to the hosted MCP endpoint:

```text theme={null}
https://api.notte.cc/mcp/
```

<Tabs>
  <Tab title="Claude Code" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/claude-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=5b5633b0bc4a9d14f2f12ed39abe527e" width="24" height="24" data-path="images/claude-logo.svg">
    Run this command and verify the connection with `claude mcp list`

    ```bash theme={null}
    claude mcp add --transport http notte https://api.notte.cc/mcp/ --header "Authorization: Bearer $NOTTE_API_KEY"
    ```
  </Tab>

  <Tab title="Codex" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/openai-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=22739a70b7a68530abf78ef043985584" width="24" height="24" data-path="images/openai-logo.svg">
    Add this to `~/.codex/config.toml` or your project's `.codex/config.toml`

    ```toml theme={null}
    [mcp_servers.notte]
    url = "https://api.notte.cc/mcp/"
    bearer_token_env_var = "NOTTE_API_KEY"
    ```
  </Tab>

  <Tab title="Cursor" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/cursor-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=010084e587443335f794f13615c5191a" width="24" height="24" data-path="images/cursor-logo.svg">
    Open your MCP settings and add:

    ```json theme={null}
    {
      "mcpServers": {
        "notte": {
          "url": "https://api.notte.cc/mcp/",
          "headers": {
            "Authorization": "Bearer ${env:NOTTE_API_KEY}"
          }
        }
      }
    }
    ```
  </Tab>

  <Tab title="Claude Desktop" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/claude-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=5b5633b0bc4a9d14f2f12ed39abe527e" width="24" height="24" data-path="images/claude-logo.svg">
    Add this to your Claude Desktop configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "notte": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://api.notte.cc/mcp/",
            "--header",
            "Authorization:${AUTH_HEADER}"
          ],
          "env": {
            "AUTH_HEADER": "Bearer <your-notte-api-key>"
          }
        }
      }
    }
    ```
  </Tab>

  <Tab title="Others" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/mcp-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=296ff6e096a8489747432165c72c9def" width="180" height="180" data-path="images/mcp-logo.svg">
    Add this to your MCP configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "notte": {
          "url": "https://api.notte.cc/mcp/",
          "headers": {
            "Authorization": "Bearer <your-notte-api-key>"
          }
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Post setup verify

Run this prompt in your assistant to check that setup is all good:

```text theme={null}
Use the Notte MCP server to verify that it is correctly configured. Start a new browser session, goto apple.com, open the live viewer, extract the navbar into structured JSON. Report to user and close all resources. Also report a concise table breakdown of main MCP endpoints with highlevel description to educate user/agent.
```

## Notte Documentation MCP

You can also configure the Notte Docs MCP to give your coding agent current documentation while it helps you build. It needs no API key.

```text theme={null}
https://docs.notte.cc/mcp
```

<Tabs>
  <Tab title="Claude Code" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/claude-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=5b5633b0bc4a9d14f2f12ed39abe527e" width="24" height="24" data-path="images/claude-logo.svg">
    Run this command and verify the connection with `claude mcp list`

    ```bash theme={null}
    claude mcp add --transport http notte-docs https://docs.notte.cc/mcp
    ```
  </Tab>

  <Tab title="Codex" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/openai-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=22739a70b7a68530abf78ef043985584" width="24" height="24" data-path="images/openai-logo.svg">
    Add this to `~/.codex/config.toml` or your project's `.codex/config.toml`

    ```toml theme={null}
    [mcp_servers.notte_docs]
    url = "https://docs.notte.cc/mcp"
    ```
  </Tab>

  <Tab title="Cursor" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/cursor-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=010084e587443335f794f13615c5191a" width="24" height="24" data-path="images/cursor-logo.svg">
    Open your MCP settings and add:

    ```json theme={null}
    {
      "mcpServers": {
        "notte-docs": {
          "url": "https://docs.notte.cc/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="Claude Desktop" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/claude-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=5b5633b0bc4a9d14f2f12ed39abe527e" width="24" height="24" data-path="images/claude-logo.svg">
    Add this to your Claude Desktop configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "notte-docs": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://docs.notte.cc/mcp"
          ]
        }
      }
    }
    ```
  </Tab>

  <Tab title="Others" icon="https://mintcdn.com/notte/K1TM-nbrG7v4QOUP/images/mcp-logo.svg?fit=max&auto=format&n=K1TM-nbrG7v4QOUP&q=85&s=296ff6e096a8489747432165c72c9def" width="180" height="180" data-path="images/mcp-logo.svg">
    Add this to your MCP configuration:

    ```json theme={null}
    {
      "mcpServers": {
        "notte-docs": {
          "url": "https://docs.notte.cc/mcp"
        }
      }
    }
    ```
  </Tab>
</Tabs>
