mindbox-mcp
@theyahia/mindbox-mcp
Mindbox CDP API 用のMCPサーバー — 顧客プロフィール、注文、セグメント、商品リスト、および任意の操作。
機能
Mindbox API を操作するための6つのツール
トランスポート: stdio(デフォルト)および Streamable HTTP(
--http)Claude Desktop、Claude Code、Cursor、Smithery との互換性
backoff と冪等性(
transactionId)を備えたリトライ、HTTPトランスポートの保護一般的なシナリオを自動化するためのスキル
Related MCP server: Constant Contact MCP Server
インストール
Claude Desktop
{
"mcpServers": {
"mindbox": {
"command": "npx",
"args": ["-y", "@theyahia/mindbox-mcp"],
"env": {
"MINDBOX_API_KEY": "ваш_ключ",
"MINDBOX_ENDPOINT_ID": "ваш_endpoint_id"
}
}
}
}Claude Code
claude mcp add mindbox -e MINDBOX_API_KEY=ваш_ключ -e MINDBOX_ENDPOINT_ID=ваш_endpoint_id -- npx -y @theyahia/mindbox-mcpStreamable HTTP
MINDBOX_API_KEY=ваш_ключ MINDBOX_ENDPOINT_ID=ваш_endpoint_id npx @theyahia/mindbox-mcp --http
# MCP endpoint: http://127.0.0.1:3000/mcp
# Health check: http://127.0.0.1:3000/healthデフォルトではサーバーは 127.0.0.1 をリッスンします(セキュリティ セクションを参照)。ポートは PORT、ホストは HOST で指定します。
Docker(HTTP)
docker build -t mindbox-mcp .
docker run --rm -p 3000:3000 \
-e MINDBOX_API_KEY=ваш_ключ -e MINDBOX_ENDPOINT_ID=ваш_endpoint_id \
-e MINDBOX_HTTP_ALLOWED_HOSTS=ваш-домен:3000 \
mindbox-mcpコンテナは 0.0.0.0:3000 をリッスンします。リバースプロキシの背後に配置する場合は、DNSリバインディング保護のため、MINDBOX_HTTP_ALLOWED_HOSTS に自分のホストを追加してください。
Smithery
smithery.yaml ファイルが含まれています。必須パラメータ: MINDBOX_API_KEY、MINDBOX_ENDPOINT_ID。
認証とエンドポイント
認証ヘッダー: Authorization: Mindbox secretKey="..."。
リクエストは POST https://api.mindbox.ru/v3/operations/{sync|async}?endpointId=…&operation=… に送信されます:
sync — 応答を伴う操作(顧客プロフィール、セグメント、注文作成、商品リスト)。デフォルトで使用されます。
async — fire-and-forget イベント(閲覧、カート追加)。
run_operationでmode: "async"により利用可能です。
操作のシステム名(
operation)は 各 Mindbox プロジェクトで設定 されます — これは汎用的な組み込みメソッドではありません。Website.GetCustomerInfoなどのデフォルトは一般的な慣例に過ぎません。プロジェクト管理者が一致するシステム名で操作を作成する必要があります。そうしないと Mindbox はProtocolErrorを返します。
環境変数
変数 | 必須 | 説明 |
| はい | Mindbox API シークレットキー( |
| はい | 統合ポイントID(endpointId) |
| いいえ | HTTPサーバーのポート(デフォルト: 3000) |
| いいえ | HTTPバインドホスト(デフォルト: 127.0.0.1) |
| いいえ |
|
| いいえ | DNSリバインディング保護用の追加許可 |
| いいえ | 追加許可 |
| いいえ |
|
| いいえ | 429/5xx/タイムアウト時のリトライ回数(デフォルト: 3) |
| いいえ | backoff の基本遅延(ms)(デフォルト: 500) |
| いいえ | 1回の試行のタイムアウト(ms)(デフォルト: 15000) |
ツール(6)
ツール | 説明 |
| email/電話/ID による顧客プロフィールの取得 |
| 顧客への紐付けを伴う注文の作成 |
| 顧客セグメントの取得 |
| 商品リストの取得 |
| 顧客プロフィールの更新 |
| ⚠️ Mindbox API の任意の操作の実行(セキュリティ を参照) |
セキュリティ
run_operationは、あなたのシークレットキーを使用して Mindbox の 任意の 操作を実行し、データを変更する可能性があります。信頼できないエージェントシナリオでは、これはプロンプトインジェクションのベクトルとなります。呼び出しは stderr にログ記録されます。完全に無効化するにはMINDBOX_ALLOW_RAW=0を設定します。HTTPトランスポート には、オプションの
MINDBOX_HTTP_TOKENを除き、組み込みの認証はありません。サーバーはデフォルトで127.0.0.1をリッスンし、DNSリバインディング保護(Host/Originの検証)が有効で、CORS*は/healthでのみ許可されています。リモートアクセスには、認証付きリバースプロキシの背後に配置し、必要がない限りポートを外部に公開しないでください。シークレットキーはサーバー側でのみ使用され、ブラウザに渡してはなりません。
スキル
スキル | 説明 | トリガー |
| Mindbox での顧客検索 | "Mindbox で顧客を検索" |
| セグメント統計 | "セグメント統計" |
リクエスト例
Найди клиента с email user@example.com
Создай заказ для клиента с телефоном +7900...
Какие сегменты у клиента user@example.com?
Покажи список товаров
Обнови имя клиента с ID 12345
Выполни операцию Custom.GetData с телом {"key": "value"}トラブルシューティング
症状 | 原因と解決策 |
|
|
|
|
| 操作のシステム名が Mindbox プロジェクトで設定されていません。一致する |
|
|
HTTP | DNSリバインディング保護が作動しました。 |
開発
npm install # установка + сборка (prepare)
npm run dev # stdio
npm run dev:http # HTTP на порту 3000
npm test # Vitest
npm run typecheck # tsc --noEmit
npm run lint # ESLintCONTRIBUTING.md を参照してください。
ライセンス
MIT
Available Tools
6 toolscreate_orderB
Создание заказа в Mindbox с привязкой к клиенту.
Inputs: lines (required), order_id (required), total_price (required), operation, +3 more.
get_customerA
Получение профиля клиента из Mindbox по email, телефону или ID.
Inputs: email, phone, operation, external_id.
get_product_listC
Получение списка товаров из Mindbox.
Inputs: page, operation, page_size.
get_segmentsC
Получение сегментов клиента в Mindbox.
Inputs: email, phone, operation, external_id.
run_operationA
⚠️ ОПАСНО: выполнение ПРОИЗВОЛЬНОЙ операции Mindbox API под секретным ключом. Может изменять данные. Отключается через MINDBOX_ALLOW_RAW=0.
Inputs: operation (required), body, mode.
update_customerC
Обновление профиля клиента в Mindbox.
Inputs: email, phone, last_name, operation, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct function: customer profile retrieval/update, order creation, segments lookup, product list, and a raw operation escape hatch. No two tools seem to overlap, and the dangerous run_operation is clearly separated by its warning.
All tools follow a consistent snake_case verb_noun pattern (get_customer, create_order, get_segments, get_product_list, update_customer, run_operation). This is predictable and easy for an agent to parse.
With 6 tools, the set is well-scoped for a CRM/ecommerce integration. It covers core customer and order operations without unnecessary bloat, making it easy to navigate.
The set covers customer retrieval/update, order creation, segments, and products, but lacks explicit order retrieval or listing, and there is no direct customer creation. However, the run_operation tool provides a raw API fallback, mitigating some gaps, though it introduces risk.
Maintenance
Related MCP Connectors
Authenticated MCP access to WebMoney wallets, transactions, messages and invoices.
Mailchimp MCP Pack — manage audiences, campaigns, and members via Mailchimp Marketing API.
Send transactional email and manage domains, audiences, and broadcasts from any MCP client.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseCqualityCmaintenanceMCP server for MoySklad (МойСклад) warehouse and CRM management API. 21 tools covering the full order lifecycle: products, stock, counterparties, customer orders, shipments, supplies, warehouses, organizations, reports, and webhooks.6071 npm10MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to the Constant Contact API v3 for email marketing, campaign management, contact management, analytics, and automation through MCP tools.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables managing Ozon Seller and Performance APIs through MCP, covering products, stocks, prices, orders, finance, analytics, advertising, reviews, and chat operations.MIT
- AlicenseAqualityDmaintenanceEnables managing Kontur.Elba data through the official Public API, including organizations, bank accounts, counterparties, products, documents, invoices, and public links via MCP tools.48 npmMIT