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

# MCP

> Connect Claude Code, Claude Desktop, or Cursor to the Rulebase MCP server using the endpoint for your data region and OAuth sign-in.

Rulebase exposes an MCP server for AI clients that support remote MCP.
Use it to let tools like Claude Code, Claude Desktop, and Cursor read Rulebase data after you sign in to Rulebase.

If you want to ask questions of the same data without connecting an outside client, [Instruct](/guides/instruct/use-instruct) is the chat built into Rulebase.

***

## Endpoint

Use the endpoint for your Rulebase workspace's data region:

| Data region    | MCP endpoint                     |
| -------------- | -------------------------------- |
| United States  | `https://mcp.rulebase.co/mcp`    |
| European Union | `https://eu.mcp.rulebase.co/mcp` |

Include the `/mcp` path. The base hostname alone is not an MCP server endpoint.

The configuration examples below use the United States endpoint. For an EU workspace, replace it with `https://eu.mcp.rulebase.co/mcp`.

***

## Authentication

Rulebase uses OAuth for MCP access. When your MCP client connects, it opens a browser sign-in flow. Sign in with your Rulebase account and approve access.

Access is tied to your Rulebase organization. MCP tools only return data for that organization.

***

## Configure Claude Code

Add the remote server to your Claude Code MCP configuration:

```json theme={null}
{
  "mcpServers": {
    "rulebase": {
      "type": "http",
      "url": "https://mcp.rulebase.co/mcp"
    }
  }
}
```

Or from the CLI:

```bash theme={null}
claude mcp add --transport http rulebase https://mcp.rulebase.co/mcp
```

When Claude Code connects, it asks you to sign in and authorize access. Use `/mcp` to authenticate if needed.

***

## Configure Claude Desktop

Claude Desktop uses **custom connectors** for remote MCP servers.

1. Open **Settings → Connectors** (or [claude.ai/customize/connectors](https://claude.ai/customize/connectors)).
2. Click **Add custom connector** → **Web**.
3. Enter the MCP endpoint for your workspace's data region.
4. Click **Add**, then **Connect** and sign in to Rulebase.
5. In a chat, use **+ → Connectors** and enable Rulebase.

Rulebase works as a remote HTTP connector.

***

## Configure Cursor

Add the remote server in Cursor MCP settings:

```json theme={null}
{
  "mcpServers": {
    "rulebase": {
      "type": "http",
      "url": "https://mcp.rulebase.co/mcp"
    }
  }
}
```

Cursor asks you to sign in when it needs access.

***
