Excalidraw+ MCP

Auth and Permissions

How MCP access is authorized

MCP clients connect with an API key, the same keys as the public API, or by signing in to Excalidraw+ with OAuth.

Authentication

  • Send your key as Authorization: Bearer <API_KEY> (the scheme is case-insensitive)
  • A missing, invalid, or expired key returns 401 with a WWW-Authenticate: Bearer header that points OAuth clients to the sign-in (resource_metadata), plus error="invalid_token" when a key was sent but failed; a key whose workspace can't use the API returns 403
  • A server error while checking the key returns 500, never 401, so a client doesn't drop a working key during an outage
  • After 30 requests with an invalid or expired key in a minute, the IP address's failed requests get 429 with a Retry-After header for the rest of that minute; a valid key keeps working (see Rate Limiting)
  • Keys are workspace-scoped, so tools only access that workspace data

Sign in with OAuth

Clients that support MCP's OAuth sign-in don't need a key: add the MCP URL and the client opens Excalidraw+ in your browser.

  1. Sign in to Excalidraw+.
  2. Pick the workspace the client gets. A connection reaches one workspace; connect again to use another.
  3. Allow access.

The client then gets the drawing tools (scenes, collections, slides, and diagrams), limited by your role in the workspace. The workspace administration tools (users, invites, settings, logs) need an API key.

To disconnect a client, open Connected apps in your account settings and click Disconnect next to it. It loses access at once; connect it again from the client to use it.

Workspace admins can turn this off with Allow AI connectors in Settings → API keys. Connected clients stop working at once, and so do they when you leave the workspace.

For clients, the MCP endpoint's protected resource metadata (RFC 9728) is at https://api.excalidraw.com/.well-known/oauth-protected-resource/api/v1/mcp. It names the authorization server, https://backend.excalidraw.com/api/auth, which identifies clients by their Client ID Metadata Document and has no dynamic client registration. Access tokens need the mcp:drawing scope.

Permission model

MCP does not bypass API permissions. Each MCP tool is mapped to a public API route + method, and tool access is granted only when that route is allowed for the key.

In practice, this means:

  • Read-only keys expose read-only tools
  • Full-access keys expose create/update/delete tools
  • Route-restricted keys expose only matching tools
  • Collection keys expose only scene and collection tools, limited to their collections (see Collection keys)
  • Use separate keys for MCP and direct API traffic: each key has its own rate limit (see Rate Limiting)
  • Start with minimum permissions, then expand as needed
  • Rotate keys regularly and expire test keys

For full key management guidance, see API Authentication.

Last updated on

On this page