MCP Server
Divctor has an MCP (Model Context Protocol) endpoint. AI assistants that support MCP can use it to draw charts, flowcharts and QR codes through Divctor, without you writing API calls yourself.
Endpoint
https://divctor-mcp.divct.workers.dev/mcp
Streamable HTTP transport. No API key is needed; you can optionally pass your own key per call (see below). For example, in Claude Code:
claude mcp add --transport http divctor https://divctor-mcp.divct.workers.dev/mcp
Tools
| Tool | What it does |
|---|---|
| generate_chart | Draws any of the 8 chart types with the same options as the Chart API. By default it saves the chart and returns a shareable link (valid 30 or 60 days). With save=false it returns the raw SVG. |
| generate_graph | Draws a flowchart from nodes and links, like the Graph API. Same save behavior as generate_chart. |
| generate_qr | Returns a QR code as SVG. Free; not counted in points. |
| list_chart_types | Returns the chart types and their data rules. Free. |
Limits
Anonymous use is free and needs no signup. No points are deducted from any account. Generated charts and flowcharts carry the Divctor watermark, like the Free plan.
Each client IP can send up to 30 requests per minute; over the limit, calls return 429.
Same engine
The MCP endpoint draws through the same Divctor engine as the HTTP API: same output, same validation, same error codes. The MCP tools simply call the API for you.