Skip to main content
Glama

Server Details

AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
95.7% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
abelce/codepic-mcp
GitHub Stars
1
Server Listing
codepic
ChatGPT
–
Claude
–

TDQS

A4.3/5.0

Scored across 7 tools

Disambiguation4/5

Most tools have clearly distinct purposes, and the descriptions explicitly steer usage between create_diagram and create_from_template, and between get_shape_catalog and get_shape_docs. The only mild ambiguity is that two separate creation pathways exist, but the strict usage rules make the boundary clear in practice.

Naming Consistency5/5

All tools follow a consistent snake_case verb_object pattern: create_diagram, get_diagram, update_diagram, list_templates, get_shape_catalog, get_shape_docs. create_from_template is a minor prepositional variation but remains predictable and readable.

Tool Count5/5

Seven tools is well-scoped for a diagram creation and editing server. Each tool serves a distinct role: creation, template creation, retrieval, update, template listing, and two levels of shape reference.

Completeness4/5

The surface covers the core diagram lifecycle: create, read, update, template-based creation, and shape reference. Minor gaps exist, such as no delete_diagram or list_diagrams operation, but these are not central to the stated workflow and agents can work around them.

Available Tools

7 tools
create_diagramCreate DiagramAInspect

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.

  • Rule: whenever 2+ nodes logically belong to the same module / component / region, create a container node first and set parentId on each child.

Design tips for beautiful diagrams:

  • Use semantic types: button-primary for CTA buttons (auto blue), diamond for decisions

  • Pick a color palette and apply it consistently — light fill + darker stroke of the same hue: • Blue: fillColor #e3f2fd / #bbdefb, strokeColor #1565c0, fontColor #1565c0 (or #ffffff on dark fill) • Green: fillColor #e8f5e9 / #c8e6c9, strokeColor #2e7d32, fontColor #1b5e20 • Purple: fillColor #f3e5f5 / #e1bee7, strokeColor #6a1b9a, fontColor #4a148c • Neutral: fillColor #f8fafc / #f1f5f9, strokeColor #475569, fontColor #1e293b

  • Each semantic group (decisions, processes, I/O) should share a fill color to create visual hierarchy

  • Dark fill (e.g. #1565c0, #ef4444) → fontColor #ffffff; light fill → fontColor #111827

Inputs: name (required), nodes (required), edges, backgroundColor.

create_from_templateCreate from TemplateAInspect

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.).

Inputs: slug (required), name, locale.

get_diagramGet DiagramAInspect

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.

Inputs: documentId (required).

get_shape_catalogGet Shape CatalogAInspect

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.

Inputs: tag, category, containerMode.

get_shape_docsGet Shape DocsAInspect

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.

Inputs: no named parameters.

list_templatesList TemplatesAInspect

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.

Inputs: category.

update_diagramUpdate DiagramAInspect

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.).

Inputs: documentId (required), name, edges, nodes, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A local-first two-way shared whiteboard: a person and an AI agent draw on the same canvas through four stdio MCP tools, with editable board snapshots and an optional MCP App panel.
      4
      214 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to draw animated, hand-drawn diagrams on a live whiteboard through MCP tools, allowing users to visually explain concepts and edit scenes interactively.
      50 npm
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables visual collaboration with an AI agent on a codebase through a shared drawing canvas, where hand-drawn diagrams are inferred as editable structure over MCP.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Gives AI agents a live, persistent diagram canvas they can draw on, inspect via screenshots, and refine element by element, then export as editable .excalidraw files to commit alongside code. Supports architecture diagrams and flowcharts through a CLI, MCP tools, or REST API.
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.