自然言語を使用してIterableのデータと対話し、キャンペーンの照会、テンプレートの管理、メッセージの送信をAIクライアントから行えるようにします。
別名 Iterable/mcp-server, @iterable/mcp
- スター
- 15
- ツール
- —
- ダウンロード数(30日間)
- 13,779
- 最新バージョン
- —
- 最終コミット
- 2026年11月6日
- ライセンス
- MIT
Iterable MCPとは
IterableはMCPサーバーです。 自然言語を使用してIterableのデータと対話し、キャンペーンの照会、テンプレートの管理、メッセージの送信をAIクライアントから行えるようにします。.
プロジェクトのREADMEから生成された概要
Iterable MCP server について
このMCP serverは、開発者やマーケターが自然言語を通じてマーケティングオートメーションや顧客エンゲージメントデータを管理することを可能にします。Claude Desktop、Cursor、Windsurfなどのクライアントに接続することで、Iterableのダッシュボードを直接操作することなく、キャンペーンの照会、テンプレートの確認、ユーザーリストの管理が行えます。このサーバーは、テキストによる指示をAPIコールに変換するブリッジとして機能し、迅速なデータ取得とリソース管理を実現します。
セットアップにはNode.jsとIterableのAPIキーが必要です。サーバーはデフォルトで、データの変更を防ぐ安全な読み取り専用モードで動作します。より高度なタスクを実行するには、設定プロセス中にUser PII、Writes、またはSendsの権限を明示的に有効にする必要があります。これにより、AIがキャンペーンの作成、テンプレートの更新、あるいはメール、SMS、プッシュ通知、WhatsAppを通じたメッセージの送信といったアクションを実行できるようになります。また、組み込みのキー管理コマンドを使用して、ステージングや本番環境など、異なる環境ごとに複数のAPIキーを管理できます。
できること
- 1キャンペーンパフォーマンスの照会最近のマーケティング施策の詳細やキャンペーン数について、AIクライアントに質問できます。
- 2メールテンプレートの管理既存のテンプレート一覧を取得したり、自然言語を使用して新しいテンプレートの作成を依頼したりできます。
- 3メッセージ配信の自動化特定のキャンペーンやジャーニーをトリガーして、さまざまなチャネルを通じてユーザーにリーチします。
- 4ユーザーデータの監査特定のユーザーイベントの検索や、特定のセグメント内のメンバーリストの取得が可能です。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Iterable MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにIterable MCPをインストール
$ claude mcp add mcp-server -- npx -y @iterable/mcpCursorにIterable MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@iterable/mcp"
]
}
}
}VS CodeにIterable MCPをインストール
.vscode/mcp.json
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@iterable/mcp"
]
}
}
}VS Code CLIにIterable MCPをインストール
$ code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@iterable/mcp"]}'Claude DesktopにIterable MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@iterable/mcp"
]
}
}
}CodexにIterable MCPをインストール
$ codex mcp add mcp-server -- npx -y @iterable/mcpCodex config.tomlにIterable MCPをインストール
~/.codex/config.toml
[mcp_servers.mcp-server] command = "npx" args = ["-y", "@iterable/mcp"]
Gemini CLIにIterable MCPをインストール
$ gemini mcp add -s user mcp-server npx -- -y @iterable/mcpGemini settings.jsonにIterable MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@iterable/mcp"
]
}
}
}設定
ITERABLE_API_KEYITERABLE_BASE_URLITERABLE_MCP_NODE_PATHITERABLE_MCP_NPX_PATH
| 名前 | 説明 | 種類 |
|---|---|---|
| ITERABLE_API_KEY | — | |
| ITERABLE_BASE_URL | — | |
| ITERABLE_MCP_NODE_PATH | — | |
| ITERABLE_MCP_NPX_PATH | — |
自動チェック
実行日 2026年11月13日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能合格
- オープンソースライセンス (OSI)合格
- 過去1年以内にコミットまたはリリースあり合格
- パッケージ名が有名なパッケージに酷似していない合格
- リモートエンドポイントがHTTPSを使用未チェック
- 破壊的なツールがラベル付けされている未チェック
- モデルへの隠れた指示がない合格
- パッケージおよびその依存関係に重大な勧告なし未チェック
README
GitHubで見るIterable MCP Server
Talk to your Iterable data using natural language. Ask questions or give instructions like "How many campaigns did we send last week?", "Show me my most recent templates", or "Build me a beautiful email template that does the following..." and get instant answers without writing code or navigating dashboards.
Supported AI clients:
What is MCP?
Model Context Protocol (MCP) is an open standard that lets AI assistants securely connect to external tools and APIs. This server acts as a bridge between your AI client and Iterable, translating natural language requests into safe API calls.
Installation
Prerequisites:
- Node.js >= 20 (v22 LTS recommended)
- An Iterable API key
npx @iterable/mcp setup
To always use the latest version (auto-update on each restart), add --auto-update:
npx @iterable/mcp setup --auto-update
By default, the setup wizard configures the server in a safe, read‑only mode (no PII tools, no writes, no sends). To selectively enable elevated capabilities during setup, pass --advanced:
# Example: enable advanced setup to configure permissions
npx @iterable/mcp setup --advanced
What you'll choose (optional):
- User PII (
ITERABLE_USER_PII): access user profile data, including email addresses, phone numbers, and custom data fields. - Writes (
ITERABLE_ENABLE_WRITES): create, update, and delete resources such as templates, lists, catalogs, campaigns, snippets, and user profiles. - Sends (
ITERABLE_ENABLE_SENDS): send messages (email, SMS, push, in-app, WhatsApp), trigger campaigns and journeys, schedule and abort campaigns, and track events. Requires writes to be enabled. Note: creating a blast campaign will schedule it for delivery, matching the behavior of the underlying Iterable API; there is no way to create a draft campaign. If you only need to draft content, you can do so with sends disabled by working with templates instead.
IMPORTANT: Enabling writes and sends allows the AI agent to take real, potentially irreversible actions against your Iterable project, including sending messages to real users and deleting data. If you do not have the technical knowledge to properly review the agent's tool calls before they are executed, you should avoid enabling these flags, especially in production environments. It is entirely your choice to accept this risk. If you enable these capabilities, it is your responsibility to carefully review each action before allowing the agent to proceed.
Note that permission settings are saved per key (see key management section below), allowing you to enable different permissions for different projects, e.g. only enable writes and sends for a sandbox project and disable them in production.
What you can do
See the available tools for all tools with descriptions. All tools map directly to Iterable API endpoints.
Try these prompts:
- "Get details on campaign 12345"
- "What email templates are available?"
- "Show me all my product catalogs"
- "What journeys are currently active?"
- "Show me events for user@example.com from the last 30 days"
- "Create a campaign called 'Holiday Sale' using template 456"
- "Export all user data from January 2024"
- "List users in my 'VIP Customers' list"
API Key Management
Key Storage:
API keys are stored in the ~/.iterable-mcp/keys.json file and managed via the npx @iterable/mcp keys commands. On macOS the actual API key values are stored in the system Keychain. On Windows, API key values are encrypted using the Windows Data Protection API (DPAPI). On Linux, the API key values are stored directly in the file with restricted permissions (0o600).
Each key is tied to its API endpoint (US, EU, or custom) and to its permissions (view PII, write operations, send messages).
How Key Selection Works:
- You can store multiple API keys with different names (e.g., "production", "staging", "dev")
- Only ONE key is marked as active at a time
- The MCP server automatically uses whichever key is currently active
- Your first key is automatically set as active
- Switch between keys using the
activatecommand - After
keys activate, restart your AI client (or reload its MCP servers) so the Iterable MCP process picks up the new active key. Some clients may require fully quitting and reopening the application.
# List stored keys (shows which one is active with ● ACTIVE badge)
npx @iterable/mcp keys list
# Add a new key (interactive: prompts for name, region/endpoint, and API key)
# Your first key becomes active automatically
# Uses secure defaults: PII, writes, and sends disabled
npx @iterable/mcp keys add
# Add a key and choose permissions (PII / writes / sends) interactively
npx @iterable/mcp keys add --advanced
# Switch to a different key by name or ID (also switches endpoint)
npx @iterable/mcp keys activate production
npx @iterable/mcp keys activate staging
# Update an existing key (interactive: prompts for new name/endpoint/API key)
# Without --advanced, existing permissions are left unchanged
npx @iterable/mcp keys update <name-or-id>
# Update a key and change its permissions (required to enable PII / writes / sends)
npx @iterable/mcp keys update <name-or-id> --advanced
# Delete a key by ID (requires ID for safety)
# Note: Cannot delete the currently active key - activate another first
npx @iterable/mcp keys delete <key-id>
Permissions: By default, keys add and keys update do not prompt for elevated permissions. New keys get secure defaults (PII, writes, and sends disabled); updates keep the key's current permissions. Pass --advanced to choose User PII, Writes, and/or Sends for that key (same options and risks as setup --advanced).
Advanced setup
Prefer a global install?
If you'd rather not use npx, you can install globally. This lets you use iterable-mcp as a shorthand for npx @iterable/mcp.
pnpm add -g @iterable/mcp
iterable-mcp setup
Note: The setup command automatically configures the correct command path.
Claude Code
The setup --claude-code command automatically configures Claude Code by running claude mcp add for you.
Alternatively, you can configure it manually:
# Add your API key first (see API Key Management section above)
npx @iterable/mcp keys add
# Then configure Claude Code
claude mcp add iterable -- npx -y @iterable/mcp
# Verify it was added
claude mcp list
If you have already configured Claude Desktop successfully, you can run this command to copy your MCP server settings to Claude Code:
claude mcp add-from-claude-desktop
Note: All of the above claude mcp commands will save the settings to ~/.claude.json, which makes the configured MCP servers available across all projects. For shared, project-specific MCP configs, create a .mcp.json file in the root of your project.
For more information, see the Claude Code MCP documentation.
Manual configuration (Cursor, Claude Desktop, Windsurf, Gemini CLI & Antigravity)
The above commands will automatically configure your AI tool to use the MCP server by editing the appropriate configuration file, but you can also manually edit the appropriate configuration file:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor:
~/.cursor/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json - Antigravity:
~/.gemini/antigravity/mcp_config.json - Gemini CLI:
~/.gemini/settings.json
All five use the same configuration format:
Recommended: Using key manager:
# First, add your API key (interactive prompts)
npx @iterable/mcp keys add
Then edit your config file:
{
"mcpServers": {
"iterable": {
"command": "npx",
"args": ["-y", "@iterable/mcp"]
}
}
}
No env section needed - API key and base URL are loaded automatically.
Alternative: Environment variables:
{
"mcpServers": {
"iterable": {
"command": "npx",
"args": ["-y", "@iterable/mcp"],
"env": {
"ITERABLE_API_KEY": "your-iterable-api-key-here",
"ITERABLE_BASE_URL": "https://api.iterable.com"
}
}
}
}
Using custom Node/NPX paths
If you need to use a custom path to node or npx (for example, if they are not in your PATH), you can set environment variables before running the setup command:
# Set custom paths
export ITERABLE_MCP_NODE_PATH="/path/to/custom/node"
export ITERABLE_MCP_NPX_PATH="/path/to/custom/npx"
# Then run setup
npx @iterable/mcp setup --cursor
Alternatively, you can manually edit your configuration file (after adding your key):
{
"mcpServers": {
"iterable": {
"command": "/custom/path/to/npx",
"args": ["-y", "@iterable/mcp"]
}
}
}
No env section is needed if using the key manager.
Environment variables
Variables marked as managed are automatically configured by the key manager. They take precedence over environment variables when both are present. Setting environment variables directly is useful for CI/CD pipelines, Docker containers, or other non-interactive environments where the key manager isn't available.
| Variable | Managed | Description |
|---|---|---|
ITERABLE_API_KEY |
✅ | Your Iterable API key. Required if not using key manager |
ITERABLE_BASE_URL |
✅ | Base URL for the Iterable API (default: https://api.iterable.com) |
ITERABLE_USER_PII |
✅ | Set to true to enable tools that access user PII data (default: false) |
ITERABLE_ENABLE_WRITES |
✅ | Set to true to enable tools that perform write operations (default: false) |
ITERABLE_ENABLE_SENDS |
✅ | Set to true to enable tools that can send messages (default: false). Requires writes to be enabled |
ITERABLE_DEBUG |
Set to true for API request logging |
|
LOG_LEVEL |
Set to debug for troubleshooting |
|
ITERABLE_UI_THEME |
Force terminal color theme: dark or light (auto-detected by default) |
Custom endpoints
- The CLI supports selecting the US or EU region, or entering a custom endpoint.
- For security, HTTPS is required for custom endpoints. The only exception is localhost development:
- Allowed:
http://localhost:3000,http://127.0.0.1:8080,http://[::1]:4000 - Not allowed: plain
http://on non-local hosts (usehttps://instead)
- Allowed:
- When a non-
*.iterable.comdomain is provided, the CLI will ask for confirmation.
Troubleshooting
- Claude CLI missing: install
claudeCLI, then re-runnpx @iterable/mcp setup --claude-code. - macOS Keychain issues: Ensure Keychain is accessible and re-run setup if needed.
Client-specific limitations
Tool limits (Windsurf & Antigravity)
Windsurf (100-tool limit) and Antigravity each allow at most 100 tools per MCP server. Enabling all permissions (PII, writes, and sends) can push this server over that limit. If tools fail to load, restrict permissions with keys add --advanced / keys update --advanced (for example, leave sends disabled). See Installation for what each permission enables and the associated risks, and TOOLS.md for the current tool list.
Contributing
See the contributing guidelines for development setup, building from source, and running tests.
Security
See the security policy for reporting vulnerabilities.
Beta Feature Reminder
Iterable's MCP server is currently in beta. MCP functionality may change, be suspended, or be discontinued at any time without notice. This software is provided "as is" and is open source and ready for you to experiment with. For more information, refer to Iterable Beta Terms.
License
This project is licensed under the MIT License. See the license for details.
Iterable MCPのよくある質問
Iterable MCPをClaude Codeに追加するには
ターミナルでclaude mcp add mcp-server -- npx -y @iterable/mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Iterable MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Claude Codeで使用できますか?
はい、Claude Codeを自動的に設定するための専用セットアップコマンドが用意されています。