Get the FREE Ultimate OpenClaw Setup Guide →

mailjet

Model Context Protocol server implementation of Mailjet's APIs

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mailgun-mailjet-mcp-server node CHANGE/THIS/PATH/TO/mailjet-mcp-server/src/mailjet-mcp.js \
  --env MAILJET_API_KEY="YOUR_api_key:YOUR_secret_key" \
  --env MAILJET_API_REGION="eu"

How to use

This MCP server exposes a Mailjet-integrated tool interface that lets AI agents interact with Mailjet APIs (contacts, campaigns, segmentation, statistics, workflows, and more) through a standardized tool protocol. After running the server, configure Claude Desktop (or any compatible agent) to point to the server using the provided Node.js entry point and the environment variable for authentication. The server reads your Mailjet credentials from the MAILJET_API_KEY (and optionally MAILJET_API_REGION) environment variables so that requests are authenticated against your Mailjet account. Tools in Claude will be able to invoke operations like listing contacts, creating campaigns, retrieving delivery statistics, and managing segments, all through a consistent tool wrapper.

To use the server locally, ensure the Node.js process is running with the correct path to the mailjet-mcp.js file and that the required environment variable is set. In Claude, add or update the MCP configuration to reference the server name (mailjet) and the node-based entry point. The configuration snippet in your setup should resemble the example in the README, with the proper path substituted for the mailjet-mcp.js file. The environment block should include your Mailjet API credentials and an optional region setting if you operate outside the default region.

How to install

Prerequisites:

  • Node.js (and npm/yarn/pnpm as preferred)
  • Access to the repository (git)
  • Mailjet account with API credentials

Step-by-step installation:

  1. Clone the repository: git clone https://github.com/mailgun/mailjet-mcp-server.git cd mailjet-mcp-server

  2. Install dependencies (pnpm is used in the project examples): pnpm install

  3. Ensure you have your Mailjet API credentials. You will set these in the environment when running the server or via the MCP configuration (MAILJET_API_KEY, and optionally MAILJET_API_REGION).

  4. Start the MCP server using Node.js with the correct entry point (as per the README example): node src/mailjet-mcp.js

  5. If you are configuring via MCP config, create the JSON structure (as in mcp_config) and load it into your CLI/agent setup to register the server under the name "mailjet."

Additional notes

Tips and notes:

  • The server runs as a standard Node.js process and communicates via stdio for MCP tool interactions.
  • Always protect your MAILJET_API_KEY; do not commit it to version control.
  • If you operate in the EU or another region, set MAILJET_API_REGION to the appropriate value (e.g., 'eu').
  • If you encounter connectivity or authentication errors, verify that the API key format is correct and that the region matches your Mailjet account settings.
  • The README shows a sample command path; ensure you replace it with the actual absolute path to mailjet-mcp.js in your environment.
  • For troubleshooting, consult the Model Context Protocol debugging guidelines referenced in the project docs.

Related MCP Servers

Sponsor this space

Reach thousands of developers