Skip to main content
Glama
Cin7 Omni MCP Server

Cin7 Omni MCP Server

Cin7 Omni MCP Server

MCPサーバーで、Claude に Cin7 Omni API への完全なアクセスを提供します — API がサポートするすべてのリソースとすべての操作:

Contacts · Branches · Product Categories · Products · Product Options · Product Images · Size Ranges · Stock · Serial Numbers · Branch Transfers · Adjustments · Vouchers · Sales Orders (カートンを含む) · Payments · Payment Fees & Payouts · Purchase Orders · Quotes · Credit Notes · BOM Masters (v1 & v2) · Production Jobs · Users · Cartons

動詞マトリックス(どのリソースを一覧表示、取得、作成、更新、削除できるか)は、Cin7 の公式 swagger 仕様から取得され、サーバー側で強制されます。そのため、Claude が API がサポートしていない操作を試みることは決してありません。

ツール

ツール

説明

cin7_list

where フィルター、フィールド選択、並び順、ページネーションを使用して任意のリソースを一覧表示/検索

cin7_get

ID で単一レコードを取得(Stock はバーコード、Vouchers はバウチャーコード)

cin7_describe

任意のリソースのフィールドリファレンス(Cin7 の swagger から取得)— API 呼び出しなし。書き込みの前に使用

cin7_create

レコードを作成(POST、配列ペイロード)

cin7_update

レコードを更新(PUT; null = 変更しない、"" = クリア)

cin7_delete

レコードを削除(Cin7 が許可しているのは Contacts と Payments のみ)

cin7_upload_product_image

商品に画像ファイルをアップロード(multipart)

読み取りと書き込みは、適切な MCP アノテーション(readOnlyHint、destructiveHint)を備えた別々のツールです。そのため Claude では、各書き込みツールを読み取りツールとは独立に、常に許可、毎回確認、拒否 のいずれかに設定できます。

Related MCP server: simpro-claude-connector

Claude Desktop へのインストール(3 ステップ、設定ファイルの編集は不要)

  1. Cin7 API の認証情報を取得 — Cin7 Omni で:設定 (⚙) → 統合 → API v1 → API 接続を追加。これで API Username と API Key が発行されます(Basic 認証の認証情報であり、Cin7 のログイン情報ではありません)。Claude にアクセスさせたいモジュールへの権限をこの接続に付与してください — 権限のないモジュールは 403 を返します。

  2. ダウンロード dist/cin7-omni.mcpb — 1 つのファイル、約 150 KB。

  3. 開く — ファイルをダブルクリックするか(または Claude Desktop で:設定 → 拡張機能 → ファイルをドラッグ&ドロップ)、インストール をクリックします。プロンプトが表示されたら API Username と API Key を貼り付けます。キーはお使いのコンピュータのキーチェーンに保存され、ファイルに保存されることは決してありません。Claude を参照のみに制限したい場合は、読み取り専用モード のトグルもあります。

その後、Claude に 「Cin7 SalesOrders リソースを説明してください」 のような依頼をして、動作することを確認してください。

後で削除するには:Claude Desktop → 設定 → 拡張機能 → Cin7 Omni → アンインストール。

その他の実行方法

プリビルド済みの自己完結型サーバーもリポジトリに同梱されています(dist/index.js — すべての依存関係がバンドルされています)。クローンするだけで実行できるため、npm install もビルド手順も不要です。git pull で常に最新のテスト可能なビルドを入手できます。

git clone https://github.com/panagiotis1226/cin7-omni-mcp.git

ソースを自分で編集する場合のみ:npm install(自動ビルドされます)または npm run build で再ビルドしてください。

Claude Code:

claude mcp add cin7-omni \
  -e CIN7_API_USERNAME=YourApiUsername \
  -e CIN7_API_KEY=your-api-key \
  -- node /absolute/path/to/cin7-omni-mcp/dist/index.js

Claude Desktop (手動設定) — claude_desktop_config.json に追加します(設定 → 開発者 → 設定を編集):

