Skip to content
Skip to Content

Other clients

Connect Claude Desktop, VS Code, Codex and any other MCP client to OpenPanel, with OAuth or an API key.

OpenPanel's MCP server is one address for every client:

https://openpanel.sh/api/mcp

It speaks MCP over streamable HTTP and takes POST requests only. Any client that supports remote MCP servers can use it, in one of two ways:

How the client gets inIt acts as
OAuthIt sends you to OpenPanel to sign in and choose AllowYou, with your access
API keyIt sends Authorization: Bearer opk_… with every requestThe person who made the key, capped by the key's scope and projects

Guides for Claude Code, Cursor and ChatGPT have their own pages.

Claude Desktop and claude.ai

Claude adds OpenPanel as a custom connector, from Anthropic's cloud, so it works the same in Claude Desktop and on claude.ai.

  1. Open Customize, then Connectors, and choose Add. Under Custom, choose Web.
  2. Name it OpenPanel and enter https://openpanel.sh/api/mcp.
  3. Keep the sign-in Claude detects, with Claude's published identity as the OAuth client.
  4. Add it, then connect: your browser opens OpenPanel. Sign in if you are not, check the tool's name, and choose Allow.

Your plan, or your organization's admin, decides whether you may add custom connectors.

VS Code

Add OpenPanel to .vscode/mcp.json in your project, or to your user mcp.json for every project:

.vscode/mcp.json
{
  "servers": {
    "openpanel": {
      "type": "http",
      "url": "https://openpanel.sh/api/mcp"
    }
  }
}

When the server starts, VS Code asks you to sign in: your browser opens OpenPanel, where you choose Allow.

To use an API key instead, let VS Code ask for it once and keep it in its secret storage:

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "openpanel-key",
      "description": "OpenPanel API key",
      "password": true
    }
  ],
  "servers": {
    "openpanel": {
      "type": "http",
      "url": "https://openpanel.sh/api/mcp",
      "headers": {
        "Authorization": "Bearer ${input:openpanel-key}"
      }
    }
  }
}

Codex

Add the server, then sign in:

codex mcp add openpanel --url https://openpanel.sh/api/mcp
codex mcp login openpanel

codex mcp login opens your browser at OpenPanel, where you choose Allow.

To use an API key instead, name the environment variable that holds it in ~/.codex/config.toml:

~/.codex/config.toml
[mcp_servers.openpanel]
url = "https://openpanel.sh/api/mcp"
bearer_token_env_var = "OPENPANEL_TOKEN"

Sign in with OAuth

OpenPanel is an OAuth 2.1 authorization server for its own MCP endpoint. A client finds everything it needs from the address alone:

  1. A request without a token gets 401 with a WWW-Authenticate header that points at https://openpanel.sh/.well-known/oauth-protected-resource/api/mcp.
  2. That document names the authorization server, https://openpanel.sh/api/auth, whose metadata is at https://openpanel.sh/.well-known/oauth-authorization-server/api/auth.
  3. The client identifies itself with a Client ID Metadata Document, the way of the MCP version of 2026-07-28, or, as older clients do, registers itself as a public client. Both are open: there is nothing to set up in OpenPanel first.
  4. It sends you to OpenPanel. You sign in, if you are not, and the page Allow an AI tool shows the client's name and its website as it registered them, and what it will be able to do. Choose Allow, or Don't allow.

Allow a tool only if you are connecting it yourself, just now. The token the client gets works only for https://openpanel.sh/api/mcp, and acts as you, never with more than your own access.

Which organization

A client signed in with OAuth works in your own organization. To work in another one you belong to, add ?org= with its slug or id to the address:

https://openpanel.sh/api/mcp?org=acme

A client that can send headers can send OpenPanel-Organization: acme instead.

Use an API key

For a client that cannot sign in with OAuth, or to give an agent less than your own access, send an API key:

Authorization: Bearer opk_…

A key works only in the organization it was made in. Make one with a scope that fits the job: view to read, deploy to deploy, and limit it to the projects the agent needs. Signed in with openpanel login:

openpanel keys create --name "AI agent" --scope view

Keep the key in an environment variable or the client's secret storage, never in a configuration file you commit.

A CLI token (opc_…) works too, as the person who approved it.

What every client gets

  • One tool per API operation, named after it: projects_create is POST /projects. See the tool list.
  • Resources to read: openpanel://projects, openpanel://projects/{projectId} and openpanel://services/{serviceId}.
  • Confirmation before anything destructive. Deleting, removing, revoking a key and rolling back are marked destructive. A client that can ask you mid-call (MCP's elicitation, in the version of 2026-07-28) asks before the tool runs. Any other client gets an answer that says the tool needs your confirmation; the agent must ask you, then call the tool again with confirm: true.
  • The same rules as the console. Every call goes through the same checks as the API, and every change is in the organization's audit log.
  • The API's rate limit: 600 requests a minute per person or key.

Check it

Ask the agent "Which OpenPanel projects do I have?". It calls projects_list and answers with your projects.

To check the address from a terminal, send a request without a token; the answer is 401 with the header that starts the sign-in:

curl -si -X POST https://openpanel.sh/api/mcp | grep -i www-authenticate