AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Connect Remote server
claude mcp add --transport http codepic https://codepic.cc/api/mcp/mcp --header "Authorization: Bearer <YOUR_API_KEY>"
{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
{
"servers": {
"codepic": {
"type": "http",
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}
Settings > Connectors > Add custom connector
URL: https://codepic.cc/api/mcp/mcp
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools 7 found in our last check
get_shape_docsReturn the full CodePic shape reference — all element types, their fields, data payloads, and JSON examples. Call get_shape_catalog first for concise shape selection and container capabilities; use this tool when you need complete fields or type-specific data (e.g. select option…
get_shape_catalogReturn compact machine-readable shape metadata for planning a diagram: semantic tags, geometry family, container support, recommended padding, default size, and MCP availability. Use this before create_diagram when choosing shapes or containers. Unlike get_shape_docs, this tool…
list_templatesList all available CodePic diagram templates. Use this ONLY when the user has explicitly asked to browse, list, or pick from templates (e.g. "show me templates", "列出模板"). Do NOT call this as a preparatory step when the user just described a diagram they want — in that case go st…
create_from_templateCreate a new CodePic diagram from a predefined template. Requires API Key authentication. Returns a public view URL and edit URL. **STRICT USAGE RULE — READ BEFORE CALLING:** Only call this tool when the user has **explicitly** asked to use a template. Explicit signals include p…
create_diagramCreate a custom CodePic hand-drawn style diagram by specifying nodes and edges. Requires API Key authentication. Returns a public view URL. **THIS IS THE DEFAULT TOOL FOR ANY USER-DESCRIBED DIAGRAM.** Whenever the user describes a diagram they want ("draw an A/B test flowchart",…
get_diagramFetch the current state of an existing CodePic diagram. Returns a compact summary of all elements with their IDs, types, positions, and parent-child relationships. Use this before update_diagram when you need to: add nested children to existing containers, make targeted edits to…
update_diagramUpdate an existing CodePic diagram. You can rename it, replace all nodes/edges, or add/remove individual nodes and edges. Requires API Key authentication. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the…
Headers
| Name | Description |
|---|---|
AuthorizationRequired, secret | Bearer API key from https://codepic.cc/settings/api-keys (format: cpk_...) |
Details
| Endpoint | https://codepic.cc/api/mcp/mcp (Streamable HTTP) |
| First published | 16 Jun 2026 |
| Last updated | 16 Jun 2026 |
| Registry name | io.github.abelce/codepic |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