{
  "mcpServers": {
    "cin7-omni": {
      "command": "node",
      "args": ["/absolute/path/to/cin7-omni-mcp/dist/index.js"],
      "env": {
        "CIN7_API_USERNAME": "YourApiUsername",
        "CIN7_API_KEY": "your-api-key"
      }
    }
  }
}

環境変数

変数

必須

説明

CIN7_API_USERNAME

はい

API 接続のユーザー名

CIN7_API_KEY

はい

API 接続のキー

CIN7_READ_ONLY

いいえ

true = 読み取りツールのみを登録(cin7_list/cin7_get/cin7_describe)

CIN7_BASE_URL

いいえ

API ベース URL を上書き(デフォルトは https://api.cin7.com/api)

書き込みアクセスの制御

2 つのレイヤー:

  1. Claude のツールごとの権限 — Claude が初めて cin7_create、cin7_update、cin7_delete、cin7_upload_product_image のいずれかを呼び出すと、プロンプトが表示され、ツールごとに 1 回だけ許可、常に許可、拒否 を選択できます(Claude Code では /permissions で管理します)。

  2. サーバー側のハードロック — CIN7_READ_ONLY=true を設定すると、書き込みツールは一切登録されません。

レート制限

Cin7 は 3 コール/秒、60 コール/分、5,000 コール/日 を強制します。サーバーは毎秒/毎分の制限内に収まるようリクエストをクライアント側でキューに入れ、429/5xx ではバックオフ付きで自動リトライします。そのため、複数ページにわたる大規模なスキャンは設計上遅くなります。呼び出しを最小限に抑えるには、where フィルター(例: modifiedDate>='...')と fields パラメータを使用してください。

プロンプトの例

  • 「CTS001 の在庫はブランチ全体でどれくらいありますか?」 → Stock に対して where: "code='CTS001'" を指定して cin7_list

  • 「今週出荷された $500 を超える受注を表示して」 → SalesOrders に対して where フィルターを指定して cin7_list

  • 「サプライヤー X 向けにこれらの明細で発注書を作成して…」 → PurchaseOrders を cin7_describe で確認してから cin7_create

  • 「Contact にはどのようなフィールドがありますか?」 → Contacts を cin7_describe

開発

npm test           # builds, then runs the stdio smoke test against a mock Cin7 API
npm run build:mcpb # rebuild + validate manifest + repack dist/cin7-omni.mcpb
npm run dev        # run from source with tsx

ビルドは同じソースから 2 つのバンドルを生成します:dist/index.js(ESM、クローンして実行する場合 / Claude Code 用)と server/index.cjs(CJS、.mcpb 拡張機能にパッケージ化されます)。

src/fieldReference.ts は、scripts/gen_fields.py によって Cin7 の公式 swagger 仕様から生成されます(作業ディレクトリに https://api.cin7.com/api/swagger/v1/swagger.json から取得した swagger.json が必要です)— Cin7 が API を更新した場合は再生成してください。

対象外

  • Cin7 Omni の webhook(プッシュ通知)— このサーバーはリクエスト/レスポンスのみです。

  • Cin7 が v1/v2 API で公開していないもの。

  • リモート/HTTP デプロイ — これはローカルの stdio サーバーです。streamable-HTTP エントリーポイントは後で追加できる可能性があります。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables Claude to interact with 1C:Enterprise via OData REST API, allowing natural language queries for inventory, orders, prices, and order creation.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to query and act on Simpro jobs, customers, quotes, and related data through natural language, with write operations off by default and a demo mode for trying without API credentials.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude users to query stock levels and purchase orders in a Cin7 Core account through read-only GET requests, including product availability, locations, on-order quantities, supplier due dates, and purchase order details.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude to access, analyze, and optionally modify invoices, installments, receipts, clients, and financial reports via the Fatture in Cloud API v2, with read-only default and multi-layer safety.
      17
      1
      MIT