Skip to main content
Glama

@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-mcp

Claude 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_KEY

必須

Cacoo API キー

CACOO_ORGANIZATION_KEY

任意

デフォルトの組織キー。省略した場合は先に list_organizations を呼び出して取得してください。

Related MCP server: excalidraw

ツール

ツール名

説明

list_organizations

設定された API キーで利用できる Cacoo 組織の一覧を取得する

list_diagrams

図の一覧を取得する(キーワードやフォルダでの絞り込みも可)

get_diagram_sheets

図に含まれるシートの一覧(シート ID と名前)を取得する

get_diagram_image

図の 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 を使用しています。

以下のコマンドでインストールしてください。

pnpm dlx skills experimental_install

ライセンス

MIT

Available Tools

4 tools
get_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

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

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

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides tools for creating, deleting, and querying nodes and edges in Excalidraw diagrams, enabling diagram editing via LLM interfaces.
      1,249 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to create, read, update, and delete Draw.io diagrams, allowing automated generation of architectural diagrams, flowcharts, and visual documentation.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only tools to search, read, and look up Natural API documentation from an AI agent, enabling documentation lookup without credentials.
      4
      MIT