CodePic
io.github.abelce/codepic
MCP server OK
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Technical sheet
- Author
- abelce (registry namespace)
- Repository
- github.com/abelce/codepic-mcp
- Site
- —
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://codepic.cc/api/mcp/mcp Streamable HTTP required header :
Authorization - Tools
- 7
- Categories
- AI, agents and memory, Images, audio and video
- Last updated
- 16 Jun 2026
- Published
- 16 Jun 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.abelce/codepic)<a href="https://latlas.dev/en/mcp/io.github.abelce/codepic"><img src="https://latlas.dev/badge/fiche/io.github.abelce/codepic.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://codepic.cc/api/mcp/mcp
- Last result
- OK 28 Nov 2026, 10:37
- Response time
- 2,345 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- mcp-typescript server on vercel 0.1.0
- Tools
- 7
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 10:37 | OK | 2,345 ms | 7 |
Exposed tools (7, from tools/list, 28 Nov 2026)
get_shape_docs
Get Shape Docs
Return 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 options, triangle direction, callout tail). No authentication required.
No parameters.
get_shape_catalog
Get Shape Catalog
Return 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 is concise and filterable.
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | enum: "basic" | "flow" | "container" | "ui" | "architecture" | "misc" | no | Filter by the shape category. |
| tag | string | no | Filter by one exact AI tag, e.g. container-capable, decision, database, or architecture. |
| containerMode | enum: "native" | "adaptive" | "none" | no | Filter by container support. adaptive shapes become containers when they receive children. |
list_templates
List Templates
List 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 straight to `create_diagram`. Discovering slugs here is only meaningful before a user-confirmed `create_from_template` call.
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | enum: "collaboration" | "planning" | "design" | "flowchart" | "engineering" | no | Filter by category |
create_from_template
Create from Template
Create 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 phrases like: "use a template", "from template", "用模板", "从模板创建", "list templates and pick one", or the user directly naming/selecting a template slug. If the user merely describes a diagram they want (e.g. "draw an A/B test flowchart", "帮我画一个登录流程", "给我做一个系统架构图"), **DO NOT** call this tool. Call `create_diagram` instead and build the diagram from the user's description. Never silently substitute a template for a described diagram — the user will get a generic result that does not match what they asked for. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the user can click it directly in their AI client (Cursor / Claude / etc.).
| Parameter | Type | Required | Description |
|---|---|---|---|
| slug | string | yes | Template slug (e.g. 'flowchart', 'erd', 'kanban'). Call list_templates to see all. |
| name | string | no | Document name (defaults to template name) |
| locale | enum: "en" | "zh" | no | Language for template content (default: en) |
create_diagram
Create Diagram
Create 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", "帮我画一个登录流程", "a system architecture with a load balancer and 3 servers", etc.), build it here from their description. Do NOT fall back to `create_from_template` / `list_templates` unless the user explicitly asked for a template. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the user can click it directly in their AI client (Cursor / Claude / etc.). **Container nesting (IMPORTANT — use whenever possible):** - Set `parentId` on a node to nest it inside another node. ANY node type can be a container. - The parent automatically becomes draggable-as-a-group and users can keep dropping elements into it. - Call `get_shape_catalog` with tag `container-capable` to choose among native structural containers and adaptive semantic shapes such as rectangles, circles, ellipses, diamonds, cylinders, and hexagons. - Parent bounds are expanded automatically using the selected shape's title and outline safe area. - Use absolute canvas coordinates for all nodes — child coordinates are auto-converted to parent-relative. - Set node `name`, `description`, and `tags` when later MCP/Agent reads need stable business semantics beyond visible text. - **Ru…
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Document name |
| nodes | array<object> | yes | Array of shape nodes to place on the canvas |
| edges | array<object> | no | Array of connector edges between nodes |
| backgroundColor | string | no | Canvas background color (default: '#f8f9fa') |
get_diagram
Get Diagram
Fetch 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 specific elements, or understand the current structure. Requires API Key authentication.
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | string | yes | Document ID to fetch |
update_diagram
Update Diagram
Update 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 user can click it directly in their AI client (Cursor / Claude / etc.).
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | string | yes | Document ID to update (from a previous create call) |
| name | string | no | New document name |
| nodes | array<object> | no | Full replacement of all nodes. If provided, replaces the entire canvas content. |
| edges | array<object> | no | Full replacement of all edges |
| addNodes | array<any> | no | Nodes to add (without replacing existing ones) |
| addEdges | array<any> | no | Edges to add |
| removeNodeIds | array<string> | no | IDs of nodes to remove |
| removeEdgeIds | array<string> | no | IDs of edges to remove |
| backgroundColor | string | no | New canvas background color |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://codepic.cc/api/mcp/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http codepic https://codepic.cc/api/mcp/mcpCustomize > Connectors > + Add > Add custom connector ; Name : codepic ; URL : https://codepic.cc/api/mcp/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : codepic ; Server URL : https://codepic.cc/api/mcp/mcp ; Create as a plugin{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp"
}
}
}{
"mcpServers": {
"codepic": {
"type": "http",
"url": "https://codepic.cc/api/mcp/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp"
}
}
}{
"mcpServers": {
"codepic": {
"httpUrl": "https://codepic.cc/api/mcp/mcp"
}
}
}[mcp_servers.codepic]
url = "https://codepic.cc/api/mcp/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
CodePic · L’Atlas · Tested on
[CodePic — L’Atlas](https://latlas.dev/en/mcp/io.github.abelce/codepic)Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.