Summary
What is the Mailjet MCP server
The Mailjet MCP the AI assistant Claude Desktop read Mailjet data from your account using your API key. Once it is set up, you can ask Claude for campaign performance, contact lists or statistics and it will fetch the information through the Mailjet API.
MCP (Model Context Protocol) is a way for AI tools to connect to external services. The Mailjet MCP server is a small service that runs on your computer and exposes Mailjet APIs to Claude. This allows Claude to answer questions using live data from your Mailjet account.
What you need before you start
This setup asks a non technical user to do a few technical things. To make it easier, we will show the tools you need and how to install them.
- Mailjet account with an active API key and secret key
- Claude Desktop installed
- Git to download the Mailjet MCP server from GitHub
- Node.js to run the MCP server
- pnpm to install the MCP server files
- Permission to edit Claude Desktop configuration
How to check or install Git
Mailjet MCP uses Git to download the project files from our official GitHub repository. Git is common on developer machines but many computers already have it. Check first before installing anything.
Check if Git is installed
Mac
- Open Terminal (Command + Space, type “Terminal,” press Enter).
- Type
git --versionand press Enter. - If you see something like
git version 2.39.3, Git is installed. You can move to Step 1: Download the project. -
If macOS asks to install Command Line Tools, click Install and follow the steps.
Windows
- Open Command Prompt (Start, type “cmd,” press Enter).
- Type
git --versionand press Enter. - If you see a version number, Git is installed.
- If you see an error saying the command is not recognized, install Git using the steps below.
Install Git
- Go to https://git-scm.com/downloads.
- Download the version for your operating system.
- Run the installer and keep the default settings.
- Open Terminal or Command Prompt again and run
git --versionto confirm it worked.
How to install Node.js and pnpm
The Mailjet MCP server is a small JavaScript program. Your computer needs Node.js so it can run that program. You also need pnpm, which is a helper tool that downloads the extra files the program needs.
Install Node.js (Mac and Windows)
- Go to https://nodejs.org/.
-
Choose the LTS (Long-Term Support) version.
LTS is the stable release that most projects are tested with. Using LTS lowers the chance of errors when you run the Mailjet MCP server. - Download the installer for your system and run it.
- Keep the default settings and finish the installation.
- Open Terminal (Mac) or Command Prompt (Windows).
-
Type:
node -v
You should see a version number, such as
v20.x.x.Seeing a version number means Node.js is installed correctly. You do not need to do anything else with it.
Install pnpm
-
In the same Terminal or Command Prompt window, type:
npm install -g pnpm
-
Then check it:
pnpm -v
A version number here means pnpm is ready to install the Mailjet MCP server in the next step.
Step 1. Download the project
You will download the Mailjet MCP server from the official GitHub repository and move into that folder.
- Open Terminal (Mac) or Command Prompt (Windows).
-
Run:
git clone https://github.com/mailgun/mailjet-mcp-server.git cd mailjet-mcp-server
The first command downloads the MCP server into a new folder. The second command moves you into that folder so the next commands work.
Step 2. Install the dependencies
Next, install the packages the server needs.
pnpm install
Step 3. Start (turn on) the MCP server
This step starts the Mailjet MCP program so that Claude can connect to it.
- Make sure you are still inside the
mailjet-mcp-serverfolder. -
Run:
node src/mailjet-mcp.js
This launches the Mailjet MCP server on your computer. You may see a few lines of text. That means it is running.
Step 4. Connect Claude Desktop
Claude Desktop uses a JSON configuration file to know which MCP servers to load. Add the Mailjet MCP server there so Claude can find it.
Mac configuration
1. Open this file:
~/Library/Application Support/Claude/claude_desktop_config.json
2. Add this block to the file (merge with your current mcpServers section if it exists):
{
"mcpServers": {
"mailjet": {
"command": "node",
"args": ["/YOUR/PATH/mailjet-mcp-server/src/mailjet-mcp.js"],
"env": {
"MAILJET_API_KEY": "YOUR_public_key:YOUR_private_key"
}
}
}
}
3. Replace /YOUR/PATH/... with the real path on your Mac to mailjet-mcp-server/src/mailjet-mcp.js.
4. Replace YOUR_public_key:YOUR_private_key with your Mailjet API key and secret key separated by a colon.
1234567890abcdef:abcdef1234567890
5. Save the file and restart Claude Desktop.
Windows configuration
1. Open this file:
%APPDATA%/Claude/claude_desktop_config.json
2. Add this block:
{
"mcpServers": {
"mailjet": {
"command": "node",
"args": ["C:\\PATH\\TO\\mailjet-mcp-server\\src\\mailjet-mcp.js"],
"env": {
"MAILJET_API_KEY": "YOUR_public_key:YOUR_private_key"
}
}
}
}
3. Replace C:\PATH\TO\... with the folder where you cloned the project.
4. Keep the backslashes in Windows paths. If your editor complains, escape them as \\.
5. Save the file and restart Claude Desktop.
Environment variables
The Mailjet MCP server supports the following environment variables.
| Variable | Required | Description | Example |
|---|---|---|---|
MAILJET_API_KEY |
Yes | Mailjet public and private keys joined with a colon | publickey123:secretkey456 |
MAILJET_API_REGION |
No | Use EU Mailjet servers | eu |
You can define these in your system or directly in the Claude configuration in the env section.
Testing the setup
The project includes a local test suite. To run it:
NODE_ENV=test pnpm test
If the tests pass without errors, your installation is working.
Troubleshooting
-
Claude does not show Mailjet tools
Check that the path inclaude_desktop_config.jsonpoints to your realmailjet-mcp-server/src/mailjet-mcp.jsfile. Restart Claude. -
Authentication error
Make sure the API value uses the formatPUBLIC_KEY:PRIVATE_KEY. If the colon is missing, authentication fails. -
Server closes immediately
Runnode src/mailjet-mcp.jsfrom inside themailjet-mcp-serverfolder. -
EU account not loading
SetMAILJET_API_REGION=euin your environment or in theenvsection of the Claude config entry.
Using Mailjet MCP in Claude Desktop
Once the MCP server is running and Claude Desktop has restarted, you can start using it.
- Open Claude Desktop.
- Ask a Mailjet related question, for example: Which of my contact lists has the most subscribers.
- Claude will detect that it needs to contact Mailjet and will show a box similar to: Claude wants to use Get v3 liststatistics from mailjet.
-
You will see buttons such as Deny, Allow once, and Always allow.
- Allow once lets Claude make this single request to Mailjet now.
- Always allow tells Claude it can use the Mailjet MCP server for future requests without asking again.
- Deny blocks the request and Claude will not get Mailjet data.
- Choose Allow once if you just want to test the configuration
- Choose Always allow if you want to allow Claude to run the request each time without having to re-request permission.
-
After you allow the request, Claude will call the Mailjet MCP server, get the data and respond with the result, for example a list of your contact lists and their subscriber counts.