# Connecting AI assistants (MCP)

> Connect Claude, ChatGPT, Copilot or any MCP client to your BioFlow workspace over OAuth 2.1 — setup per client, the 108 operations, the permission tiers, and the safety rails.

Page: https://getbioflow.com/docs/connecting-ai-assistants

BioFlow ships a remote MCP (Model Context Protocol) server, so any MCP-capable AI assistant can read and edit your bio pages with your permission.

Setting up a coding agent (Claude Code, Codex, Cursor, Windsurf, VS Code, OpenCode) rather than Claude or ChatGPT directly? [Onboard your agent](https://getbioflow.com/docs/agent-setup) does the whole thing — MCP, REST API and SDKs — from one pasted sentence.

```
https://app.getbioflow.com/api/mcp
```

The transport is Streamable HTTP. Authentication is OAuth 2.1 with PKCE and dynamic client registration — no pre-shared API keys. On the consent screen you choose which workspaces a connection covers, or all of them (which also covers workspaces you join later), and an agent only ever sees those. When a connection covers more than one, an agent should call `workspace.list` and pass the chosen workspace's id as `workspaceId` on every other tool call. Connections made before this keep reaching the single workspace they had; disconnect and reconnect to choose more.

MCP access is included on every plan, including Free. Tool calls ride your plan's existing limits; over-limit calls get a structured `QUOTA_EXCEEDED` response instead of failing silently.

## Connect from any MCP client [#connect-from-any-mcp-client]

<ConnectPill surface="docs" />

Pick your tool in the pill: it walks you through connecting it, and every client also has its own instructions below.

BioFlow's MCP server is a hosted Streamable HTTP endpoint with OAuth 2.1 sign-in. There is nothing to install or run: point the client at the URL below and sign in to BioFlow when the browser opens. Every client that supports remote MCP servers with OAuth works; the ones below are the common ones.

```
https://app.getbioflow.com/api/mcp
```

### Claude (claude.ai, Claude Desktop, Claude Code) [#claude-claudeai-claude-desktop-claude-code]

* **claude.ai / Claude Desktop:** fastest — open [BioFlow in Claude's connector directory](https://claude.ai/directory/ed16e551-99a5-4c92-bc90-f44e380a562c), click *Connect*, then sign in. Manual alternative: Settings → Connectors → *Add custom connector*, paste the URL, then sign in.
* **Claude Code:** `claude mcp add --transport http bioflow https://app.getbioflow.com/api/mcp` then `/mcp` to sign in.

### ChatGPT and Codex [#chatgpt-and-codex]

* **ChatGPT:** Settings → Apps & Connectors → *Create* (developer mode), name it BioFlow, paste the URL, authentication *OAuth*. If BioFlow is in the ChatGPT plugins directory, enable it from there.
* **Codex CLI:** add to `~/.codex/config.toml`:

```toml
[mcp_servers.bioflow]
url = "https://app.getbioflow.com/api/mcp"
```

### Cursor [#cursor]

One click: [Add to Cursor](https://cursor.com/install-mcp?name=bioflow\&config=eyJ1cmwiOiJodHRwczovL2FwcC5nZXRiaW9mbG93LmNvbS9hcGkvbWNwIn0%3D). Or in `.cursor/mcp.json`:

```json
{ "mcpServers": { "bioflow": { "url": "https://app.getbioflow.com/api/mcp" } } }
```

### VS Code and GitHub Copilot [#vs-code-and-github-copilot]

One click: [Add to VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=bioflow\&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapp.getbioflow.com%2Fapi%2Fmcp%22%7D). Or run *MCP: Add Server* → *HTTP* and paste the URL, which writes to `.vscode/mcp.json`:

```json
{
  "servers": {
    "bioflow": { "type": "http", "url": "https://app.getbioflow.com/api/mcp" }
  }
}
```

### Google Antigravity [#google-antigravity]

Install the plugin from the repository (or from the Antigravity Marketplace once listed):

```bash
agy plugin install https://github.com/DevinoSolutions/mcp-servers/antigravity-plugins/bioflow
```

Or add the server by hand in `~/.gemini/config/mcp_config.json` (Antigravity requires the `serverUrl` key):

```json
{
  "mcpServers": {
    "bioflow": { "serverUrl": "https://app.getbioflow.com/api/mcp" }
  }
}
```

### Gemini [#gemini]

* **Gemini app:** the Connected apps page in Gemini's settings, then *Custom apps* → *Add a custom app*, paste the URL, then mention `@BioFlow` in a chat. (Custom apps are currently limited to personal Google accounts in the US.)
* **Gemini CLI:** `gemini extensions install https://github.com/DevinoSolutions/mcp-servers` then `/mcp auth bioflow`, or add `{ "mcpServers": { "bioflow": { "httpUrl": "https://app.getbioflow.com/api/mcp" } } }` to `~/.gemini/settings.json`.

### Kiro [#kiro]

One click: [Add to Kiro](https://kiro.dev/launch/mcp/add?name=bioflow\&config=%7B%22url%22%3A%22https%3A%2F%2Fapp.getbioflow.com%2Fapi%2Fmcp%22%2C%22disabled%22%3Afalse%2C%22autoApprove%22%3A%5B%5D%7D). Or in `.kiro/settings/mcp.json`:

```json
{ "mcpServers": { "bioflow": { "url": "https://app.getbioflow.com/api/mcp" } } }
```

### Perplexity, Mistral Le Chat, Grok [#perplexity-mistral-le-chat-grok]

* **Perplexity** (Pro, Max, Enterprise): Settings → Connectors → *Custom connector*, paste the URL, authentication *OAuth*.
* **Mistral Le Chat** (all plans): Intelligence → Connectors → *Add Connector* → *Custom MCP Connector*, paste the URL.
* **Grok:** grok.com → Connectors → *New connector* → *Custom*, paste the URL.

### Other clients [#other-clients]

* **Replit:** [Add to Replit](https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6IkJpb0Zsb3ciLCJiYXNlVXJsIjoiaHR0cHM6Ly9hcHAuZ2V0YmlvZmxvdy5jb20vYXBpL21jcCJ9), or Integrations → *Add MCP server*.
* **Devin, Windsurf, Zed, JetBrains Junie, Cline, OpenCode:** add a remote (HTTP) MCP server with the URL above; each prompts for the OAuth sign-in on first use.
* **Microsoft Copilot, MCP Inspector, your own agent framework:** point the client at the same URL. Registration is dynamic, so there is nothing to pre-provision on either side. Cline can also install it from the [Cline marketplace entry](https://github.com/DevinoSolutions/mcp-servers/tree/main/bioflow) using its `llms-install.md`.

Tokens are scoped to what you approve on the consent screen; a tool you did not grant is never shown to the assistant. Revoke any connected app at any time with `revoke_connected_app`.

## Available tools [#available-tools]

The server offers 108 operations. The full list, grouped by permission tier, is in the [MCP tools reference](https://getbioflow.com/docs/mcp-tools-reference).

The server uses Code Mode. Its tool list has two tools, `search_tools` and `execute_typescript`, not one tool per operation. Your assistant calls `search_tools` to find the operations, then runs a short TypeScript program through `execute_typescript` that calls them. Each call goes through the same scope, confirmation and audit checks as a direct call. An operation outside the permissions you granted is not offered at all.

## Permission tiers [#permission-tiers]

On the consent screen you tick tiers, not individual scopes. A tier is a group of tools with the same risk.

| Tier                                   | What it lets the assistant do                                            |
| -------------------------------------- | ------------------------------------------------------------------------ |
| Read your data                         | See pages, analytics, contacts, files, members and settings              |
| Create and edit                        | Edit drafts, upload files, manage webhooks and workspace details         |
| Delete, publish or send                | Publish pages and delete things. Always two steps                        |
| Billing and subscription               | Start a purchase, cancel, refund, see sales and payouts                  |
| Profile, preferences, account deletion | Change your profile and preferences, export data, delete the account     |
| Members and invites                    | Invite, remove and change roles of workspace members                     |
| Connected services                     | Connect, reverify and disconnect services, custom domains, sync settings |
| Support tickets                        | Open and follow support tickets for your account                         |
| API keys                               | Create, rotate, revoke and review API keys                               |

A connection can ask for more later. The assistant calls `request_scopes` and gives you a one-click link; approving it widens the same connection, so nothing needs to be reconnected. `list_granted_scopes` shows what a connection holds and what it lacks.

Actions that need a person, such as paying or signing in to a service, come back as a single-use link from `upgrade_plan`, `manage_subscription` or `get_connect_links`. The assistant hands you the link; it expires after 15 minutes.

An agent calling a tool outside its granted tiers gets a structured `SCOPE_MISSING` denial that names the tier and points at `request_scopes`, never silent partial access.

## Safety rails [#safety-rails]

* **Consent screen.** You approve exactly which tiers an app gets when it connects, each listed in plain language.
* **Block edits wait for a publish.** Block writes only touch the draft and reach your live page only through a publish. A title, description, or theme change through `page.update_draft` applies to your live page without waiting for a publish.
* **Destructive actions are two steps.** The first call returns a preview and a `confirmToken` (valid 10 minutes, usable once, bound to the exact arguments). Nothing commits until the assistant calls again with that token after you say yes.
* **Optimistic concurrency.** Page write tools require the `expectedUpdatedAt` you read from `page.get`, so a stale draft is refused rather than clobbered. Writes also accept an optional `idempotencyKey` so a retried call cannot run twice.
* **Audit log.** Every tool call is logged with its tier and, for confirmed calls, the confirmation id. Argument hashes are kept, never the arguments. Rows are deleted after 90 days.
* **Revocation.** Ask the assistant to run `revoke_connected_app`, or revoke the app from the Connected AI apps page. Its next request is refused, even if the access token it holds hasn't expired, and its refresh token is revoked.

## Structured denials [#structured-denials]

Every refusal is a typed code an agent can act on, never a mystery error or a silent no-op:

| Code                    | What it means                                                                                                        |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `SCOPE_MISSING`         | The tool needs a permission tier this connection lacks. Call `request_scopes` for a one-click approval link.         |
| `CONFIRMATION_REQUIRED` | A destructive call needs a second step. `next.args` carries the `confirmToken` to send back after the user says yes. |
| `VALIDATION_ERROR`      | The arguments were refused. `message` says which field and why.                                                      |
| `NOT_FOUND`             | The id does not exist in this workspace.                                                                             |
| `FORBIDDEN`             | The signed-in role cannot do this, for example a viewer trying to invite a member.                                   |
| `RATE_LIMITED`          | Too many calls. Wait and retry.                                                                                      |
| `QUOTA_EXCEEDED`        | The call would pass your plan's limits. `next` points at `upgrade_plan`.                                             |
| `STALE_SNAPSHOT`        | The draft changed between the preview call and the commit call, so the commit was refused.                           |
| `CONFIRM_TOKEN_INVALID` | The `confirmToken` was forged, expired, or minted for a different operation.                                         |
| `WORKSPACE_REQUIRED`    | The connection covers more than one workspace and the call named none. Pass `workspaceId`.                           |
| `WORKSPACE_UNAVAILABLE` | The `workspaceId` is not one this connection covers. Call `workspace.list` to see the ones it can use.               |

## OAuth discovery [#oauth-discovery]

Discovery follows RFC 8414 (authorization server metadata) and RFC 9728 (protected resource metadata); clients register themselves through unauthenticated dynamic client registration per RFC 7591. The documents are served at:

* `https://app.getbioflow.com/.well-known/oauth-authorization-server`
* `https://app.getbioflow.com/.well-known/oauth-protected-resource`
