codepic
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codepicCreate an ER diagram for a blog database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CodePic MCP
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_....
Related MCP server: composer-mcp
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 |
Next.js SaaS architecture diagram | Next.js + Supabase + Postgres + R2 + Stripe + Vercel | |
SaaS billing data model | Users, teams, subscriptions, invoices, payments | |
PKCE login sequence diagram | Browser, app server, identity provider, database | |
GitHub Actions deployment pipeline | Type-check, lint, build, preview, production | |
Analytics pipeline diagram | Segment, Snowflake, dbt, Metabase | |
Read an existing document, then update it |
|
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityCmaintenanceConnects AI coding agents to Circuitry's visual workflow platform, enabling them to create and sync code nodes from project files, understand user-drawn flowcharts and diagrams, generate visual flowcharts, and create data visualizations like spreadsheets and charts.Last updated100
- Alicense-qualityDmaintenanceVisual architecture canvas that updates in real-time. Agents can build, read, and modify system design diagrams — services, databases, queues, APIs, entities — all linked to actual code paths in your repo.Last updated734MIT
- Alicense-qualityCmaintenanceGenerates professional architecture diagrams from natural language descriptions using template-driven prompts and swappable AI image providers.Last updated1MIT
- Alicense-qualityDmaintenanceEnables LLMs to draw interactive diagrams (architecture, sequence, class) inside the editor, with clickable nodes that jump to source code.Last updated4MIT
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abelce/codepic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server