Mailgun MCP Server

Apache 2.0
6
  • Apple

Integrations

  • Provides email sending capabilities and allows fetching and visualizing email delivery statistics from the Mailgun service.

Mailgun MCP 服务器

概述

Mailgun的模型上下文协议 (MCP) 服务器实现,使与 MCP 兼容的 AI 客户端(如 Claude Desktop)能够与该服务进行交互。

先决条件

  • Node.js(v18 或更高版本)
  • Git
  • Claude 桌面(用于 Claude 集成)
  • Mailgun 帐户和 API 密钥

快速入门

手动安装

  1. 克隆存储库:
    git clone https://github.com/mailgun/mailgun-mcp-server.git cd mailgun-mcp-server
  2. 安装依赖项并构建:
    npm install
  3. 配置Claude桌面:创建或修改配置文件:
    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.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" } } } }

测试

使用以下命令运行本地测试套件:

NODE_ENV=test npm test

克劳德的样本提示

发送电子邮件

注意:目前(2025-03-18)发送电子邮件似乎需要 Anthropic 付费账户。使用免费账户发送电子邮件会提示失败。

Can you send an email to EMAIL_HERE with a funny email body that makes it sound like it's from the IT Desk from Office Space? Please use the sending domain DOMAIN_HERE, and make the email from "postmaster@DOMAIN_HERE"!

获取并可视化发送统计数据

Would you be able to make a chart with email delivery statistics for the past week?

调试

MCP 服务器通过 stdio 进行通信,请参阅模型上下文协议的调试部分。

执照

LICENSE文件的详细信息

贡献

欢迎大家贡献代码!欢迎提交 Pull 请求。

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议服务器实现,使 Claude Desktop 等 AI 助手能够与 Mailgun 电子邮件服务进行交互,从而允许用户发送电子邮件并通过自然语言可视化电子邮件传递统计数据。

  1. Overview
    1. Prerequisites
      1. Quick Start
        1. Manual Installation
      2. Testing
        1. Sample Prompts with Claude
      3. Debugging
        1. License
          1. Contributing
            ID: rlfcmw918r