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

# Connect an MCP host

> Add the Parable MCP server to Claude Code, Claude, Cursor, or VS Code, with OAuth sign-in or an MCP token.

The Parable MCP server lets an AI assistant, which MCP calls a **host**, work in
one Workspace. The host can query Provider data with SQL, read published
Plots, check Provider connections and Taps, and read the Workspace's Powers.
Every call acts as one person, with that person's roles. A call reads, unless
the person let the agent change and publish Parables and send Pings, or start
and change Problems.
[Tools, prompts, and limits](https://developers.askparable.com/mcp/tools.md) lists what the server offers.

The server address for a Workspace is:

```text theme={null}
https://mcp.parable.work/mcp/workspaces/<workspace-slug>
```

The slug is the first part of your Workspace's address: `acme-corp` in
`acme-corp.parable.work`. The path names the Workspace. Do not send an
`X-Tenant` header.

## Choose how the host signs in

| Way | Use it for | What the host holds |
| - | - | - |
| [Sign in with OAuth](#sign-in-with-oauth) | A host that supports MCP sign-in, such as Claude Code. Nobody copies a token. | A grant for one Workspace that reads, and changes Parables or Problems when you allow it. The host refreshes it. |
| [Use an MCP token](#use-an-mcp-token) | A host that cannot sign in, or a script that runs without a browser. | A personal access token for MCP, which you create in the app. |

Both ways act with the roles of the person who signed in or created the
token. Neither way reaches a different Workspace.

## Allow external agents

Do this step first, for either way. It is off in every Workspace until a
person turns it on.

1. In the Workspace app, open **Protection → Access Tokens**.
2. Turn on **Allow external agents**.

This setting needs a role that manages sign-in for the Workspace
(`tenant.auth.manage`). While it is off:

* Every MCP token and every sign-in from a host is refused with `403`
  (code `WA-PAT-006`).
* Nobody can create an MCP token.
* The sign-in page does not offer the Workspace.

Turning the setting off revokes nothing. When it is on again, MCP tokens
work again, and a person who signed in from a host may need to sign in
again.

> [!NOTE]
>
> A host sends what it reads to its own model provider. Your Workspace's AI
> processor settings do not cover that provider.

## Sign in with OAuth

**1. Add the server without a token**

Follow the tab for your host.

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http parable \
>   https://mcp.parable.work/mcp/workspaces/acme-corp
> ```
>
> In Claude Code, run `/mcp`. Choose `parable`, then **Authenticate**.

> [tab] Claude
>
> Add the server as a custom connector in Claude on the web or in
> Claude Desktop.
>
> 1. Open **Customize > Connectors**.
> 2. Select **Add custom connector**.
> 3. Type a name, such as `Parable`, and the server URL.
> 4. In **Authentication**, select **Sign in now**.
> 5. In **OAuth client**, select **Use Claude's published identity**.
> 6. Select **Add**.
>
> Claude connects to the server from Anthropic's cloud.

> [tab] Cursor
>
> Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in
> one project, with no headers:
>
> ```json mcp.json theme={null}
> {
>   "mcpServers": {
>     "parable": {
>       "url": "https://mcp.parable.work/mcp/workspaces/acme-corp"
>     }
>   }
> }
> ```
>
> Cursor runs the sign-in when the server asks for it.

> [tab] VS Code
>
> Add the server to `.vscode/mcp.json` in your workspace:
>
> ```json .vscode/mcp.json theme={null}
> {
>   "servers": {
>     "parable": {
>       "type": "http",
>       "url": "https://mcp.parable.work/mcp/workspaces/acme-corp"
>     }
>   }
> }
> ```
>
> When the server starts, VS Code asks you to sign in.

**2. Allow access on the consent page**

The host opens the Workspace app in your browser. Sign in if the app
asks you to. The consent page then asks: "Allow ... to read data in your
Workspace?" It shows:

* Where the sign-in goes: "an application on this computer", or a host
  on the internet. A sign-in that goes to the internet, or that comes
  from a host that gave no name, has a caution.
* The name the host gives itself. Any program can choose any name, so
  allow only a sign-in that you started yourself just now.
* The Workspaces you may grant. Only Workspaces that allow external
  agents are on the list.
* Under **Also allow**, **Change and publish Parables, and send Pings** and
  **Start and change Problems**, when the host asks for them. Each is off.
  Turn on the first only if the agent should edit Parables and the Powers
  that every member's Ponder reads, publish Parables for everyone in the
  Workspace, change who takes part in a Parable, and send Pings in your name.
  Turn on the second only if the agent should start and change Problems in
  your Workspace. It can do only what you can do. Only Parable staff see
  Ponder in a Workspace today, so you cannot open the agent's Problems in
  the web app.

Choose the Workspace and select **Allow**. The host then holds access
for that Workspace and refreshes it without your help.

**3. Ask a question**

Ask the host a question about your data, such as "Which Provider tables
can you query in Parable?" In Claude Code, `/mcp` lists the server and
its tools.

A grant reads (scope `data:read`). With **Change and publish Parables, and send
Pings** turned on, it can also make those changes (scope `parables:write`). With
**Start and change Problems** turned on, it can also start Problems and post
Messages in them (scope `problems:write`). Its access token lasts one hour, and
the host refreshes it.
A grant ends 90 days after you allow it, and the host then shows the consent
page again when you sign in. A grant that the host does not use for 30 days
ends sooner.

To end a grant from Claude Code, run `claude mcp logout parable`. To end it
from the Workspace app, open **Protection → Agent Sign-ins** and revoke it.
That page lists your grants in every Workspace. A Workspace administrator
sees and revokes every member's grant to the Workspace there. To refuse
every grant in the Workspace at once, turn **Allow external agents** off.

The server takes hosts that register as desktop applications. A host whose
sign-in returns to an address that is not on `localhost` and not on HTTPS
cannot sign in. If the sign-in fails with `invalid_redirect_uri` or
`invalid_client_metadata`, use an MCP token with that host.

## Use an MCP token

**1. Create an MCP token**

1. In the Workspace app, open **Protection → Access Tokens**.
2. Select **Create token**.
3. In **Use it for**, select **MCP**.
4. To let the agent edit Parables and Powers, publish Parables, change who
   takes part in them and send Pings, turn on
   **Change and publish Parables, and send Pings** (scope `parables:write`).
   It is off.
5. To let the agent start Problems and post Messages in them, turn on **Start
   and change Problems** (scope `problems:write`). It is off. Only Parable
   staff see Ponder in a Workspace today, so you cannot open those Problems
   in the web app.
6. In **Name**, type where you use the token, such as `Claude Code on my laptop`.
7. In **Expires in**, select when the token stops working.
8. Select **Create token**.
9. Copy the token. The app shows it one time only.

You need a role that can query Provider data. **MCP** is available only
while the Workspace allows external agents. Keep the token in a secret
manager or an environment variable. The examples read it from
`PARABLE_MCP_TOKEN`.

**2. Add the server with the token**

The host sends the token in the `Authorization` header. Use the slug of
the Workspace where you created the token.

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http parable-token \
>   https://mcp.parable.work/mcp/workspaces/acme-corp \
>   --header "Authorization: Bearer $PARABLE_MCP_TOKEN"
> ```
>
> Use a different server name from your OAuth entry, such as
> `parable-token`. Claude Code remembers a needed sign-in by server
> name.
>
> To share the server with your team in the project's `.mcp.json`, keep
> the token out of the file. Each person sets `PARABLE_MCP_TOKEN` to
> their own token:
>
> ```json .mcp.json theme={null}
> {
>   "mcpServers": {
>     "parable-token": {
>       "type": "http",
>       "url": "https://mcp.parable.work/mcp/workspaces/acme-corp",
>       "headers": {
>         "Authorization": "Bearer ${PARABLE_MCP_TOKEN}"
>       }
>     }
>   }
> }
> ```

> [tab] Claude
>
> 1. Open **Customize > Connectors**.
> 2. Select **Add custom connector**.
> 3. Type a name and the server URL.
> 4. In **Authentication**, select **No sign-in**.
> 5. In **Request headers**, select the header name `authorization`.
> 6. Type the value `Bearer ` followed by your token, with the space.
> 7. Mark the header **Required**, then select **Add**.
>
> Claude offers **Request headers** to some organizations only.
>
> > [!WARNING]
> >
> > On Claude Team and Enterprise plans, every member who uses an
> > organization connector sends the same header. They all read as the
> > token's owner, with that person's roles. Do not add a personal MCP
> > token as an organization connector.

> [tab] Cursor
>
> ```json mcp.json theme={null}
> {
>   "mcpServers": {
>     "parable-token": {
>       "url": "https://mcp.parable.work/mcp/workspaces/acme-corp",
>       "headers": {
>         "Authorization": "Bearer ${env:PARABLE_MCP_TOKEN}"
>       }
>     }
>   }
> }
> ```
>
> Set `PARABLE_MCP_TOKEN` in your shell profile or system environment,
> then restart Cursor.

> [tab] VS Code
>
> VS Code asks for the token the first time that the server starts, and
> keeps it hidden:
>
> ```json .vscode/mcp.json theme={null}
> {
>   "inputs": [
>     {
>       "type": "promptString",
>       "id": "parable-mcp-token",
>       "description": "Parable MCP token",
>       "password": true
>     }
>   ],
>   "servers": {
>     "parable-token": {
>       "type": "http",
>       "url": "https://mcp.parable.work/mcp/workspaces/acme-corp",
>       "headers": {
>         "Authorization": "Bearer ${input:parable-mcp-token}"
>       }
>     }
>   }
> }
> ```

**3. Check the connection**

To check the server without a host, list its tools:

```bash theme={null}
curl -s -X POST "https://mcp.parable.work/mcp/workspaces/acme-corp" \
  -H "Authorization: Bearer $PARABLE_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
```

The answer lists the tools that your roles allow. If
`query_provider_pool` is missing, your roles cannot query Provider data.
A Workspace administrator can give you the Provider Pools Reader role.

Only an MCP token works here. The server refuses a Parable token, a SQL token,
and a session from the app. When you stop using the server, remove it from
the host, because the host's configuration holds the token. Revoke the token
in **Protection → Access Tokens** if it may have leaked.

## Use the Claude Code plugin

The Parable plugin for Claude Code holds two parts:

* The entry for the Parable MCP server, for one Workspace. You sign in as in
  [Sign in with OAuth](#sign-in-with-oauth).
* One skill for each built-in Power. Claude Code reads each skill's description
  and loads the skill when a task matches it. You do not ask for it. A prompt or
  a resource loads only when you or the model asks for one.

The skills hold the built-in text of each Power, and a Workspace can edit its
Powers. When the server lists `list_powers` and `read_power`, each skill tells
the model to check whether your Workspace edited the Power. If it did, the skill
tells the model to read your Workspace's version. The skill also says that a
Power gives no permission, so the model does not run a command on your computer
because that text says so. Each skill also tells the model to use only the tools
that the server lists, because a Power can name a tool that only Ponder has.

The skill descriptions add about 4,400 characters to each Claude Code session.
A skill adds its whole text when it loads. The two longest skills have about
45,000 characters each. Claude Code limits the size of its list of skills. When
the list is too long, it drops the descriptions of the skills that you use least,
and a skill with no description does not load on its own.

### Install a local build

Parable does not publish this plugin. These steps apply when you already have a
local build. A local build is a folder that holds the plugin. The commands below
read it from `./claude-plugin`.

**1. Allow external agents**

Do the step in [Allow external agents](#allow-external-agents).

**2. Install the plugin**

Use the slug of your Workspace in `workspace_slug`.

```bash theme={null}
claude plugin marketplace add ./claude-plugin
claude plugin install parable@parable-local \
  --config workspace_slug=acme-corp
```

The plugin connects to one Workspace. Without a slug, the skills load and
Claude Code does not start the server. To change the slug, run
`/plugin configure parable@parable-local` in Claude Code, then restart it.

**3. Sign in**

Start Claude Code and run `/mcp`. Choose `plugin:parable:parable`, then
**Authenticate**. The consent page is the one in
[Sign in with OAuth](#sign-in-with-oauth).

Claude Code names a tool from the plugin
`mcp__plugin_parable_parable__<tool>`. If you added a server with the same URL
through `claude mcp add`, Claude Code connects your entry and not the plugin's
entry. The skills still load.

To remove the plugin, run `claude plugin uninstall parable@parable-local`.

## How the server works

* **Transport.** The server speaks MCP `2025-11-25` over streamable HTTP. A
  host that asks for `2025-06-18`, `2025-03-26`, or `2024-11-05` gets that
  revision. A host that asks for any other revision gets `2025-11-25`. It
  takes `POST` only and answers other methods with `405`. It keeps no
  session and sends no `Mcp-Session-Id`, so every request carries its own
  `Authorization` header. A request can call `tools/list` without an
  `initialize` before it.
* **Identity.** Each request runs as the person, with the roles that the
  person holds in the Workspace at that moment. The server lists only the
  tools that those roles allow. It never forwards your credential.
* **Workspace tool policy.** A person who manages Parables can set a tool to
  **Never**, or take it out of every Power. The server then does not list the
  tool, and a call is refused with a message that names the setting. A tool the
  Workspace set to **Ask** tells your host to ask you before each call.
* **Rate limit.** Each credential can make 120 requests a minute to each
  Workspace. More requests get `429` with `Retry-After`.
* **Revocation.** For up to 5 seconds after a revocation, a role change or a
  tool policy change, the server can still list tools from its last answer. A
  tool call is refused.
* **Audit.** Parable keeps an audit record of each call that the server makes
  for you. The record names your host by its `X-Parable-Client` header, or by
  its `User-Agent` when that header is absent.
* **Browser origins.** A request with an `Origin` header must come from an
  origin that Parable allows. Desktop and command-line hosts send no
  `Origin`.
* **Hosts checked.** Parable last checked the Claude Code and Cursor entries
  on this page on 2026-10-26, with Claude Code 2.1.310 and the Cursor agent
  CLI 2026.10.22-27dcf5f. Parable last checked the plugin on 2026-11-02, with
  Claude Code 2.1.316. A later version of a host can change its commands or
  menus.
* **Sign-in metadata.** A `401` carries a `WWW-Authenticate` header that
  points to the protected-resource metadata at
  `https://mcp.parable.work/mcp/.well-known/oauth-protected-resource`. It
  names the authorization server, at the same host, and the three scopes,
  `data:read`, `parables:write` and `problems:write`.
  The authorization server publishes its own metadata at
  `https://mcp.parable.work/.well-known/oauth-authorization-server`.

## Errors

| Status | Cause | Fix |
| - | - | - |
| `401` | No credential. Or a credential that the server does not accept: a revoked, expired, or mistyped MCP token, an expired or revoked grant, or a session from the app. The `WWW-Authenticate` header adds `error="invalid_token"`. | For a grant, sign in again. For an MCP token, create a new token. |
| `403` naming **External agent access**, or saying that personal access tokens are off | The Workspace does not allow external agents, or it turned personal access tokens off. | Ask a person who manages sign-in to turn the setting on. The same token works again, with no reconnect. |
| `403` saying what the endpoint takes | The token is a Parable token or a SQL token. | Create an MCP token. |
| `403` saying the token was created in another Workspace | The URL names a Workspace other than the token's, or the slug is wrong. | Use the slug of the token's Workspace. |
| `403` | You are not a member of the Workspace, the grant is for another Workspace, or a browser origin is not allowed. | Check the slug, then sign in again and choose this Workspace. |
| `413` | The request body is larger than 1 MiB. | Send a shorter request. |
| `429` | More than 120 requests in a minute from this credential to this Workspace. | Wait for the seconds in `Retry-After`. |
| `502` | The Workspace API did not answer. The credential is not the problem. | Try again later. |

A tool that fails returns an error result, not one of these statuses. See
[Tool errors](https://developers.askparable.com/mcp/tools.md#tool-errors).


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