Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.docdiagram/docdiagram-mcp

PYPI · DOCDIAGRAM-MCP

DocDiagram MCP server - embedded diagrams in MDX docs

Available components

−4 this week 81 Trust /100

Last scanned (4 hours ago)

Scores higher than 81% of PyPI servers

Category Design and Media

Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • Runs hatchling.build at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
  • 1 of 22 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency71
  • Repository check failed: no source repository is declared. See how to fix → View diagnostics → Fail
  • Cryptographically verified build provenance (signed, bound to docdiagram/agents). View diagnostics → Pass
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 124 days ago).Pass
  • Security-disclosure policy not yet verified: we couldn't inspect the source repository.Unverified
Schema Quality & AI Usability69
  • AI-judged instruction clarity (good).Pass
  • Tool/resource definitions use about 1915 tokens (~100/item across 19 items; 19 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management70
  • Stability observed for 21 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage71
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 0% of tool parameters carry a description.Fail
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety75
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "embedded_diagram_delete" implies "delete" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Fail
  • An AI judge read all 19 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 5 Nov 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 67 to 70. That category is still filling its 30-day observation window: 20 days of observed history at the previous scan, 21 at this one. The score rises as the window fills, whether or not the server changes.

  • 4 Nov 26 −5
    • Stability: pass → 0.67 functional
  • 29 Oct 26 +16
    • Malware scan: unverified → pass ▲ security
    • Stability: 0.97 → pass security
  • 28 Oct 26 −1
    • Stability: pass → 0.97 functional
  • 22 Oct 26 +1
    • Stability: 0.97 → pass security
  • 21 Oct 26 +11
    • Provenance: unverified → pass ▲ security
    • The attested source repository moved: docdiagram/agents security
  • 20 Oct 26 −12
    • Provenance: pass → unverified ▼ security
    • The attested source repository moved: docdiagram/agents security
    • Stability: pass → 0.93 functional
  • 18 Oct 26 −15
    • Malware scan: pass → unverified ▼ security
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 5 Nov 2026 · Analysed pypi/docdiagram-mcp@0.3.1

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem pypi
Reason Verified
Discovered via Registry attestation endpoint
Source repo docdiagram/agents
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/docdiagram/agents/.github/workflows/publish.yml@refs/tags/v0.3.1
Rekor log index 1941411505
Predicate type PyPI publish attestation https://docs.pypi.org/attestations/publish/v1
Subject digest sha256:5f64345d610959fbf609807bef12d1b1b0d86cb189c6bebf282e16fc422f048a

Background: How many MCP packages publish verified provenance →

Install scripts 1 script
Hook Tier Command
build_backend allowlisted hatchling.build

Background: Why install scripts are a supply-chain risk →

Dependencies 22 packages
Packages resolved 22
Stale 1
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 19 exposed · ~1,915 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
diagram_create ~237

Generate a standalone diagram from a prompt. No MDX file or repo binding required: this is the zero-setup path for a customer who has only run /docdiagram:auth. Creates a chat in the account's default project and polls briefly for the render. NON-BLOCKING on a slow render: if the render is not done within a few seconds it returns a pending handle (``render_status`` is the inflight value, ``image_urls`` empty) that you resolve later with ``diagram_get(chat_slug)`` rather than raising. Does NOT download bytes; the caller fetches the short-lived signed URLs (valid ~5 min) WITHOUT credentials. Prefer the ``light`` theme (``default_theme``). Output is watermarked while the account is on the free tier (``is_free_tier``). Returns {chat_slug, chat_url, render_status, default_theme, image_urls, is_free_tier}, or, if a generation is already in flight on the resolved chat, {status: "generation_in_flight", chat_id}.

NameTypeReqDescription
promptstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

diagram_get ~188

Resolve a standalone diagram by its handle (the chat ``slug`` that ``diagram_create`` and ``diagram_list`` return). This is how you pick up a diagram that ``diagram_create`` returned as pending, and the dereference half of the deterministic-handle round-trip. Reads the correctly-resolved revision (the pinned one if pinned, else the one referenced by the last chat message, NEVER ``revisions[0]`` by position) and returns its freshly signed ``image_urls``. Returns {chat_slug, chat_url, render_status, default_theme, image_urls, pinned}, where ``pinned`` is true when the resolved revision is the pinned one. A brand-new chat with no rendered revision yet returns ``render_status: "unknown"`` with empty ``image_urls`` rather than erroring.

NameTypeReqDescription
chat_slugstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

diagram_list ~143

List the caller's standalone diagrams. Defaults to the account's default project (the zero-setup project); pass ``project_id`` to scope to another. Returns {items: [{chat_slug, title, thumbnail_url, updated_at}]}, the handle paired with the human label. Show ``title`` to the user, resolve their natural-language pick to the corresponding ``chat_slug``, then call ``diagram_get``/``diagram_revise`` with that ``chat_slug``. Titles are NOT unique and are never a key; always carry the ``chat_slug`` forward.

NameTypeReqDescription
limitinteger––
project_id–––

Structured output declared, but exposes no named fields.

No examples provided.

diagram_revise ~187

Revise an existing standalone diagram with a follow-up prompt, addressed by its handle (the chat ``slug``). Resolve a human pick to a ``chat_slug`` first (via ``diagram_list``); never re-create, which would silently duplicate. Appends a turn to the chat and polls briefly for the new render, with the same non-blocking behavior as ``diagram_create``: a slow render returns a pending handle to resolve later with ``diagram_get``. If a generation is already in flight on the chat, returns {status: "generation_in_flight", chat_slug, chat_id} as a retry signal instead of erroring. On success returns {chat_slug, chat_url, render_status, default_theme, image_urls, message_id, job_id}.

NameTypeReqDescription
chat_slugstringyes–
promptstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_by_sidecar ~79

Look up a binding by (repo, docs_path, slot). Returns None if no live binding exists. Soft-deleted rows are excluded so a re-create after delete works without surfacing the tombstone.

NameTypeReqDescription
docs_pathstringyes–
repo_host_idstringyes–
slotstring––
NameTypeReqDescription
result–yes–

No examples provided.

embedded_diagram_create ~134

Create a new embedded diagram bound to (repo, docs_path, slot). Errors with 409 if a binding already exists (use embedded_diagram_revise). Render runs as an arq job; blocks on the status URL until terminal (30s timeout) and returns the result. Returns {docdiagram_id, binding, sidecar, mdx_reference}; does NOT inline render bytes.

NameTypeReqDescription
brand_id–––
docs_pathstringyes–
promptstringyes–
repo_hoststringyes–
repo_host_idstringyes–
slotstring––

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_delete ~43

Soft-delete a binding. Does not delete the diagram itself; the canonical revision history remains addressable via the chat.

NameTypeReqDescription
docdiagram_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_get ~48

Fetch a binding (and its referenced diagram metadata) by id. Returns soft-deleted rows too so the orphan view in TECH-065 works.

NameTypeReqDescription
docdiagram_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_list_for_repo ~67

List bindings for a repo. Cursor-paginated per TECH-062's (created_at, id) base64-JSON convention. Returns {items, next_cursor}.

NameTypeReqDescription
cursor–––
limitinteger––
repo_host_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_regenerate ~93

Regenerate an existing embedded diagram by re-running the last prompt. Server resolves the current revision via diagram_revision_service.resolve_current and re-invokes the LLM with the most recent user message on the bound chat. Use when the diagram drifted or you want a fresh sample without retyping the prompt. Blocks until terminal (30s).

NameTypeReqDescription
docdiagram_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_render_png_url ~94

Return {full_png_url, expires_at}. full_png_url is a short-lived signed render URL (TECH-069) the caller fetches WITHOUT credentials, so it works off-origin where a bearer header can't be attached. Render is compute-on-demand via arq. Binary payloads in MCP tools are awkward; a URL is the right primitive.

NameTypeReqDescription
docdiagram_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_render_svg ~114

Return {full_svg_url, expires_at, byte_size}. full_svg_url is a short-lived signed render URL (TECH-069) the caller fetches WITHOUT credentials, so it works off-origin where a bearer header can't be attached. Render is compute-on-demand via arq (no cache table). The full SVG is NOT inlined: large diagrams blow out the model's context and SVG XML is rarely useful for the model to read directly.

NameTypeReqDescription
docdiagram_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

embedded_diagram_revise ~71

Revise an existing embedded diagram via a follow-up prompt. Addressed by docdiagram_id, not by repo/docs_path/slot. Render runs as an arq job; blocks until terminal (30s timeout).

NameTypeReqDescription
docdiagram_idstringyes–
promptstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

repo_get ~40

Fetch a repo row by its DocDiagram UUID. Use repo_lookup if you only have the GitHub node id.

NameTypeReqDescription
repo_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

repo_lookup ~58

Look up a repo by GitHub node id. Scoped to the caller's account (TECH-062 UNIQUE(account_id, host, host_id)). Returns the repo row or None if not registered.

NameTypeReqDescription
repo_host_idstringyes–
NameTypeReqDescription
result–yes–

No examples provided.

repo_upsert ~126

Register or update a repo. Idempotent on (account_id, host, host_id). Account scoping is implicit from the bearer token. Returns {id, account_id, host, host_id, repo_full_name, default_branch, docs_tool, docs_config_path, installation_id, sidecar_mode}.

NameTypeReqDescription
default_branchstring––
docs_config_path–––
docs_toolstring––
installation_id–––
repo_full_namestringyes–
repo_hoststringyes–
repo_host_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

sync_get_status ~53

Poll a sync run by id. Returns {status, pr_url, pr_number, bindings_updated, error_message, last_human_commit_sha, created_at, completed_at}.

NameTypeReqDescription
sync_run_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

sync_list ~70

List recent sync runs for a repo, newest first. Cursor-paginated per TECH-062's (created_at, id) base64-JSON convention. Returns {items, next_cursor}.

NameTypeReqDescription
cursor–––
limitinteger––
repo_host_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

sync_start ~70

Trigger a sync run: pushes pending revisions to the customer's repo via PR. Idempotent in-flight dedup (partial unique index on pending/running/pr_opened states). Returns {sync_run_id, status, job_id, already_in_flight}.

NameTypeReqDescription
repo_host_idstringyes–

Structured output declared, but exposes no named fields.

No examples provided.

Install

How do I install the io.github.docdiagram/docdiagram-mcp server?

io.github.docdiagram/docdiagram-mcp runs locally as a PyPI package, launched with uvx docdiagram-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

pypi · docdiagram-mcp

# add to Claude Code
claude mcp add docdiagram-docdiagram-mcp -- uvx docdiagram-mcp
Common questions

What is the io.github.docdiagram/docdiagram-mcp server?

io.github.docdiagram/docdiagram-mcp is listed in the public MCP registry as io.github.docdiagram/docdiagram-mcp. DocDiagram MCP server - embedded diagrams in MDX docs. This page covers its PyPI package (docdiagram-mcp).

Is the io.github.docdiagram/docdiagram-mcp server safe to use?

io.github.docdiagram/docdiagram-mcp scores 81 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the io.github.docdiagram/docdiagram-mcp server expose?

io.github.docdiagram/docdiagram-mcp exposes 19 tools: embedded_diagram_create, embedded_diagram_revise, embedded_diagram_regenerate, embedded_diagram_get, embedded_diagram_by_sidecar, and 14 more. Their descriptions and schemas cost roughly 1,915 tokens of context every time the server is loaded.

Is the io.github.docdiagram/docdiagram-mcp server still maintained?

io.github.docdiagram/docdiagram-mcp is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the io.github.docdiagram/docdiagram-mcp server under?

io.github.docdiagram/docdiagram-mcp declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.