# Set up a diagram MCP server in Cursor, Claude Desktop and Amp

This guide is for people who want the AI in Claude Desktop, Cursor or Amp to draw diagrams with open-diagram. Each app needs one block of settings or one command. With it, the app starts the MCP server, a small program on your computer that gives the app's AI its own tools to check and draw diagrams.

[The Claude Code guide](draw-diagrams-with-claude-code.html) lists the server's five tools, and says what the server can read and write, how to set it up without uv, and how to update it.

## How do I set it up in Claude Desktop or Cursor?

Add the same block to the app's settings file: `claude_desktop_config.json` for Claude Desktop, or `~/.cursor/mcp.json` for Cursor.

1. Open the file for your app.
2. Add this block:

   ```json
   {
     "mcpServers": {
       "open-diagram": {
         "command": "uvx",
         "args": ["open-diagram", "mcp", "--out", "/Users/you/Documents/open-diagram"]
       }
     }
   }
   ```

3. Change `/Users/you/Documents/open-diagram` to the folder where you want the SVG and PNG files.

## How do I set it up in Amp?

Run this in a terminal:

```bash
amp mcp add open-diagram -- uvx open-diagram mcp
```

If you add the server to one folder's settings with `amp mcp add --workspace`, also run `amp mcp approve open-diagram`.

This command sets no `--out`, so the server picks the folder for its files by the rules in [the Claude Code guide](draw-diagrams-with-claude-code.html).

## Which apps were tested?

Claude Desktop, Cursor and Amp, on November 25, 2026, with open-diagram 0.6.2 on macOS. Each used the setup on this page.

| App | Version | What was checked |
| --- | --- | --- |
| Claude Desktop | 6.28899.6 | The app found `uvx`, started the server and received its list of tools |
| Cursor | 3.32.4 | Cursor connected and listed all 5 tools |
| Amp | 0.0.1788357228 | Amp connected and listed all 5 tools |

In these three apps, the test checked the connection and the list of tools. The Claude Code test is the only one that records a drawn picture.

## Which apps were not tested?

Codex and VS Code. The open-diagram docs give no setup line for either, and list no test.

The skills tool can install the agent skill for another app if you name it after `--agent`. That route was tested with Claude Code only.

Updated November 25, 2026. Web page: https://open-diagram.dev/guides/mcp-server-in-cursor-claude-desktop-and-amp.html

See also:

- [Draw architecture diagrams with Claude Code and an MCP server](https://open-diagram.dev/guides/draw-diagrams-with-claude-code.md)
- [open-diagram MCP tools: names, arguments and results](https://open-diagram.dev/for-agents/mcp-tools.md)
- [An AGENTS.md block for drawing diagrams with open-diagram](https://open-diagram.dev/for-agents/agents-md-block.md)
