cacoo-mcp
Click on "Deploy 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., "@cacoo-mcp List my Cacoo diagrams and fetch the image for the first one"
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.
@mahito1594/cacoo-mcp
README: 日本語 | English
Cacoo の非公式 Model Context Protocol (MCP) サーバーです。Claude Code や Cursor などの AI コーディングエージェントが Cacoo の図の画像やメタデータを直接参照できるよう、読み取り専用のツールを提供します。
セットアップ
1. Cacoo API キーを取得する
Cacoo のアカウント設定から API キーを生成してください。
2. MCP クライアントを設定する
Claude Code: 次のコマンドを実行してください
claude mcp add --env CACOO_API_KEY=your-api-key-here cacoo-mcp -- npx -y @mahito1594/cacoo-mcpClaude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json または %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"cacoo-mcp": {
"command": "npx",
"args": ["-y", "@mahito1594/cacoo-mcp"],
"env": {
"CACOO_API_KEY": "your-api-key-here"
}
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"cacoo-mcp": {
"command": "npx",
"args": ["-y", "@mahito1594/cacoo-mcp"],
"env": {
"CACOO_API_KEY": "your-api-key-here"
}
}
}
}環境変数
変数名 | 必須 | 説明 |
| 必須 | Cacoo API キー |
| 任意 | デフォルトの組織キー。省略した場合は先に |
Related MCP server: excalidraw
ツール
ツール名 | 説明 |
| 設定された API キーで利用できる Cacoo 組織の一覧を取得する |
| 図の一覧を取得する(キーワードやフォルダでの絞り込みも可) |
| 図に含まれるシートの一覧(シート ID と名前)を取得する |
| 図の PNG 画像を Base64 エンコードで取得する |
典型的な使用フロー
list_organizations() # CACOO_ORGANIZATION_KEY が未設定の場合
list_diagrams(keyword?) # diagramId を特定し sheetCount を確認
if sheetCount > 3:
get_diagram_sheets(diagramId) # sheetId を取得
get_diagram_image(diagramId, sheetId?) # 画像を取得sheetId を省略した場合、get_diagram_image はすべてのシートを並列で取得します。
開発
Node.js >= 22 および pnpm >= 10 が必要です。 mise を用いてインストールしてください。
pnpm install
pnpm build # TypeScript をコンパイル → dist/index.mjs
pnpm test # テストを実行
pnpm typecheck # 型チェック(出力なし)
pnpm lint # oxlint を実行Agent Skills
このプロジェクトは以下のサードパーティ Agent Skill を使用しています。
contextual-commits by Berserk Disruptors — MIT License
以下のコマンドでインストールしてください。
pnpm dlx skills experimental_installライセンス
Available Tools
4 toolsget_diagram_imageA
Fetch PNG image(s) of a Cacoo diagram. If sheetId is omitted, fetches ALL sheets. When the diagram has many sheets (sheetCount > 3), use get_diagram_sheets first to identify the target sheet.
Inputs: diagramId (required), width, height, sheetId.
get_diagram_sheetsA
Get the list of sheets in a Cacoo diagram, including sheet IDs and names. Use this before get_diagram_image when a diagram has many sheets (sheetCount > 3).
Inputs: diagramId (required).
list_diagramsA
List Cacoo diagrams. Use this to find a diagram ID by title or keyword before fetching sheets or images. organizationKey should be the organization key from list_organizations, for example hEkx29Hj9h.
Inputs: limit, offset, keyword, folderId, +1 more.
list_organizationsA
List Cacoo organizations available to the configured API key. Use this when CACOO_ORGANIZATION_KEY is not set and you need an organization key.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource and action: organizations, diagrams, sheets, and images. The descriptions explicitly state the dependency chain (list_organizations -> list_diagrams -> get_diagram_sheets -> get_diagram_image), leaving no ambiguity about which tool to pick.
All four names follow a strict verb_noun snake_case pattern (list_organizations, list_diagrams, get_diagram_sheets, get_diagram_image), with the verbs used consistently for their semantic meaning (list for collections, get for a specific artifact).
Four tools is a lean, well-scoped surface for a read-only diagram retrieval server, and each earns its place in the workflow. It sits at the low end, so a small addition (e.g. a direct diagram metadata lookup) would round it out, but nothing feels redundant.
The discovery-to-image pipeline is fully covered: find organizations, find diagrams, enumerate sheets, then fetch PNGs, including sheet selection for large diagrams. Gaps exist only on the write/metadata side (no create, update, or diagram detail fetch), which is minor if the server's purpose is read-only access.
Maintenance
Related MCP Connectors
Read-only tools for the approved public KOKU SCRIPTS AI Catalog.
Web knowledge fetching tools for your agent.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to programmatically generate, edit, and view Excalidraw diagrams with real-time browser synchronization. It provides a suite of tools for adding shapes, text, and arrows to diagrams through natural language interactions.11102MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools for creating, deleting, and querying nodes and edges in Excalidraw diagrams, enabling diagram editing via LLM interfaces.1,249 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, read, update, and delete Draw.io diagrams, allowing automated generation of architectural diagrams, flowcharts, and visual documentation.MIT
- AlicenseAqualityDmaintenanceProvides read-only tools to search, read, and look up Natural API documentation from an AI agent, enabling documentation lookup without credentials.4MIT