Token导航 LogoToken导航TokenDH.com
Vuln MCP 1 logo
办公协作未说明官方级别未说明来源级核验

Vuln MCP 1

MCP Server

Postmark MCP Server是一个基于Model Context Protocol (MCP)的邮件服务实现,用于通过Postmark发送邮件,支持简单配置、错误处理和自动邮件跟踪。

工具数

4

提示词数

0

GitHub Stars

0

资源数

0
邮件服务错误处理JavaScriptClaudeClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

NitinAB1108

提供方

NitinAB1108

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

邮戳MCP服务器

用于Postmark电子邮件服务的MCP服务器实现。

特性

  • 暴露一个模型上下文协议(MCP)服务器,用于通过Postmark发送电子邮件
  • 通过环境变量进行简单配置
  • 全面的错误处理和优雅的关机
  • 安全的日志记录实践(无敏感数据泄露)
  • 自动电子邮件跟踪配置

反馈

我们很乐意收到您的来信!请通过我们的 反馈表.

需求

  • Node.js(建议使用v16或更高版本)
  • 邮戳帐户和服务器令牌

设置

  1. 克隆存储库:
   git clone https://github.com/ActiveCampaign/postmark-mcp
   cd postmark-mcp
  1. 安装依赖项:
   npm install
  1. 配置环境变量:

- 复制 .env.example.env:

     cp .env.example .env

- 编辑 .env 并填写您的邮戳凭据和设置。

变量描述必填
POSTMAR_SERVER_TOKEN您的POSTMARK服务器API令牌
DEFAULT_SENDER_EMAIL默认发件人电子邮件地址
DEFAULT_MESSAGE_STREAM邮戳消息流(例如“出站”)
  1. 运行服务器:
   npm start

通过Cursor Deeplink快速安装

您可以通过单击以下按钮在Cursor中快速安装此MCP服务器:

备注:单击按钮后,您需要: 1. 设置您的 POSTMARK_SERVER_TOKEN 在MCP配置中 1. 设置您的 DEFAULT_SENDER_EMAIL 在MCP配置中 1. 设置您的 DEFAULT_MESSAGE_STREAM 在MCP配置中(默认为“出站”)

Claude和Cursor MCP配置示例

{
  "mcpServers": {
    "postmark": {
      "command": "node",
      "args": ["path/to/postmark-mcp/index.js"],
      "env": {
        "POSTMARK_SERVER_TOKEN": "your-postmark-server-token",
        "DEFAULT_SENDER_EMAIL": "your-sender-email@example.com",
        "DEFAULT_MESSAGE_STREAM": "your-message-stream"
      }
    }
  }
}

工具参考

本节提供了Postmark MCP服务器工具的完整参考,包括示例提示和每个工具的预期有效载荷。

目录

- send电子邮件 - sendEmailWithTemplate

- 列表模板

- 获取交货状态

电子邮件管理工具

1.发送电子邮件

发送一封短信电子邮件。

示例提示:

Send an email using Postmark to recipient@example.com with the subject "Meeting Reminder" and the message "Don't forget our team meeting tomorrow at 2 PM. Please bring your quarterly statistics report (and maybe some snacks).""

预期有效载荷:

{
  "to": "recipient@example.com",
  "subject": "Meeting Reminder",
  "textBody": "Don't forget our team meeting tomorrow at 2 PM. Please bring your quarterly statistics report (and maybe some snacks).",
  "htmlBody": "HTML version of the email body", // Optional
  "from": "sender@example.com", // Optional, uses DEFAULT_SENDER_EMAIL if not provided
  "tag": "meetings" // Optional
}

响应格式:

Email sent successfully!
MessageID: message-id-here
To: recipient@example.com
Subject: Meeting Reminder

2.使用模板发送电子邮件

使用预定义的模板发送电子邮件。

示例提示:

Send an email with Postmark template alias "welcome" to customer@example.com with the following template variables:
{
  "name": "John Doe",
  "product_name": "MyApp",
  "login_url": "https://myapp.com/login"
}

预期有效载荷:

{
  "to": "customer@example.com",
  "templateId": 12345, // Either templateId or templateAlias must be provided, but not both
  "templateAlias": "welcome", // Either templateId or templateAlias must be provided, but not both
  "templateModel": {
    "name": "John Doe",
    "product_name": "MyApp",
    "login_url": "https://myapp.com/login"
  },
  "from": "sender@example.com", // Optional, uses DEFAULT_SENDER_EMAIL if not provided
  "tag": "onboarding" // Optional
}

响应格式:

Template email sent successfully!
MessageID: message-id-here
To: recipient@example.com
Template: template-id-or-alias-here

模板管理工具

3.列表模板

列出所有可用模板。

示例提示:

Show me a list of all the email templates available in our Postmark account.

响应格式:

📋 Found 2 templates:

• Basic
  - ID: 12345678
  - Alias: basic
  - Subject: none

• Welcome
  - ID: 02345679
  - Alias: welcome
  - Subject: none

统计和跟踪工具

4.获取交货状态

检索电子邮件传递统计信息。

示例提示:

Show me our Postmark email delivery statistics from 2025-05-01 to 2025-05-15 for the "marketing" tag.

预期有效载荷:

{
  "tag": "marketing", // Optional
  "fromDate": "2025-05-01", // Optional, YYYY-MM-DD format
  "toDate": "2025-05-15" // Optional, YYYY-MM-DD format
}

响应格式:

Email Statistics Summary

Sent: 100 emails
Open Rate: 45.5% (45/99 tracked emails)
Click Rate: 15.2% (15/99 tracked links)

Period: 2025-05-01 to 2025-05-15
Tag: marketing

实现细节

自动配置

所有电子邮件都会自动配置为:

  • TrackOpens: true
  • TrackLinks: "HtmlAndText"
  • 来自的消息流 DEFAULT_MESSAGE_STREAM 环境变量

错误处理

服务器实现了全面的错误处理:

  • 验证所有必需的环境变量
  • SIGTERM和SIGINT的优雅关闭
  • API调用的正确错误处理
  • 日志中不暴露敏感信息
  • 一致的错误消息格式

日志记录

  • 使用适当的日志级别(info 对于正常操作, error 错误)
  • 从日志中排除敏感信息
  • 提供清晰的操作状态和结果

______________________________________________________________________

*有关API邮政标志的更多信息,请访问 Postmark的开发者文档.*

目录标签

目录标签

邮件服务错误处理JavaScriptClaude本地部署MCP协议Postmark集成自动化邮件

支持客户端

ClaudeCursor

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP