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.
Updated
The Claude Code guide 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.
- Open the file for your app.
- Add this block:
{
"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:
amp mcp add open-diagram -- uvx open-diagram mcp