> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Excalidraw MCP server

The Excalidraw MCP connector routes your AI agent's tool calls to Excalidraw's own MCP server through Scalekit. Each user connects their own Excalidraw access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 29 tools.

**Authentication:** Bearer Token
**Categories:** Design, Collaboration, Productivity
**Tools:** 29: 15 read, 11 write, 3 destructive
**Users sign in with:** Access token
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=EXCALIDRAWMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Excalidraw MCP connection

   In **AgentKit > Connections**, create an Excalidraw MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'excalidrawmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Excalidraw MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'excalidrawmcp_get_workspace',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "excalidrawmcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Excalidraw MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="excalidrawmcp_get_workspace",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user opens the link once and enters their Excalidraw MCP server credentials there. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'excalidrawmcp_get_collection',
  toolInput: {
    collectionId: '<collectionId>',
  },
  connector: 'excalidrawmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="excalidrawmcp_get_collection",
    tool_input={
        "collectionId": "<collectionId>",
    },
    connection_name="excalidrawmcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `excalidrawmcp_get_collection`

Get Collection · Read-only

Retrieve detailed information about a specific collection by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `collectionId` (`string`, required): The unique identifier of the collection to retrieve.

Example input: `{"collectionId":"<collectionId>"}`

### `excalidrawmcp_get_invite`

Get Invite · Read-only

Retrieve details for a specific workspace invitation by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `inviteId` (`string`, required): The unique identifier of the workspace invitation to retrieve.

Example input: `{"inviteId":"<inviteId>"}`

### `excalidrawmcp_get_scene`

Get Scene · Read-only

Retrieve metadata for a specific scene by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `sceneId` (`string`, required): The unique identifier of the scene to retrieve.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_get_scene_content`

Get Scene Content · Read-only

Retrieve the complete content of a scene including all drawing elements and files. Use search_scene_content first if you only need to locate specific elements.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `sceneId` (`string`, required): The unique identifier of the scene whose full content to retrieve.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_get_workspace`

Get Workspace · Read-only

Retrieve workspace configuration and metadata for the current workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `excalidrawmcp_get_workspace_user`

Get Workspace User · Read-only

Retrieve details for a specific workspace member by their user ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `userId` (`string`, required): The unique identifier of the workspace user to retrieve.

Example input: `{"userId":"<userId>"}`

### `excalidrawmcp_list_collection_scenes`

List Collection Scenes · Read-only

Retrieve a paginated list of all scenes that belong to a specific collection.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `collectionId` (`string`, required): The unique identifier of the collection whose scenes to list.
- `limit` (`integer`, optional): Maximum number of scenes to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.

Example input: `{"collectionId":"<collectionId>"}`

### `excalidrawmcp_list_collections`

List Collections · Read-only

Retrieve a paginated list of all collections in the workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `limit` (`integer`, optional): Maximum number of collections to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.

Example input: `{}`

### `excalidrawmcp_list_invites`

List Invites · Read-only

Retrieve a paginated list of pending workspace invitations.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `limit` (`integer`, optional): Maximum number of invitations to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.

Example input: `{}`

### `excalidrawmcp_list_logs`

List Logs · Read-only

Retrieve a paginated list of workspace activity and audit logs with filtering by user, action, operation, and date range.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `action` (`string`, optional): Filter logs by a specific action type.
- `cursor` (`string`, optional): Sequence number for cursor-based pagination.
- `dateFrom` (`string`, optional): ISO 8601 date filter start (inclusive).
- `dateTo` (`string`, optional): ISO 8601 date filter end (inclusive).
- `limit` (`integer`, optional): Maximum number of log entries to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.
- `operation` (`string`, optional): Filter logs by operation type (create, read, update, or delete). One of: `create`, `read`, `update`, `delete`.
- `page` (`string`, optional): Page number for offset-based pagination.
- `user` (`string`, optional): Filter logs by a specific user ID.

Example input: `{}`

