Buttondown MCP Server
Buttondown API 集成
Buttondown 新闻通讯服务的全面 TypeScript 集成,提供 CLI 界面和模型上下文协议 (MCP) 服务器来管理新闻通讯、草稿和分析。
特征
多种接口:
用于直接交互的命令行界面 (CLI)
用于 AI/LLM 集成的模型上下文协议 (MCP) 服务器
用于自定义集成的编程 TypeScript API
核心功能:
电子邮件草稿管理(创建、更新、删除)
电子邮件调度系统
分析检索和格式化
列表管理
标签管理
安全:
1Password 集成用于 API 密钥管理
环境变量支持
安全凭证处理
开发人员经验:
全面支持 TypeScript
全面的类型定义
真正的基于 API 响应的类型
内置测试实用程序
Related MCP server: @sendbyte/mcp
安装
# Install using pnpm (recommended)
pnpm install
# Or using npm
npm install
# Or using yarn
yarn install配置
API 密钥可以通过两种方式提供:
环境变量:
export BUTTONDOWN_API_KEY=your_api_key1Password CLI(推荐):
将您的 API 密钥存储在 1Password 中的
op://Development/Buttondown API/notesPlain集成将在需要时自动获取
用法
CLI 界面
# List all emails
buttondown emails list
# Create a new draft
buttondown draft create <file>
# Schedule an email
buttondown schedule set <draft-id> <relative-time>
# Get analytics
buttondown analytics get <draft-id>MCP 服务器
启动服务器:
pnpm mcp:start从检查员开始(用于开发):
pnpm mcp:inspect
可用的 MCP 工具:
list_emails:列出所有电子邮件,并带有可选的状态过滤{ "status": "draft" // Optional: "draft", "scheduled", "sent" }create_draft:创建新的电子邮件草稿{ "content": "Email content in markdown", "title": "Optional email subject" }get_analytics:获取特定电子邮件的分析数据{ "draftId": "email-id-here" }schedule_draft:安排电子邮件发送{ "draftId": "email-id-here", "scheduledTime": "2024-03-27T10:00:00Z" }
程序化使用
import { ButtondownAPI } from "api-integrator";
// Initialize the client
const api = new ButtondownAPI(); // Will use 1Password or env var
// List drafts
const drafts = await api.getDrafts();
// Create a draft
const draft = await api.createEmail({
subject: "My Newsletter",
body: "Content here",
status: "draft",
});
// Schedule an email
const scheduled = await api.scheduleEmail(draft.id, "2024-03-27T10:00:00Z");
// Get analytics
const analytics = await api.getEmailStats(draft.id);发展
# Build the project
pnpm build
# Run tests
pnpm test
# Start MCP server in development mode
pnpm mcp:inspect
# Build MCP server
pnpm mcp:build测试
该项目包括几种类型的测试:
核心功能的单元测试
API 交互的集成测试
CLI 命令测试
MCP 服务器测试
使用以下方式运行测试:
pnpm test项目结构
.
├── src/
│ ├── api/ # Core API client
│ ├── cli/ # CLI implementation
│ ├── mcp/ # MCP server
│ ├── types/ # TypeScript definitions
│ └── utils/ # Shared utilities
├── tests/ # Test files
├── api-responses/ # Cached API responses
└── memory-bank/ # Project documentation贡献
分叉存储库
创建你的功能分支(
git checkout -b feature/amazing-feature)提交您的更改(
git commit -m 'Add some amazing feature')推送到分支(
git push origin feature/amazing-feature)打开拉取请求
执照
ISC 许可证 - 详情请参阅许可证
致谢
Buttondown提供出色的新闻通讯服务
AI集成框架的模型上下文协议
Available Tools
4 toolscreate_draftA
Create a new email draft in Buttondown with the specified content and optional title. This tool requires explicit user confirmation before proceeding as it will create a new draft in your Buttondown account.
Inputs: content (required), confirmed (required), title.
get_analyticsC
Retrieve analytics data for a specific email draft from Buttondown
Inputs: draftId (required).
list_emailsB
List all emails, optionally filtered by status (draft, scheduled, sent)
Inputs: status.
schedule_draftA
Schedule an existing email draft to be sent at a specific time. This tool requires explicit user confirmation before proceeding as it will modify the draft's status and schedule.
Inputs: draftId (required), scheduledTime (required), confirmed (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose targeting specific actions in the email lifecycle: create_draft for creation, list_emails for listing, get_analytics for analytics retrieval, and schedule_draft for scheduling. There is no overlap or ambiguity between these functions.
All tool names follow a consistent verb_noun pattern with snake_case (create_draft, get_analytics, list_emails, schedule_draft). The verbs are appropriate and predictable, making the set easy to understand and use.
With 4 tools, the count is reasonable for an email newsletter server, covering core operations. However, it feels slightly thin as it lacks tools for updating or deleting drafts, which are common in such domains, but the scope is still well-defined.
The tool set covers key email lifecycle stages: creation, listing, analytics, and scheduling. Minor gaps exist, such as no update_draft or delete_draft tools, but agents can work around this by creating new drafts or using existing ones, and the core workflow is supported.
Related MCP Connectors
Read Buttondown subscribers, emails, analytics and automations; add subscribers; write email drafts.
Manage beehiiv newsletters, posts, podcasts, community, subscribers, and analytics.
Connect AI agents to Emitd email sending, message tracking, templates, and automations. Emitd hosts a Model Context Protocol server for integrating supported email operations into AI-agent workflows. Connect a compatible client to the hosted endpoint (https://mcp.emitd.com/mcp) and authenticate with an Emitd API key. Available tools depend on the key's permissions and enabled features. Emitd's capability areas include sending email, message activity, templates, contacts, audiences, segments, domains, analytics, inbound email, broadcasts, automations, webhooks, and suppressions. Use restricted keys, sending guardrails, and approval settings appropriate to each workflow. For more information check https://emitd.com
Read subscribers, posts and segments; add subscribers, tags and draft posts in beehiiv.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables interaction with the Buttondown newsletter API for managing emails, subscribers, and tags.1518 npm1MIT

@sendbyte/mcpofficial
AlicenseAqualityCmaintenanceEnables AI agents to send emails and manage sending domains, templates, analytics, and content checks through the SendByte platform using the Model Context Protocol.1117 npmMIT- AlicenseBqualityNot gradedmaintenanceEnables natural language management of Motion tasks, projects, schedules, and more by bridging the Motion API with LLMs through the Model Context Protocol.10Apache 2.0

Tratto MCP Serverofficial
AlicenseAqualityDmaintenanceLets AI tools send transactional emails, check status, and manage contacts through the Model Context Protocol.2MIT