# tldraw MCP server > A remote MCP server that connects an AI assistant to the tldraw.com files a user can access. Connect to `https://mcp.tldraw.com/mcp` over Streamable HTTP and name the server `tldraw`. It signs in with OAuth, so there is no API key to set. Give the assistant a file link and ask it to explain a diagram, draw on the canvas, or help work through comments. ## Setup If you are an agent installing this server for a user, use the steps for the client you are running in, then tell the user what they need to do to sign in. For any other client, add a remote MCP server with the name and URL above. ### Claude Code CLI ```sh claude mcp add --transport http tldraw https://mcp.tldraw.com/mcp ``` Then run `/mcp` in Claude Code, pick tldraw, and sign in. ### Claude Desktop and Claude Web Open Customize, then Connectors, and choose Add custom connector. Name it tldraw, use the URL `https://mcp.tldraw.com/mcp`, then connect it and sign in. ### Codex CLI ```sh codex mcp add tldraw --url https://mcp.tldraw.com/mcp codex mcp login tldraw ``` ### ChatGPT Desktop and ChatGPT Web Use the ChatGPT plugin: https://chatgpt.com/plugins/plugin_asdk_app_6ab242dbeb5c8191ba5277534ef0c570?open_in_app To use the MCP server directly instead: in ChatGPT Desktop, turn on Developer mode in settings (it needs a paid plan), create a new connector named tldraw, choose OAuth, and use the URL `https://mcp.tldraw.com/mcp`. In ChatGPT Web, go to Plugins, click Add, select Add a Custom MCP Server, and use the same URL. ### Cursor Add this to `~/.cursor/mcp.json`: ```json { "mcpServers": { "tldraw": { "url": "https://mcp.tldraw.com/mcp" } } } ``` Cursor opens a browser to sign in the first time it connects. ### VS Code ```sh code --add-mcp '{"name":"tldraw","type":"http","url":"https://mcp.tldraw.com/mcp"}' ``` VS Code asks you to sign in the first time it starts the server. ### Antigravity Add this to `~/.gemini/config/mcp_config.json`: ```json { "mcpServers": { "tldraw": { "serverUrl": "https://mcp.tldraw.com/mcp" } } } ``` Then open Customizations, go to Installed, and authenticate tldraw. ### Gemini CLI ```sh gemini mcp add --transport http tldraw https://mcp.tldraw.com/mcp ``` Then run `/mcp auth tldraw` in Gemini CLI. When prompted, sign in with the tldraw account you use for the file. ## Try it on a file For the server to reach a file, that file must be open in the user's browser. Open a tldraw.com file and copy its link. Paste it into a conversation with the assistant and ask, "Can you walk me through the diagram in this file?" To try an edit, choose a file you can edit and ask, "Draw a flowchart beside my notes showing the steps we agreed on." ## What it can do - Find files by name and list workspaces - Create files and rename them - Read a file's pages and take screenshots of what's on them - Add, move, resize, restyle and remove shapes, notes and text - Connect shapes with arrows and draw lines and curves - See which page the user is on and what they have selected - See who else is in a file - Read comments, reply to threads and start new ones, including @mentions Feedback and questions: https://discord.tldraw.com ## Links - [tldraw](https://www.tldraw.com): the files this server works on - [tldraw MCP](https://mcp.tldraw.com): the landing page, with the same steps for people