Skip to content
appsgit

Smart Drawio

Smart Drawio is an MCP server that adds web browsing tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Generate, validate, repair and style editable draw.io XML diagrams. It has 366 GitHub stars, is released under the MIT license and runs locally with npx -y @yunshenwuchuxun/smart-drawio-mcp.

github.com/yunshenwuchuxun/smart-drawio-next (opens in a new tab)

Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error

Install Smart Drawio

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "smart-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env SMART_DRAWIO_API_KEY=your-value --transport stdio smart-drawio -- npx -y @yunshenwuchuxun/smart-drawio-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "smart-drawio": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "smart_drawio_api_key",
      "description": "SMART_DRAWIO_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "smart-drawio": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "${input:smart_drawio_api_key}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
SMART_DRAWIO_PROVIDERNoopenai or anthropic; required only for model generation
SMART_DRAWIO_BASE_URLNoModel provider HTTP(S) base URL; required only for model generation
SMART_DRAWIO_API_KEYsecretNoYour model provider API key; required only for model generation
SMART_DRAWIO_MODELNoModel identifier; required only for model generation

Tools (5)

Parsed from the Tools section of the README; check the repository for the current list.

  • list_drawio_options

    {}

  • validate_drawio

    xml

  • repair_drawio

    xml

  • style_drawio

    xml; optional theme, sourceTheme, stylePack, presets, textTool, trick

  • generate_drawio

    prompt; optional chartType="auto", theme="research"

About Smart Drawio

A local MCP server for generating, validating, repairing and styling editable draw.io XML. It shares the diagram core with Smart Drawio Next. It uses stdio and does not require the Next.js website, a browser, or draw.io Desktop.

  • agent-skills
  • diagrams
  • drawio
  • mcp
  • nextjs

FAQ

Smart Drawio FAQ

Still curious? Email info@appsgit.com.

How do I install the Smart Drawio MCP server?

Add the command npx -y @yunshenwuchuxun/smart-drawio-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Smart Drawio free?

The server is open source under the MIT license, so running it is free. It needs credentials (SMART_DRAWIO_API_KEY) for the service it connects to, which may require a paid account.

Is Smart Drawio actively maintained?

The most recent commit was on Oct 14, 2026. The latest release is tools-v0.1.0, published Oct 14, 2026. appsgit only lists MCP servers with a commit in the last six months.