# Smart Drawio (MCP server)

> 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.

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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/yunshenwuchuxun/smart-drawio-next |
| GitHub stars | 366 |
| License | MIT |
| Language | JavaScript |
| Transport | stdio |
| Packages | npm: @yunshenwuchuxun/smart-drawio-mcp |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Web & browsing |
| Latest release | tools-v0.1.0 (Oct 14, 2026) |
| Last commit | Oct 14, 2026 |
| MCP registry name | io.github.yunshenwuchuxun/smart-drawio |

## Install

### Claude Desktop (claude_desktop_config.json)

```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

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

### Cursor (.cursor/mcp.json)

```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)

```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 2026-10-07.

## Environment variables

- `SMART_DRAWIO_PROVIDER`: openai or anthropic; required only for model generation
- `SMART_DRAWIO_BASE_URL`: Model provider HTTP(S) base URL; required only for model generation
- `SMART_DRAWIO_API_KEY` (secret): Your model provider API key; required only for model generation
- `SMART_DRAWIO_MODEL`: Model identifier; required only for model generation

## Tools

- `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"

## Similar MCP servers

- [Google News](https://appsgit.com/mcp-servers/google-news): Search Google News, get top stories and read articles. (384 stars, MIT)
- [Spotifyscraper](https://appsgit.com/mcp-servers/spotifyscraper): Public Spotify metadata, lyrics and podcasts for LLM agents. (322 stars, MIT)
- [Openreality](https://appsgit.com/mcp-servers/openreality): Open Reality: phone video to AI-queryable 3D scenes. (475 stars, BSD-2-Clause)
- [squirrelscan](https://appsgit.com/mcp-servers/squirrelscan): Website QA for your coding agent: audit SEO, performance, security, accessibility over MCP. (296 stars, MIT, official)
- [Flyto Core](https://appsgit.com/mcp-servers/flyto-core): Execution engine for AI agents. 412 modules: browser, file, Docker, data, crypto. (484 stars, Apache-2.0)
- [Google Surf MCP](https://appsgit.com/mcp-servers/google-surf-mcp): Web, academic and code search with graph RAG, data lineage, ontology and cross-project schema links. (291 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/smart-drawio
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
