
mailgun/mailjet-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MailjetのAPIのモデルコンテキストプロトコルサーバ実装
概要
このプロジェクトは、Mailjet API 用のモデルコンテキストプロトコル (MCP) サーバーを提供し、互換性のある AI エージェント (Claude Desktop など) を使用して、Mailjet の連絡先、キャンペーン、セグメンテーション、統計、ワークフロー (およびその他) API と標準化されたツール インターフェイスでやり取りします。 NPM でプロジェクトが実行でき、NPX で実行できます。 ローカルでサーバーを開始するには、次のコマンドを実行するだけです。 ほとんどの場合、AIデスクトップアプリを利用して、Mailjet MCPを直接リンクすることができます。 この場合、次の MCP 設定を追加してください。 設定ファイルの作成または変更: - MacOS: ~/ Library/Application Support/Claude/claude desktop config.json - Windows: %APPDATA%/Claude/claude desktop config.json サーバがサポートしている環境変数は以下の通りです。 MCPの特長 インスペクタは、ツールをリストし、それらを呼び出して、生のプロトコルメッセージを読むことを可能にします。 サーバは stdio 上で通信するので、Inspector が起動します。 実行:
概要(AI 翻訳)
概要
このプロジェクトは、Mailjet API 用のモデルコンテキストプロトコル (MCP) サーバーを提供し、互換性のある AI エージェント (Claude Desktop など) を使用して、Mailjet の連絡先、キャンペーン、セグメンテーション、統計、ワークフロー (およびその他) API と標準化されたツール インターフェイスでやり取りします。
クイックスタート
##NPXによる実行
NPM でプロジェクトが実行でき、NPX で実行できます。
ローカルでサーバーを開始するには、次のコマンドを実行するだけです。
ほとんどの場合、AIデスクトップアプリを利用して、Mailjet MCPを直接リンクすることができます。 この場合、次の MCP 設定を追加してください。
手動インストール
-
リポジトリのクローン化:
-
依存関係をインストールし、ビルドします。
-
Claudeデスクトップの設定:
設定ファイルの作成または変更:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - ウィンドウ:
%APPDATA%/Claude/claude_desktop_config.json
MCP サーバーを起動します。
次の設定を追加します。
サポートされている環境変数
サーバがサポートしている環境変数は以下の通りです。
テスト
ローカルテストスイートを実行します。
##MCPインスペクタでサーバーを調べる
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Mailjet MCP Server
Overview
This project provides a Model Context Protocol (MCP) server for the Mailjet API, enabling compatible AI agents (e.g. Claude Desktop) to interact with Mailjet’s contact, campaign, segmentation, statistics, workflow (and more) APIs through a standardized tool interface.
Quick Start
Execution through NPX
The project is available on NPM and can be executed through NPX.
In order to start the server locally, simply run the following command:
MAILJET_API_KEY="YOUR_api_key:YOUR_secret_key" npx mailjet-mcp-server
Most of the time, you can choose to take advantage your AI desktop app and link Mailjet MCP directly to it. In this case please add the following MCP config:
"mcpServers": {
"mailjet": {
"command": "npx",
"args": [
"-y",
"@mailjet/mailjet-mcp-server"
],
"env": {
"MAILJET_API_KEY": "YOUR_api_key:YOUR_secret_key"
}
}
}
Manual Installation
-
Clone the repository:
git clone https://github.com/mailgun/mailjet-mcp-server.git cd mailjet-mcp-server -
Install dependencies and build:
pnpm install -
Configure Claude Desktop:
Create or modify the config file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
- MacOS:
Then start the MCP server:
node src/mailjet-mcp.js
Add the following configuration:
{
"mcpServers": {
"mailjet": {
"command": "node",
"args": ["CHANGE/THIS/PATH/TO/mailjet-mcp-server/src/mailjet-mcp.js"],
"env": {
"MAILJET_API_KEY": "YOUR_api_key:YOUR_secret_key"
}
}
}
}
Supported environment variables
The following environment variables are currently supported by the server:
MAILJET_API_KEY="your_api_key:your_secret_key" # REQUIRED, used for authenticating your account
MAILJET_API_REGION="eu" # OPTIONAL, used to change to the EU servers, if desired
Testing
Run the local test suite with:
NODE_ENV=test pnpm test
Inspecting the server with MCP Inspector
MCP Inspector lets you list the tools, call them and read the raw protocol messages.
The server communicates over stdio, so the Inspector starts it for you. Run:
MAILJET_API_KEY="YOUR_api_key:YOUR_secret_key" pnpm inspect
インストール
npx -y @mailjet/mailjet-mcp-server設定
"mcpServers": {
"mailjet": {
"command": "npx",
"args": [
"-y",
"@mailjet/mailjet-mcp-server"
],
"env": {
"MAILJET_API_KEY": "YOUR_api_key:YOUR_secret_key"
}
}
}