# Smart Drawio

> Smart Drawio is an open-source MCP server. Generate, validate, repair and style editable draw.io XML diagrams. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/yunshenwuchuxun/smart-drawio-next/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.yunshenwuchuxun/smart-drawio
- **Listing updated:** 2026-11-13

## About

Generate, validate, repair and style editable draw.io XML diagrams.

## Install

### Claude Code (Terminal)

```sh
claude mcp add smart-drawio --env SMART_DRAWIO_API_KEY='<SMART_DRAWIO_API_KEY>' -- npx -y @yunshenwuchuxun/smart-drawio-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "smart-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "<SMART_DRAWIO_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "smart-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "<SMART_DRAWIO_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "smart-drawio": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "<SMART_DRAWIO_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "smart-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "<SMART_DRAWIO_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "smart-drawio": {
      "command": "npx",
      "args": [
        "-y",
        "@yunshenwuchuxun/smart-drawio-mcp"
      ],
      "env": {
        "SMART_DRAWIO_API_KEY": "<SMART_DRAWIO_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Smart Drawio free?

Yes. Smart Drawio is open source, so you can use and self-host it for free.

### How do I add Smart Drawio to Claude Code?

Run this command in your terminal: claude mcp add smart-drawio --env SMART_DRAWIO_API_KEY='<SMART_DRAWIO_API_KEY>' -- npx -y @yunshenwuchuxun/smart-drawio-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/smart-drawio
