drawx-mcp-server

v0.1.1
io.github.SaharshPamecha/drawx-mcp-server Checked 3 days ago Published 5 months ago

Generate draw.io diagrams and architecture designs from natural language, via the DrawX API.

Values you need

VariableWhat it is
DRAWX_API_KEYrequired secret Your DrawX API key (create one at https://getdrawx.com → Settings → API keys; starts with drawx_live_).
DRAWX_API_BASEoptional Override the DrawX API base URL (defaults to https://getdrawx.com/api/v1).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add drawx-mcp-server -e 'DRAWX_API_KEY=<DRAWX_API_KEY>' -- npx -y --package=@drawx/mcp-server@0.1.1 drawx-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "drawx-mcp-server": {
      "args": [
        "-y",
        "--package=@drawx/mcp-server@0.1.1",
        "drawx-mcp"
      ],
      "command": "npx",
      "env": {
        "DRAWX_API_KEY": "<DRAWX_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "drawx-mcp-server": {
      "args": [
        "-y",
        "--package=@drawx/mcp-server@0.1.1",
        "drawx-mcp"
      ],
      "command": "npx",
      "env": {
        "DRAWX_API_KEY": "<DRAWX_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DRAWX_API_KEY",
      "id": "drawx-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "drawx-mcp-server": {
      "args": [
        "-y",
        "--package=@drawx/mcp-server@0.1.1",
        "drawx-mcp"
      ],
      "command": "npx",
      "env": {
        "DRAWX_API_KEY": "${input:drawx-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.drawx-mcp-server]
command = "npx"
args = ["-y", "--package=@drawx/mcp-server@0.1.1", "drawx-mcp"]
env = { "DRAWX_API_KEY" = "<DRAWX_API_KEY>" }

For AI agents

  1. Ask the user for: DRAWX_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_diagram, architect_design, whoami.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json