# mailgun-mcp-server

> MCP Server

This repository provides a Model Context Protocol (MCP) server for Mailgun, enabling AI clients like Claude Desktop to interact with Mailgun for tasks such as sending emails and fetching statistics.

## Overview

- **Category:** Communication
- **Language:** JavaScript
- **Stars:** 58
- **Forks:** 0
- **Owner:** mailgun
- **GitHub:** https://github.com/mailgun/mailgun-mcp-server
- **Created:** 2025-03-17T19:36:31+00:00
- **Updated:** 2025-03-26T17:28:38+00:00
- **Source:** https://model-context-protocol.com/servers/mailgun-api-model-context-protocol-server

## Setup

## Setup

1.  Clone the repository:

    ```bash
    git clone https://github.com/mailgun/mailgun-mcp-server.git
    cd mailgun-mcp-server
    ```

2.  Install dependencies and build:

    ```bash
    npm install
    ```

3.  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`

    Add the following configuration:
    ```json
    {
        "mcpServers": {
            "mailgun": {
                "command": "node",
                "args": ["CHANGE/THIS/PATH/TO/mailgun-mcp-server/src/mailgun-mcp.js"],
                "env": {
                    "MAILGUN_API_KEY": "YOUR-mailgun-api-key"
                }
            }
        }
    }
    ```

## Tools

## Available Tools

1.  Send an Email (Allows sending emails via Mailgun using Claude).
2.  Fetch and Visualize Sending Statistics (Enables fetching and visualizing email delivery statistics).

