Buttondown MCP Server
Integración de API de Buttondown
Una integración completa de TypeScript para el servicio de boletín informativo Buttondown, que proporciona una interfaz CLI y un servidor de Protocolo de contexto de modelo (MCP) para administrar boletines informativos, borradores y análisis.
Características
Interfaces múltiples :
Interfaz de línea de comandos (CLI) para interacción directa
Servidor de Protocolo de Contexto de Modelo (MCP) para la integración de IA/LLM
API programática de TypeScript para integraciones personalizadas
Funcionalidad principal :
Gestión de borradores de correo electrónico (crear, actualizar, eliminar)
Sistema de programación de correo electrónico
Recuperación y formato de análisis
Gestión de listas
Gestión de etiquetas
Seguridad :
Integración de 1Password para la gestión de claves API
Soporte de variables de entorno
Manejo seguro de credenciales
Experiencia de desarrollador :
Compatibilidad total con TypeScript
Definiciones de tipos completas
Tipos basados en respuestas de API reales
Utilidades de prueba integradas
Related MCP server: @sendbyte/mcp
Instalación
# Install using pnpm (recommended)
pnpm install
# Or using npm
npm install
# Or using yarn
yarn installConfiguración
La clave API se puede proporcionar de dos maneras:
Variable de entorno:
export BUTTONDOWN_API_KEY=your_api_keyCLI de 1Password (recomendado):
Guarde su clave API en 1Password en
op://Development/Buttondown API/notesPlainLa integración lo recuperará automáticamente cuando sea necesario.
Uso
Interfaz 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>Servidor MCP
Iniciar el servidor:
pnpm mcp:startComenzar con el inspector (para desarrollo):
pnpm mcp:inspect
Herramientas MCP disponibles:
list_emails: enumera todos los correos electrónicos con filtrado de estado opcional{ "status": "draft" // Optional: "draft", "scheduled", "sent" }create_draft: Crea un nuevo borrador de correo electrónico{ "content": "Email content in markdown", "title": "Optional email subject" }get_analytics: Obtener análisis para un correo electrónico específico{ "draftId": "email-id-here" }schedule_draft: Programar un correo electrónico para enviar{ "draftId": "email-id-here", "scheduledTime": "2024-03-27T10:00:00Z" }
Uso programático
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);Desarrollo
# Build the project
pnpm build
# Run tests
pnpm test
# Start MCP server in development mode
pnpm mcp:inspect
# Build MCP server
pnpm mcp:buildPruebas
El proyecto incluye varios tipos de pruebas:
Pruebas unitarias para la funcionalidad principal
Pruebas de integración para interacciones de API
Pruebas de comandos CLI
Pruebas del servidor MCP
Ejecutar pruebas con:
pnpm testEstructura del proyecto
.
├── 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 documentationContribuyendo
Bifurcar el repositorio
Crea tu rama de funciones (
git checkout -b feature/amazing-feature)Confirme sus cambios (
git commit -m 'Add some amazing feature')Empujar a la rama (
git push origin feature/amazing-feature)Abrir una solicitud de extracción
Licencia
Licencia ISC - Ver LICENCIA para más detalles
Expresiones de gratitud
Buttondown por su excelente servicio de newsletter
Protocolo de contexto modelo para el marco de integración de IA
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