Excalidraw+ MCP

Getting Started

Connect an MCP client to Excalidraw+

Prerequisites

  1. An Excalidraw Plus workspace
  2. An MCP client that supports Streamable HTTP

If you want the open source MCP server instead, see excalidraw/excalidraw-mcp. We may merge the open source and Excalidraw+ MCP efforts more closely later.

1. Choose how to connect

Every client uses the same MCP server URL:

https://api.excalidraw.com/api/v1/mcp

There are two ways to authorize it:

  • Sign in with OAuth (no key): add the URL and sign in to Excalidraw+ in your browser. Works in ChatGPT, Claude, Claude Code, VS Code, Codex, and other clients that support MCP's OAuth sign-in with Client ID Metadata Documents. The client gets the drawing tools (scenes, collections, slides, and diagrams) with your role in the workspace.
  • API key: create a key in Excalidraw+ and send it in the Authorization header. Use it for clients without that OAuth sign-in (such as Cursor), for scripts and shared integrations, and for the workspace administration tools (users, invites, settings, logs).
Need the admin tools, or connecting a script or shared integration: use an API key. Otherwise sign in with OAuth if the client supports it, else use an API key. A personal key acts like you, a workspace key acts for the workspace

2. Connect with OAuth

Add the MCP server URL without an API key, then sign in when the client asks:

  1. The client opens Excalidraw+ in your browser. Sign in.
  2. Pick the workspace the client gets. A connection reaches one workspace; connect again to use another.
  3. Click Allow. The browser hands you back to the client.
The client opens the Excalidraw+ sign-in in your browser; you sign in, pick a workspace and click Allow, and the browser hands you back to the connected client
  1. In ChatGPT, open Settings → Apps, then Advanced settings, and turn on Developer mode.
  2. Click Create app.
  3. Name it Excalidraw+, set MCP Server URL to https://api.excalidraw.com/api/v1/mcp, and choose OAuth for Authentication.
  4. Click Create and sign in to Excalidraw+ when ChatGPT opens it.

In a chat, pick Excalidraw+ from the + menu, or ask it to draw something in Excalidraw+.

  1. In Claude, open Settings → Connectors and click Add custom connector.
  2. Name it Excalidraw+ and set the URL to https://api.excalidraw.com/api/v1/mcp. Leave the advanced OAuth settings empty.
  3. Click Add, then Connect, and sign in to Excalidraw+.

On Team and Enterprise plans, an owner adds the connector under Organization settings → Connectors first; then each member clicks Connect. The connector works in Claude on the web, desktop, and mobile.

Add the server:

claude mcp add --transport http excalidraw https://api.excalidraw.com/api/v1/mcp

Then run /mcp in Claude Code, select excalidraw, and choose Authenticate.

To share it with your team, put it in a project-scoped .mcp.json instead:

{
  "mcpServers": {
    "excalidraw": {
      "type": "http",
      "url": "https://api.excalidraw.com/api/v1/mcp"
    }
  }
}

Use this in .vscode/mcp.json or your VS Code user mcp.json:

{
  "servers": {
    "excalidraw": {
      "type": "http",
      "url": "https://api.excalidraw.com/api/v1/mcp"
    }
  }
}

Start the server. VS Code asks to sign in to Excalidraw+: click Allow and finish in the browser.

Add the server and sign in:

codex mcp add excalidraw --url https://api.excalidraw.com/api/v1/mcp
codex mcp login excalidraw

Or add it to ~/.codex/config.toml by hand, then run codex mcp login excalidraw:

[mcp_servers.excalidraw]
url = "https://api.excalidraw.com/api/v1/mcp"

For any other client, add the URL as a remote (HTTP) MCP server without headers. If it supports the sign-in, it opens Excalidraw+ in your browser; if it reports that the server doesn't support client registration, connect with an API key instead.

To disconnect a client, open Connected apps in your account settings. See Sign in with OAuth for what a connection can access.

3. Connect with an API key

Create an API key

Create a key in Excalidraw Plus with only the permissions you need. MCP tools are filtered by the same route permissions as the public API.

If you are not sure which MCP/API key type to use, read Personal vs Workspace MCP/API Keys. In short: personal keys are usually best for agents acting like you, while workspace keys are better for shared integrations.

Learn more in API Authentication.

Configure your MCP client

Set the MCP server URL:

https://api.excalidraw.com/api/v1/mcp

For drawing-only use, connect to https://api.excalidraw.com/api/v1/mcp?toolsets=drawing instead: the workspace administration tools stay hidden and every session starts with fewer tokens.

And send your key in the Authorization header:

Authorization: Bearer <API_KEY>

The endpoint and auth are the same across clients, but each client uses its own config shape. Pick your client and paste the matching config into its MCP settings/config UI.

Use this in Cursor MCP settings:

{
  "mcpServers": {
    "excalidraw": {
      "url": "https://api.excalidraw.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}

Use this in .vscode/mcp.json or your VS Code user mcp.json:

{
  "servers": {
    "excalidraw": {
      "type": "http",
      "url": "https://api.excalidraw.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}

Use this in your OpenCode config under mcp:

{
  "mcp": {
    "excalidraw": {
      "type": "remote",
      "url": "https://api.excalidraw.com/api/v1/mcp",
      "enabled": true,
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}

Use this in project-scoped .mcp.json for Claude Code:

{
  "mcpServers": {
    "excalidraw": {
      "type": "http",
      "url": "https://api.excalidraw.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}

Codex uses config.toml, not JSON. Add this to ~/.codex/config.toml or a project-scoped .codex/config.toml:

[mcp_servers.excalidraw]
url = "https://api.excalidraw.com/api/v1/mcp"
env_http_headers = { Authorization = "EXCALIDRAW_API_KEY" }

Then set:

export EXCALIDRAW_API_KEY="Bearer <API_KEY>"

If your client expects the more common mcpServers JSON shape, use this:

{
  "mcpServers": {
    "excalidraw": {
      "url": "https://api.excalidraw.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}

4. Verify tool access

After connecting, ask your client to list available tools. With OAuth, you get the drawing tools; with an API key, the list depends on the key's permissions.

If a tool is missing, update key permissions first, then reconnect.

Troubleshooting

  • 401 Unauthorized: missing, invalid, or expired API key in the Authorization: Bearer header; an OAuth client starts its sign-in from it
  • OAuth sign-in says AI connectors are off, or a connected client keeps getting 401: a workspace admin turned off Allow AI connectors, or you left the workspace
  • The client can't register or sign in: it doesn't support Client ID Metadata Documents yet; connect with an API key
  • 500: the server couldn't check the key; retry later
  • Tool not visible: API key lacks permission for the underlying route, or it's a workspace administration tool, which OAuth connections don't get
  • 405 Method Not Allowed: use POST /api/v1/mcp only (stateless mode)

Last updated on

On this page