# drawspec (pypi · drawspec)

Validate and render declarative diagram specs to clean SVG or PNG; no coordinates needed.

- Trust score: 79/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-10-17

## Components

- pypi · `drawspec`: 79/100 (this document), [markdown](https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec.md), [page](https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec)

## Channel facts

- Registry: `pypi`
- Package: `drawspec`
- Version: `0.3.3`
- Transport: `stdio`

## Trust breakdown

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. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-10-17.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised build step with no custom scripting around it.
  - 0 of 1 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to nuncaeslupus/drawspec).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 64/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 1442 tokens (~288/item across 5 items; 5 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (80% of tools); any adoption earns full credit.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 5 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 6 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a current MCP spec version (2026-07-28).

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the drawspec MCP server?

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

### Claude

```bash
claude mcp add nuncaeslupus-drawspec -- uvx drawspec
```

### Cursor

```json
{
  "mcpServers": {
    "nuncaeslupus-drawspec": {
      "command": "uvx",
      "args": [
        "drawspec"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "nuncaeslupus-drawspec": {
      "command": "uvx",
      "args": [
        "drawspec"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add nuncaeslupus-drawspec -- uvx drawspec
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nuncaeslupus-drawspec": {
      "type": "local",
      "command": [
        "uvx",
        "drawspec"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add nuncaeslupus-drawspec --command uvx --arg drawspec
```

### Hermes

```yaml
mcp_servers:
  nuncaeslupus-drawspec:
    command: "uvx"
    args: ["drawspec"]
```

### Netclaw

```json
{
  "McpServers": {
    "nuncaeslupus-drawspec": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "drawspec"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add nuncaeslupus-drawspec -t stdio -c uvx -a drawspec
```

### Other

```json
{
  "mcpServers": {
    "nuncaeslupus-drawspec": {
      "command": "uvx",
      "args": [
        "drawspec"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-10-17 (score 79, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-15 (score 64)

First indexed and scored.

## MCP tools (5)

### `list_kinds` (~104 tokens)

List the diagram kinds

List the vocabulary: all 36 values `kind` may take, each with a one-line purpose. Call it first, before choosing a kind — several kinds are not box-and-arrow diagrams and are easy to miss — then `get_example` for a starting document. No arguments. Static and local: no I/O, about 4 KB, the same answer every call, in a fixed order that keeps related kinds (graphs, grids, shapes, charts) adjacent.

Output parameters:

- `kinds` (array)

### `get_example` (~150 tokens)

Get an example document of one kind

Get the smallest valid document of one kind, as JSON ready to edit: the fastest way to the right field names. `kind` is one exact value from `list_kinds`, e.g. `flow`. Use it after `list_kinds` has settled the kind, and `get_schema` only for a field the example leaves out. Static and local: the document `drawspec example <kind>` prints, under 1 KB, identical every call; it passes `validate_document` as is. An unknown kind is an error result naming `list_kinds`.

Input parameters:

- `kind` (string, required): A diagram kind, exactly as `list_kinds` names it, e.g. `flow`.

### `get_schema` (~155 tokens)

Get the JSON Schema for one kind

Get the JSON Schema (draft 2020-12) for one kind's documents: every field it accepts, with types, limits and descriptions, plus only the shared `$defs` it refers to. `kind` is one value from `list_kinds`, e.g. `sequence`. Use it when `get_example` does not show a field you need. Local and deterministic: 3 to 13 KB per kind, cut from the ~150 KB published schema. Referential rules (unique ids, edges that land on real nodes) are beyond JSON Schema — `validate_document` checks those.

Input parameters:

- `kind` (string, required): A diagram kind, exactly as `list_kinds` names it, e.g. `flow`.

### `validate_document` (~343 tokens)

Validate a drawspec document

Check whether `render_document` would refuse this document, and exactly where. It renders with the same `theme` and discards the drawing, so it passes only what draws; every violation comes back at once, so one pass is one edit. Call it while writing or editing; skip it when about to render anyway, since `render_document` refuses in the same shape. Local, deterministic, milliseconds. Refusals are error results with JSON text `{"ok": false, "error": "DocumentError", "message": "...", "violations": [{"pointer": "/edges/0/to", "message": "..."}]}`: `error` is e.g. `DocumentError` or `FitError`, `pointer` is RFC 6901 (empty for the whole document), and `violations` is never empty.

Input parameters:

- `document` (object, required): A drawspec document as a JSON object (not a string or a path), e.g. `{"version": 1, "kind": "flow", "nodes": [...], "edges": [...]}`. `list_kinds` names the 36 values `kind` may take, `get_example` r…
- `theme` (string): A bundled theme name (accent, blueprint, compartment, default, wheel) or a path to a `.toml` theme file on the server's disk, e.g. `blueprint`. Omit for `default`.

Output parameters:

- `kind` (string)
- `message` (string)
- `ok` (boolean)

### `render_document` (~582 tokens)

Render a drawspec document to SVG, PNG or text

Draw the document. Use it when it is ready to show; while still fixing errors, `validate_document` returns just the verdict. Returns one content block by `format`: `svg` (default) self-contained SVG text, safe inline in Markdown; `png` a base64 `image/png` block (needs the server's `drawspec[png]` extra, slowest); `text` plain text for a code block, only for kinds with a text form. `width`/`height` override the document's size; with `text`, `width` is cells per line and `height` and `theme` are ignored. Local, deterministic, writes nothing. Refusals are error results with JSON text `{"ok": false, "error": "DocumentError", "message": "...", "violations": [{"pointer": "/edges/0/to", "message": "..."}]}`: `error` is e.g. `DocumentError` or `FitError`, `pointer` is RFC 6901 (empty for the whole document), and `violations` is never empty.

Input parameters:

- `background` (string): png only: the page the drawing is on (default light).
- `charset` (string): text only: box-drawing characters, or ASCII only (default unicode).
- `document` (object, required): A drawspec document as a JSON object (not a string or a path), e.g. `{"version": 1, "kind": "flow", "nodes": [...], "edges": [...]}`. `list_kinds` names the 36 values `kind` may take, `get_example` r…
- `format` (string): svg (default), png, or text: the diagram as plain text for a code block or a terminal, for the kinds files, tree, sequence, gantt, timeline, board, stack, rag, meter, flow, states, lanes.
- `height` (number): Override the document's height (ignored with format `text`).
- `scale` (number): png only: pixels per SVG unit (default 2).
- `theme` (string): A bundled theme name (accent, blueprint, compartment, default, wheel) or a path to a `.toml` theme file on the server's disk, e.g. `blueprint`. Omit for `default`.
- `width` (number): Override the document's width, e.g. `640`. With format `text`, the most terminal cells a line may take (default 80, or 100 for `lanes` and `sequence`).

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec#diagnostics

## Score history

- 2026-10-17: 79
- 2026-10-16: 64
- 2026-10-15: 64

## Common questions

### What is the drawspec MCP server?

drawspec is an MCP server listed in the public MCP registry as io.github.nuncaeslupus/drawspec. Validate and render declarative diagram specs to clean SVG or PNG; no coordinates needed. This page covers its PyPI package (drawspec).

### Is the drawspec MCP server safe to use?

drawspec scores 79 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 17 October 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 drawspec MCP server expose?

drawspec exposes 5 tools: list_kinds, get_example, get_schema, validate_document, render_document. Their descriptions and schemas cost roughly 1,334 tokens of context every time the server is loaded.

### Is the drawspec MCP server still maintained?

drawspec is still listed as active in the MCP registry. We last reached this channel on 17 October 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 drawspec MCP server under?

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

## Links

- PyPI project: https://pypi.org/project/drawspec/
- Socket report: https://socket.dev/pypi/package/drawspec
- Repository: https://github.com/nuncaeslupus/drawspec
- Changelog RSS feed: https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec.xml
- Changelog JSON feed: https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec.json
- HTML version of this page: https://verifymcp.io/servers/nuncaeslupus-drawspec/drawspec
