CodePic MCP
MCP serverMediaYour AI can draw hand-drawn style diagrams that stay editable instead of coming out as static images. Once codepic is added, it turns your descriptions into flowcharts, entity-relationship diagrams, and architecture diagrams. The result is a diagram you can keep working with rather than a frozen picture.
Use CodePic MCP in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add CodePic MCP and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use CodePic MCP to get shape docs
Needs your own account with this service. Keys stay in your vault.
Details
Available today. Use it from your connected AI after setup.
Add codepic, then ask your AI to draw the diagram you need, describing the process, data model, or system you want mapped.
What your AI can do with it
- Draw flowcharts in a hand-drawn style
- Create entity-relationship diagrams
- Sketch architecture diagrams
- Produce diagrams that remain editable rather than static images
Install CodePic MCP
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user codepic-mcp 'https://codepic.cc/api/mcp/mcp'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://codepic.cc/api/mcp/mcpAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=codepic-mcp&config=eyJ1cmwiOiJodHRwczovL2NvZGVwaWMuY2MvYXBpL21jcC9tY3AifQ==Open the link and Cursor adds the server at that address.
ChatGPT
https://codepic.cc/api/mcp/mcpIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add codepic-mcp --url 'https://codepic.cc/api/mcp/mcp'Run it once, then sign in with codex mcp login codepic-mcp if the server asks for an account.
From the project's README
As published by abelce/codepic-mcp in README.md.
Let your AI coding agent draw editable diagrams — not another Mermaid snippet you have to paste.
Generate editable hand-drawn diagrams from Cursor, Claude Desktop, and other MCP clients.
CodePic MCP lets an AI coding agent create diagrams directly in CodePic instead of returning static images, Mermaid snippets, or JSON that you have to paste manually. The result opens in the CodePic editor, where you can still move shapes, edit labels, adjust connectors, share a read-only link, and export PNG or JSON.
Quick Start
It's a remote Streamable HTTP server — no local install. First create a free API key (the cpk_... token) at https://codepic.cc/settings/api-keys (sign in → New API key → copy), then add the config for your client and replace cpk_your_api_key_here.
Cursor
Create .cursor/mcp.json in your project:
{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
Claude Code
Add it with one command:
claude mcp add --transport http codepic https://codepic.cc/api/mcp/mcp \
--header "Authorization: Bearer cpk_your_api_key_here"
Claude Desktop
Add CodePic to your claude_desktop_config.json:
{
"mcpServers": {
"codepic": {
"type": "streamableHttp",
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
VS Code (GitHub Copilot)
Add CodePic to .vscode/mcp.json:
{
"servers": {
"codepic": {
"type": "http",
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
Codex CLI
Add CodePic to ~/.codex/config.toml:
[mcp_servers.codepic]
url = "https://codepic.cc/api/mcp/mcp"
[mcp_servers.codepic.headers]
Authorization = "Bearer cpk_your_api_key_here"
Windsurf
Add CodePic to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"codepic": {
"serverUrl": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
Cline
Open Cline's MCP settings (cline_mcp_settings.json) and add:
{
"mcpServers": {
"codepic": {
"type": "streamableHttp",
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
Other clients
Any MCP client that supports remote Streamable HTTP works — point it at the endpoint https://codepic.cc/api/mcp/mcp with header Authorization: Bearer cpk_....
Available MCP Tools
list_templates- list available diagram templates.create_from_template- create a new diagram from a template.create_diagram- create a custom diagram with nodes and edges.get_diagram- fetch the current diagram structure bydocumentIdbefore making targeted follow-up edits.update_diagram- update an existing diagram by replacing, adding, or removing nodes and edges.
Iterate on an Existing Diagram
Use get_diagram when you already have a CodePic document and want the AI agent to inspect it before changing it. This keeps the workflow grounded in the current diagram instead of guessing from memory.
Example prompt:
Use get_diagram to inspect document <documentId>, then update the diagram by adding a Redis cache between the API server and Postgres database.
Examples
| Example | What It Generates | Prompt |
|---|---|---|
| System architecture | Next.js SaaS architecture diagram | Next.js + Supabase + Postgres + R2 + Stripe + Vercel |
| Database ER diagram | SaaS billing data model | Users, teams, subscriptions, invoices, payments |
| OAuth sequence flow | PKCE login sequence diagram | Browser, app server, identity provider, database |
| CI/CD pipeline | GitHub Actions deployment pipeline | Type-check, lint, build, preview, production |
| Data pipeline | Analytics pipeline diagram | Segment, Snowflake, dbt, Metabase |
| Iterate existing diagram | Read an existing document, then update it | get_diagram + update_diagram |
Useful Links
- CodePic: https://codepic.cc
- MCP guide: https://codepic.cc/tools/mcp
- API keys (get yours): https://codepic.cc/settings/api-keys
- ER diagram maker: https://codepic.cc/tools/er-diagram-maker
- Flowchart maker: https://codepic.cc/tools/flowchart-maker
- Wireframe tool: https://codepic.cc/tools/wireframe-tool
Community Post Angle
If you share this project, lead with the workflow:
I connected Cursor to a diagram editor through MCP, so it can generate editable architecture diagrams instead of Mermaid text.
Avoid generic product claims like "best diagram tool". Developer communities respond better to a concrete workflow and real examples.
License
MIT — see LICENSE.
Tools it offers (7)
What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.
get_shape_docsget_shape_cataloglist_templatescreate_from_templatecreate_diagramget_diagramupdate_diagram
Signals
- GitHub stars
- 1
- Last commit
- Jun 2026
Advanced
- Delivery
- codepic MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-abelce-codepic- Source
- github.com/abelce/codepic-mcp
- Hosted endpoint
https://codepic.cc/api/mcp/mcp