Skip to main content
Glama
mailgun

Mailgun MCP Server

Official
by mailgun

Mailgun MCP 服务器

微胶囊钙

概述

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

Related MCP server: Enhanced Gmail MCP Server

先决条件

  • 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 请求。

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mailgun/mailgun-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server