### `excalidrawmcp_list_scenes`

List Scenes · Read-only

Retrieve a paginated list of all scenes in the workspace with their metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `collectionId` (`string`, optional): Filter scenes by a specific collection ID.
- `limit` (`integer`, optional): Maximum number of scenes to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.

Example input: `{}`

### `excalidrawmcp_list_workspace_users`

List Workspace Users · Read-only

Retrieve a paginated list of all members in the current workspace.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `limit` (`integer`, optional): Maximum number of workspace users to return per page (1-100).
- `offset` (`integer`, optional): Number of items to skip before starting to collect results.

Example input: `{}`

### `excalidrawmcp_read_excalidraw_format`

Read Excalidraw Format · Read-only

Returns the Excalidraw element format reference with agent-facing rules for constructing valid diagram payloads. Call this before edit_scene_content if unfamiliar with the format.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `excalidrawmcp_search_scene_content`

Search Scene Content · Read-only

Search a scene's shapes and text without loading the full scene content. Returns matching Excalidraw element nodes filtered by type, frame, and text query.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `sceneId` (`string`, required): ID of the scene to search within.
- `frameId` (`string`, optional): Limit search to elements inside this frame.
- `includeDeleted` (`boolean`, optional): Whether to include soft-deleted elements in results.
- `limit` (`integer`, optional): Maximum number of matching elements to return (1-100, default 25).
- `matchMode` (`string`, optional): How the query string is matched against element text. One of: `contains`, `glob`, `exact`.
- `query` (`string`, optional): Text query to match against shape labels and text content.
- `types` (`array`, optional): Element types to filter by.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_take_screenshot`

Take Screenshot · Read-only

Render a scene, or a specific frame, as a PNG image so you can visually inspect the current Excalidraw content. Use this after editing scene content to verify layout and visual correctness.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `sceneId` (`string`, required): ID of the scene to render.
- `frameId` (`string`, optional): Optional frame ID to render. If omitted, the full scene is rendered.
- `maxWidth` (`integer`, optional): Maximum output PNG width in pixels. Screenshots are capped at 1920x1080.
- `padding` (`integer`, optional): Padding around the rendered scene or frame in scene pixels. Default: 20.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_create_collection`

Create Collection · Write

Create a new collection in the workspace to organize scenes.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Name of the new collection.

Example input: `{"name":"<name>"}`

### `excalidrawmcp_create_collection_scene`

Create Collection Scene · Write

Create a new scene within a specific collection.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `collectionId` (`string`, required): The unique identifier of the collection in which to create the scene.
- `name` (`string`, required): Name of the new scene.
- `pinned` (`boolean`, required): Whether to pin the scene to the top of the scene list.

Example input: `{"collectionId":"<collectionId>","name":"<name>","pinned":true}`

### `excalidrawmcp_create_email_invite`

Create Email Invite · Write

Create a workspace invite for a specific email address.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `email` (`string`, required): Email address to invite to the workspace.
- `role` (`string`, required): Role to assign to the invited user. One of: `member`, `admin`.

Example input: `{"email":"<email>","role":"member"}`

### `excalidrawmcp_create_invite_link`

Create Invite Link · Write

Create a reusable workspace invite link with optional usage and domain restrictions.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `role` (`string`, required): Role to assign to users who accept the invite link. One of: `member`, `admin`.
- `maxUses` (`string`, optional): Maximum number of times the link can be used. Use 'unlimited' for no limit.
- `restrictedDomains` (`array`, optional): List of email domains allowed to use this invite link.

Example input: `{"role":"member"}`

### `excalidrawmcp_create_scene`

Create Scene · Write

Create a new scene in the workspace within a specified collection.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `collectionId` (`string`, required): ID of the collection to place the new scene in.
- `name` (`string`, required): Name for the new scene.
- `pinned` (`boolean`, required): Whether to pin the scene to the top of the scene list.

Example input: `{"collectionId":"<collectionId>","name":"<name>","pinned":true}`

