beehiiv MCP by usefulapi

Read subscribers, posts and segments; add subscribers, tags and draft posts in beehiiv.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
95%
Calidad de los nombres
78%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (2)

  • LOWTool 'beehiiv_get_subscription_by_email' name length outside 3-30 rangeen beehiiv_get_subscription_by_email
  • LOWTool 'beehiiv_remove_subscription_tags' name length outside 3-30 rangeen beehiiv_remove_subscription_tags

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~4,287Tokens (definiciones de herramientas)
~1.6 KBTamaño de respuesta típico
Impacto significativo en la atención (3.35% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "beehiiv": {
      "url": "https://beehiiv.usefulapi.io/mcp"
    }
  }
}

Puntos de conexión remotos

https://beehiiv.usefulapi.io/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (22)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢beehiiv_list_publications(limit, page, direction)

List the publications this API key can access. Use it first to find a publication id. beehiiv API: GET /v2/publications.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_publication(publication_id)

Get one publication: name, description, time zone, reply-to address and double opt-in setting. beehiiv API: GET /v2/publications/{publicationId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_subscriptions(publication_id, status, tier, email, limit, ...)

List subscribers of a publication with status, tier, tags and optional stats. Filter by status or tier, or by exact email. Use cursor for the next page. beehiiv API: GET /v2/publications/{publicationId}/subscriptions.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "status": {
      "description": "Filter by subscription status (default all).",
      "type": "string",
      "enum": [
        "validating",
        "invalid",
        "pending",
        "active",
        "inactive",
        "needs_attention",
        "paused",
        "unset",
        "all"
      ]
    },
    "tier": {
      "description": "Filter by tier (default all).",
      "type": "string",
      "enum": [
        "free",
        "premium",
        "all"
      ]
    },
    "email": {
      "description": "Filter by exact email address.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "Cursor from the previous reply's next_cursor (where supported).",
      "type": "string"
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "order_by": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    },
    "expand": {
      "description": "Extra objects to include on each subscription.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "stats",
          "custom_fields",
          "referrals",
          "newsletter_lists"
        ]
      }
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_subscription(subscription_id, publication_id, expand)

