Skip to main content

DocDiagram MCP Server - Embedded diagrams in MDX docs for AI assistants

Project description

docdiagram-mcp

MCP server exposing the DocDiagram API to any MCP-compatible client (Claude Code, Cursor, Continue, Cody). The same surface area as the Claude Code skills in ../skills/, expressed as typed tool calls.

Install

uvx docdiagram-mcp        # one-shot, recommended
# or
pip install docdiagram-mcp

Configure

Set DOCDIAGRAM_API_KEY or create ~/.docdiagram/config.yaml:

api_key: dd_live_xxxxxxxxxxxxx
server_url: https://app.docdiagram.com   # optional, defaults to prod

Mint a key with the Claude Code plugin: claude /docdiagram:auth.

Tools

Repos

  • repo_upsert - register or refresh a repo (idempotent on host_id)
  • repo_lookup - look up by GitHub node id
  • repo_get - fetch by DocDiagram UUID

Embedded diagrams

  • embedded_diagram_create - bind a new diagram to (repo, docs_path, slot)
  • embedded_diagram_revise - follow-up prompt against an existing binding
  • embedded_diagram_regenerate - re-run the last prompt
  • embedded_diagram_get - fetch a binding by id
  • embedded_diagram_by_sidecar - fetch by (repo, docs_path, slot)
  • embedded_diagram_list_for_repo - cursor-paginated list
  • embedded_diagram_delete - soft-delete
  • embedded_diagram_render_svg - return an SVG URL (bytes not inlined)
  • embedded_diagram_render_png_url - return a PNG URL

Sync (requires GitHub App install per TECH-064)

  • sync_start - open a PR with pending revisions
  • sync_get_status - poll a sync run
  • sync_list - list recent runs

Releasing

See RELEASING.md for the tagged-release publish flow and the registry submission runbook.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docdiagram_mcp-0.3.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docdiagram_mcp-0.3.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file docdiagram_mcp-0.3.1.tar.gz.

File metadata

  • Download URL: docdiagram_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docdiagram_mcp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5f64345d610959fbf609807bef12d1b1b0d86cb189c6bebf282e16fc422f048a
MD5 2c26f416884321d096c571668a1908b4
BLAKE2b-256 4a8c32362ee1bb0a2b7cfc7879d29407cf3f329f6d22837fb128076b468fe3d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for docdiagram_mcp-0.3.1.tar.gz:

Publisher: publish.yml on docdiagram/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docdiagram_mcp-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: docdiagram_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docdiagram_mcp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eeb19b5b7a218cd6323fa375d08c279e52a4002522bf02755d2e083757c9a11
MD5 8dfd099d2d29a7a77c2ee4aecbb415ad
BLAKE2b-256 afe5d04a8235ab33e45bbd20236540847fd8e4beac1e869402cbbedde850a31c

See more details on using hashes here.

Provenance

The following attestation bundles were made for docdiagram_mcp-0.3.1-py3-none-any.whl:

Publisher: publish.yml on docdiagram/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page