Let your AI agent (Cursor, Claude) draw editable hand-drawn diagrams via MCP — not static images or Mermaid text.
git clone https://github.com/abelce/codepic-mcp{
"mcpServers": {
"codepic-mcp": {
"command": "node",
"args": ["/path/to/codepic-mcp/dist/index.js"]
}
}
}MCP Servers overview
# CodePic MCP
> Let your AI coding agent draw **editable** diagrams — not another Mermaid snippet you have to paste.
[](https://codepic.cc/tools/mcp)
[](https://codepic.cc)
[](LICENSE)
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:
```json
{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp",
"headers": {
"Authorization": "Bearer cpk_your_api_key_here"
}
}
}
}
```
### Claude Code
Add it with one command:
```bash
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`:
```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`:
```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`:
```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`:
```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:
```json
{
"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 by `documentId` before 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:
```text
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](examples/system-architecture.md) | Next.js SaaS architecture diagram | Next.js + Supabase + Postgres + R2 + Stripe + Vercel |
| [Database ER diagram](examples/database-er-diagram.md) | SaaS billing data model | Users, teams, subscriptions, invoices, payments |
| [OAuth sequence flow](examples/oauth-sequence-flow.md) | PKCE login sequence diagram | Browser, app server, identity provider, database |
| [CI/CD pipeline](examples/cicd-pipeline.md) | GitHub Actions deployment pipeline | Type-check, lint, build, preview, production |
| [Data pipeline](examples/data-pipeline.md) | Analytics pipeline diagram | Segment, Snowflake, dbt, Metabase |
| [Iterate existing diagram](examples/iterate-existing-diagram.md) | 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](LICENSE).
What people ask about codepic-mcp
What is abelce/codepic-mcp?
+
abelce/codepic-mcp is mcp servers for the Claude AI ecosystem. Let your AI agent (Cursor, Claude) draw editable hand-drawn diagrams via MCP — not static images or Mermaid text. It has 0 GitHub stars and was last updated today.
How do I install codepic-mcp?
+
You can install codepic-mcp by cloning the repository (https://github.com/abelce/codepic-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is abelce/codepic-mcp safe to use?
+
abelce/codepic-mcp has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains abelce/codepic-mcp?
+
abelce/codepic-mcp is maintained by abelce. The last recorded GitHub activity is from today, with 0 open issues.
Are there alternatives to codepic-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy codepic-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/abelce-codepic-mcp)<a href="https://claudewave.com/repo/abelce-codepic-mcp"><img src="https://claudewave.com/api/badge/abelce-codepic-mcp" alt="Featured on ClaudeWave: abelce/codepic-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。