Generate, validate, repair and style editable draw.io XML diagrams.
Run one of the commands below, then pick your client in the next section.
npm
npx -y @yunshenwuchuxun/smart-drawio-mcp
Pick your client — the config below is generated for this server (local stdio).
claude_desktop_config.json
{
"mcpServers": {
"smart-drawio": {
"command": "npx",
"args": [
"-y",
"@yunshenwuchuxun/smart-drawio-mcp"
],
"env": {
"SMART_DRAWIO_API_KEY": "<YOUR_SMART_DRAWIO_API_KEY>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env SMART_DRAWIO_API_KEY=<YOUR_SMART_DRAWIO_API_KEY> smart-drawio -- npx -y @yunshenwuchuxun/smart-drawio-mcp
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"smart-drawio": {
"command": "npx",
"args": [
"-y",
"@yunshenwuchuxun/smart-drawio-mcp"
],
"env": {
"SMART_DRAWIO_API_KEY": "<YOUR_SMART_DRAWIO_API_KEY>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"smart-drawio": {
"command": "npx",
"args": [
"-y",
"@yunshenwuchuxun/smart-drawio-mcp"
],
"env": {
"SMART_DRAWIO_API_KEY": "<YOUR_SMART_DRAWIO_API_KEY>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"smart-drawio": {
"command": "npx",
"args": [
"-y",
"@yunshenwuchuxun/smart-drawio-mcp"
],
"env": {
"SMART_DRAWIO_API_KEY": "<YOUR_SMART_DRAWIO_API_KEY>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
SMART_DRAWIO_PROVIDER — openai or anthropic; required only for model generationSMART_DRAWIO_BASE_URL — Model provider HTTP(S) base URL; required only for model generationSMART_DRAWIO_API_KEY secret — Your model provider API key; required only for model generationSMART_DRAWIO_MODEL — Model identifier; required only for model generationDistributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/yunshenwuchuxun/smart-drawio-next. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/smart-drawio/)
HTML
<a href="https://mcpnav.net/server/smart-drawio/"><img src="https://mcpnav.net/badge/smart-drawio.svg" alt="Listed on MCPNav" height="20"></a>