### `excalidrawmcp_edit_scene_content`

Edit Scene Content · Write

Add, update, and delete scene elements using valid Excalidraw element format. Before first use, call read_excalidraw_format. Do not include ids in add. Use tempId for same-request references. Bind arrows explicitly with startBinding/endBinding.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `sceneId` (`string`, required): ID of the scene to edit.
- `add` (`string`, optional): JSON array string of new Excalidraw element skeletons to add. Do not include 'id'. Use tempId for same-request references.
- `delete` (`array`, optional): Array of element IDs to remove from the scene.
- `update` (`string`, optional): JSON array string of element patches; each patch must include 'id' and the properties to change.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_update_collection`

Update Collection · Write

Update the name of an existing collection.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `collectionId` (`string`, required): The unique identifier of the collection to update.
- `name` (`string`, required): New name for the collection.

Example input: `{"collectionId":"<collectionId>","name":"<name>"}`

### `excalidrawmcp_update_invite`

Update Invite · Write

Modify the settings of an existing workspace invitation such as the email, role, or max uses.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `inviteId` (`string`, required): The unique identifier of the workspace invitation to update.
- `email` (`string`, optional): Updated email address for the invitation.
- `maxUses` (`integer`, optional): Maximum number of times this invite link can be used.
- `role` (`string`, optional): The workspace role to assign to the invitee upon acceptance. One of: `member`, `admin`.

Example input: `{"inviteId":"<inviteId>"}`

### `excalidrawmcp_update_scene`

Update Scene · Write

Update metadata fields of an existing scene such as its name, pinned status, or collection.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `sceneId` (`string`, required): The unique identifier of the scene to update.
- `collectionId` (`string`, optional): New collection ID to move the scene to.
- `name` (`string`, optional): New name for the scene.
- `pinned` (`boolean`, optional): Whether the scene should be pinned to the top of the scene list.

Example input: `{"sceneId":"<sceneId>"}`

### `excalidrawmcp_update_workspace`

Update Workspace · Write

Modify workspace-level settings such as name and picture.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, optional): New name for the workspace.
- `picture` (`string`, optional): URI for the workspace picture, or null to remove the current picture.

Example input: `{}`

### `excalidrawmcp_update_workspace_user`

Update Workspace User · Write

Modify workspace-level properties for a specific user such as their name, picture, or role.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `userId` (`string`, required): The unique identifier of the workspace user to update.
- `name` (`string`, optional): Updated display name for the user.
- `picture` (`string`, optional): URI for the user's picture, or null to remove the current picture.
- `role` (`string`, optional): The workspace role to assign to the user. One of: `member`, `admin`.

Example input: `{"userId":"<userId>"}`

### `excalidrawmcp_delete_collection`

Delete Collection · Destructive

Soft-delete a collection by moving it to trash. Scenes within the collection are not deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `collectionId` (`string`, required): The unique identifier of the collection to delete.

Example input: `{"collectionId":"<collectionId>"}`

### `excalidrawmcp_delete_invite`

Delete Invite · Destructive

Cancel and delete a pending workspace invitation.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `inviteId` (`string`, required): The unique identifier of the workspace invitation to cancel and delete.

Example input: `{"inviteId":"<inviteId>"}`

### `excalidrawmcp_remove_workspace_user`

Remove Workspace User · Destructive

Remove a user from the workspace. This does not delete their Excalidraw+ account.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `userId` (`string`, required): The unique identifier of the workspace user to remove.

Example input: `{"userId":"<userId>"}`

## Related

Other Design connectors ([all 26](/agentkit/connectors/?category=design)):

- [Figma](/agentkit/connectors/figma/): Scalekit connector, OAuth, 54 tools
- [Miro](/agentkit/connectors/miro/): Scalekit connector, OAuth, 115 tools
- [Mural](/agentkit/connectors/mural/): Scalekit connector, OAuth, 61 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
