docdiagram-mcp

v0.3.1
io.github.docdiagram/docdiagram-mcp Checked 3 days ago Published 5 months ago

DocDiagram MCP server - embedded diagrams in MDX docs

Values you need

VariableWhat it is
DOCDIAGRAM_API_KEYrequired secret DocDiagram personal API key
DOCDIAGRAM_API_URLoptional Override base URL for self-hosted deployments

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

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

For AI agents

  1. Ask the user for: DOCDIAGRAM_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: embedded_diagram_create, embedded_diagram_revise, embedded_diagram_regenerate, embedded_diagram_get, embedded_diagram_by_sidecar, embedded_diagram_list_for_repo, embedded_diagram_delete, embedded_diagram_render_svg, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json