Get one subscriber by id: status, tier, tags, custom fields and newsletter lists. beehiiv API: GET /v2/publications/{publicationId}/subscriptions/{subscriptionId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "subscription_id": {
      "type": "string",
      "minLength": 1,
      "description": "The subscription id (from beehiiv_list_subscriptions)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "expand": {
      "description": "Extra objects to include on each subscription.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "stats",
          "custom_fields",
          "referrals",
          "newsletter_lists"
        ]
      }
    }
  },
  "required": [
    "subscription_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_subscription_by_email(email, publication_id, expand)

Find one subscriber by email address. beehiiv API: GET /v2/publications/{publicationId}/subscriptions/by_email/{email}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 3,
      "description": "The subscriber's email address."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "expand": {
      "description": "Extra objects to include on each subscription.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "stats",
          "custom_fields",
          "referrals",
          "newsletter_lists"
        ]
      }
    }
  },
  "required": [
    "email"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_posts(publication_id, status, audience, platform, limit, ...)

List posts (newsletter issues) of a publication. Filter by status (draft, confirmed, archived) or audience. beehiiv API: GET /v2/publications/{publicationId}/posts.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "status": {
      "description": "Filter by post status.",
      "type": "string",
      "enum": [
        "draft",
        "confirmed",
        "archived",
        "all"
      ]
    },
    "audience": {
      "description": "Filter by audience.",
      "type": "string",
      "enum": [
        "free",
        "premium",
        "all"
      ]
    },
    "platform": {
      "description": "Filter by where the post is published.",
      "type": "string",
      "enum": [
        "web",
        "email",
        "both",
        "all"
      ]
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "order_by": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created",
        "publish_date",
        "displayed_date"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_post(post_id, publication_id)

Get one post by id: title, subtitle, status, publish date, audience and web/email settings. beehiiv API: GET /v2/publications/{publicationId}/posts/{postId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "post_id": {
      "type": "string",
      "minLength": 1,
      "description": "The post id (from beehiiv_list_posts)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "post_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_automations(publication_id, limit, page)

List automations (email sequences) of a publication with their status. beehiiv API: GET /v2/publications/{publicationId}/automations.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_automation(automation_id, publication_id)

Get one automation by id. beehiiv API: GET /v2/publications/{publicationId}/automations/{automationId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "automation_id": {
      "type": "string",
      "minLength": 1,
      "description": "The automation id (from beehiiv_list_automations)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "automation_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_segments(publication_id, type, status, limit, page, ...)

List audience segments of a publication with their status and subscriber counts. beehiiv API: GET /v2/publications/{publicationId}/segments.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "type": {
      "description": "Filter by segment type.",
      "type": "string",
      "enum": [
        "dynamic",
        "static",
        "manual",
        "all"
      ]
    },
    "status": {
      "description": "Filter by calculation status.",
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed",
        "all"
      ]
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "order_by": {
      "description": "Sort field.",
      "type": "string",
      "enum": [
        "created",
        "last_calculated"
      ]
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_segment(segment_id, publication_id)

Get one segment by id: its filter definition and status. beehiiv API: GET /v2/publications/{publicationId}/segments/{segmentId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "segment_id": {
      "type": "string",
      "minLength": 1,
      "description": "The segment id (from beehiiv_list_segments)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "segment_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_custom_fields(publication_id)

List the custom subscriber fields defined on a publication. beehiiv API: GET /v2/publications/{publicationId}/custom_fields.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_tiers(publication_id, limit, page, direction)

List the premium tiers (paid subscription levels) of a publication. beehiiv API: GET /v2/publications/{publicationId}/tiers.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_newsletter_lists(publication_id, limit, page, direction)

List the newsletter lists (sub-audiences a subscriber can join) of a publication. beehiiv API: GET /v2/publications/{publicationId}/newsletter_lists.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "direction": {
      "description": "Sort direction.",
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_webhooks(publication_id, limit)

List the webhook endpoints registered on a publication. beehiiv API: GET /v2/publications/{publicationId}/webhooks.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_list_polls(publication_id, post_id, limit, cursor, page)

List polls of a publication, optionally for one post. beehiiv API: GET /v2/publications/{publicationId}/polls.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "post_id": {
      "description": "Only polls attached to this post id.",
      "type": "string"
    },
    "limit": {
      "description": "Results per page, 1 to 100 (default 10).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "description": "Cursor from the previous reply's next_cursor (where supported).",
      "type": "string"
    },
    "page": {
      "description": "Page number (offset pagination).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢beehiiv_get_referral_program(publication_id)

Get the referral program settings of a publication (reward tiers and whether it is on). beehiiv API: GET /v2/publications/{publicationId}/referral_program.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴beehiiv_create_subscription(email, publication_id, tier, reactivate_existing, newsletter_list_ids)

Add an email address as a subscriber of a publication. Only add people who asked to join. Set reactivate_existing only when the person consented again. beehiiv API: POST /v2/publications/{publicationId}/subscriptions.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 3,
      "description": "The subscriber's email address."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "tier": {
      "description": "Tier to assign (default free).",
      "type": "string",
      "enum": [
        "free",
        "premium"
      ]
    },
    "reactivate_existing": {
      "description": "Reactivate the address if it had unsubscribed. Use only with fresh consent.",
      "type": "boolean"
    },
    "newsletter_list_ids": {
      "description": "Newsletter list ids to join.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  },
  "required": [
    "email"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴beehiiv_update_subscription(subscription_id, publication_id, tier, unsubscribe, newsletter_list_ids, ...)

Change a subscriber's tier, newsletter lists, or unsubscribe them from the publication. Send only the fields to change. beehiiv API: PUT /v2/publications/{publicationId}/subscriptions/{subscriptionId}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "subscription_id": {
      "type": "string",
      "minLength": 1,
      "description": "The subscription id (from beehiiv_list_subscriptions)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    },
    "tier": {
      "description": "New tier.",
      "type": "string",
      "enum": [
        "free",
        "premium"
      ]
    },
    "unsubscribe": {
      "description": "true unsubscribes the subscriber from the publication.",
      "type": "boolean"
    },
    "newsletter_list_ids": {
      "description": "Newsletter lists to join.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "unsubscribe_newsletter_list_ids": {
      "description": "Newsletter lists to leave.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  },
  "required": [
    "subscription_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴beehiiv_add_subscription_tags(subscription_id, tags, publication_id)

Add tags to one subscriber. Tags group subscribers; they do not send anything. beehiiv API: POST /v2/publications/{publicationId}/subscriptions/{subscriptionId}/tags.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "subscription_id": {
      "type": "string",
      "minLength": 1,
      "description": "The subscription id."
    },
    "tags": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Tag names."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "subscription_id",
    "tags"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴beehiiv_remove_subscription_tags(subscription_id, tags, publication_id)

Remove tags from one subscriber. The tag stays on the publication. beehiiv API: DELETE /v2/publications/{publicationId}/subscriptions/{subscriptionId}/tags.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "subscription_id": {
      "type": "string",
      "minLength": 1,
      "description": "The subscription id."
    },
    "tags": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Tag names."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "subscription_id",
    "tags"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴beehiiv_create_draft_post(title, subtitle, body_content, publication_id)

Create a draft post (newsletter issue) from HTML. The post is saved as a draft only: it is not scheduled or sent. Review it in beehiiv before you publish. beehiiv API: POST /v2/publications/{publicationId}/posts.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "description": "Post title."
    },
    "subtitle": {
      "description": "Post subtitle.",
      "type": "string"
    },
    "body_content": {
      "type": "string",
      "minLength": 1,
      "description": "Post body as one HTML string (use inline styles)."
    },
    "publication_id": {
      "description": "Publication id (starts with pub_). Defaults to the publication this server is connected to.",
      "type": "string"
    }
  },
  "required": [
    "title",
    "body_content"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada22 herramientas