Marketing

beehiiv MCP

Manage beehiiv newsletters, posts, subscribers, automations, websites, podcasts and analytics through beehiiv's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Save recommendation

    Create, restore, update, or archive a free recommendation - a publication you recommend to your subscribers. Use discover_publications or list_recommendation_suggestions to find a recommended_publication_id first. The same (publication, recommended publication) pair is an upsert: an unknown pair creates a new recommendation, an existing one is updated. Omit reason to keep the current reason. Set status "inactive" to remove a recommendation (there is no delete - removed recommendations are kept inactive and can be restored). A publication can only have a limited number of active recommendations. To replace one when at the limit, set status "inactive" on an existing recommendation (see list_recommendations) before adding the new one. reason is shown to your subscribers, so write quality copy (max 500 characters). This tool only manages free recommendations. For paid ones (boosted: true in list_recommendations), use save_paid_recommendation to pause, resume, or end them. For a paid partner that recommends you, use save_incoming_paid_recommendation.

  • Save referral milestone

    Create or update a referral program milestone. Milestones define thresholds (e.g. 5 referrals) that trigger a reward email. Each milestone requires a reward — use list_referral_rewards to find reward IDs. If milestone_id is provided, updates the existing milestone; otherwise creates a new one. num_referrals must be unique per referral program. html_content is the email body - HTML matching the editor's parse rules (call learn_post_authoring for the node/mark contract). The milestone editor supports a subset of the post editor: ads, polls and dynamic content are dropped, not authored here. If the reward's type is promo_code, the body must contain the {{reward_promo_code}} merge tag.

  • Save referral program

    Update a publication's referral program settings. The referral program must already exist. Use get_referral_program to retrieve current settings. Only provided fields are updated — omitted fields keep their values. Pass enabled: false to disable the program, enabled: true to re-enable it.

  • Save referral reward

    Create or update a referral program reward. If reward_id is provided, updates the existing reward; otherwise creates a new one. When updating, only provided fields are changed. Rewards are referenced by milestones — use list_referral_rewards to see existing rewards. Note: promo code file uploads are not supported via MCP; use the beehiiv dashboard for those.

  • Save segment

    Create or update a subscriber segment. Call `get_segment_schema` first to learn available fields and syntax. If segment_id is provided, updates the existing segment; otherwise creates a new one. When creating, name and where are required. Creating a dynamic or static segment calculates membership. Membership is recalculated only when the conditions change, or when you call `recalculate_segment`. Updating the name, description, or segment type, or resending the same conditions, does not. A static segment is a snapshot of who matched its conditions at the last calculation. Tagging a subscriber, or any other subscriber change, does not add or remove them until you call `recalculate_segment`. A dynamic segment recalculates daily, and also when its conditions change or you call `recalculate_segment`. Changing the conditions of a segment that limits access to a community or channel is refused with an explanation of what it limits. Tell the user, and resend with access_change_confirmed only once they agree.

  • Save signup flow

    Create or update a publication's signup flow - an ordered set of URLs that new subscribers step through. Omit `signup_flow_id` to create, where the first flow on a publication is automatically marked default. Pass it to update, where only the fields you send change. urls must be ordered: any external URL (a URL outside the publication's domain) has to be last. Each url must be a valid HTTP(S) URL. Setting default: true makes this the publication's default flow and unsets the previous default.

  • Save site global

    On a website builder site the navbar, footer and subscribe form come from a preset, so there is no document to compose. Send `overrides` there - a patch keyed as get_site_global returns them - and ignore everything below, which describes an advanced builder site. Write one of a website's DRAFT site globals - the navbar, the footer, or the login/signup modals. Pick it with `key`, and provide exactly one of `operations`, a design, or `content`. For an addition, a tweak, or "another one of these", use `operations`: targeted edits against the nodes `get_site_global` returned. An operation carries a `design` of its own, so you keep the builders and keep the rest of the global. A design composes the whole global, so it describes every item, not just the new one. Let a builder emit the node tree either way - it cannot fail on a miscounted bracket and the payload is a fraction of the JSON. Builders and their arguments are learn_site_design (topic: 'builders'). Content mode is the escape hatch for a shape no builder covers; read `get_site_global` first so you edit the shape the renderer expects. The navbar takes `desktop` and `mobile`, each {left, middle, right}. Its two trees are independent and mirror each other's node ids, so a design places every item into both and an operation names the `viewport` it edits. The footer and the modals take a flat `design` list: a footer composes into its sections, a modal into its body, wrapped in the login/signup shell for you. A footer background image goes on its section's attrs (`backgroundImage`, `backgroundDarken`, `overlayColor`), not the doc root. A modal needs a `loginForm` (or `signup`) and a `modalSwitchLink` to pass its own rules. Saves run the template-builder rulebook and safe issues are autofixed. A violation rejects the save with the list to adjust and retry; findings the global already carried return as `pre_existing` and never block. Tell the user about any fix in `fixes_applied` that changed something they did not ask for. Edits land in the draft - `publish_site` takes them live, or a human promotes them via the beehiiv advanced builder. A navbar or footer currently in raw-HTML mode returns to visual mode when you save here; its HTML is kept so the advanced builder's HTML toggle restores it. Write raw HTML with `save_site_global_html` instead.

  • Save site redirect

    Create or update a publication's website redirect, mapping an old site path to a new one. Omit `site_redirect_id` to create; pass it to update, where only the fields you send change. Both paths are on the publication's own site, because the site can only redirect within its own domain. Give new_path as a path that starts with /, such as /new-page or /blog?tag=news. old_path is normalised to a leading slash. A wildcard redirect is auto-detected when old_path contains `*`. Redirects are always permanent (HTTP 301).

  • Save site settings

    Set a website's builder-level settings. `get_site` returns the current values under `settings`, and only the settings you pass change. `placeholder_data_enabled` fills data-bound elements - post feeds, products, authors, testimonials - with sample records, so a publisher can see their design before they have real content. Recommend it when list_posts, list_products or list_authors show nothing to fill a feed with, and turn it on once the publisher agrees. It is the setting behind the builder's own "Enable placeholder data" and "Show placeholders" buttons. This is preview state: the published site never reads it, no page content changes, and turning it off restores the real feeds. The published-site equivalent is a `post` element's `hasFakeData` attribute, which does ship stock posts to readers - reach for this setting instead whenever the goal is to see a design. Say when you turn it on, and that real posts replace the samples once published.

  • Save site theme

    Set a website's theme tokens - the fonts, colors, borders and shadows the whole site renders from. Every page, the navbar, the footer, the modals and the post list read these, so a site-wide restyle belongs here: "change every font to Times New Roman" is one call setting `header_font`, `body_font` and `button_font`. Editing elements one by one misses every region that inherits the theme. Styling one element or one page stays a page edit. Pass `preset` to apply a curated theme by name. Each one is a whole look - palette, fonts and corner radius - whose text/surface pairings clear WCAG AA and whose fonts the builder already offers, so prefer a preset over inventing hex values when the ask is a mood ("make it neon", "something editorial") rather than a named color. Pass `theme_data` as a partial map of token keys to values; only the keys you send change. Send both to start from a preset and override part of it. `get_site` returns the current values under `theme`. The write carries into the draft pages and the globals as well, and snapshots the old theme so a human can undo it from the beehiiv advanced builder. The restyle is complete when this call returns, apart from anything holding a hand-set value of its own. The first write forks the publication's theme onto this site, leaving the publication's other sites untouched. A website-builder or code site takes this call too. There the write lands on the DRAFT theme and nothing reaches the live site until `publish_site` or a human publishes. Its pages render from a preset, so there is nothing to carry the write into and no undo snapshot.

  • Save skill

    Create or update an agent skill: saved instructions beehiiv's agent loads when relevant, such as brand guidelines (palette, fonts, logo rules, voice, do and don't rules) kept in a local file. Omit id to create; pass an id from list_skills to update. Only the fields you pass are changed. Instructions are plain text or markdown, up to 10000 characters, and replace the whole document, so editor formatting becomes the markdown text get_skill returns. Workspace visibility needs a workspace admin.

  • Save split test

    Set up an A/B test of email subject lines on a post that has not sent yet. The post's own subject line (`email_settings.email_subject_line` on `save_post` / `edit_post`) is the control; `subject_lines` are the alternatives tested against it, so each one must differ from it and from each other. This replaces the whole variant list: a subject line you omit is removed. Read the current list from `get_post` (`split_test.subject_lines`) and echo it back with your change. Only works while the test is still pending - once the post starts sending, the variants are locked. Results land in `get_post_stats`.

  • Save sponsorship product

    Create or update a Direct Sponsorships product (the ad formats/placements a publisher sells to advertisers, e.g. 'Newsletter Primary Sponsor'). Matches the Products page under Direct Sponsorships in the dashboard. Distinct from a sponsorship agreement (an actual deal). If product_id is provided, updates the existing product; otherwise creates a new one. When creating, name, price_cents, schedule, and asset_settings are required.

  • Save subscribe form

    Create a new subscribe form, or update an existing one's name, success behaviour, and display rules. Pass subscribe_form_id to update an existing form (publication_id is not needed and is ignored if also given); pass publication_id alone to create a new form. name applies immediately; display and success settings write to the DRAFT and go live when it is published from the website editor. Edit visual design with save_subscribe_form_theme; see learn_subscribe_form_authoring for trigger_config shapes.

  • Save subscribe form theme

    Edit a subscribe form's theme design tokens. Always writes the DRAFT theme - changes are not live until the draft is published from the website editor. Pass theme_data as a partial map of token keys to values (unspecified tokens are left untouched). Use reset_to_defaults to revert tokens to their default. Call learn_subscribe_form_authoring for the token vocabulary.

  • Save subscriber tag

    Create or rename a subscriber tag. If tag_id is provided, updates the existing tag; otherwise creates a new one. When creating, publication_id and name are required. Tag names are normalized to lowercase and must be unique per publication.

  • Save survey

    Create or update a survey (form). If survey_id is provided, updates the existing survey; otherwise creates a new one. When creating, title is required. To publish, set status to "live" (requires at least one question with 2+ options for multiple choice). Use type to place the survey in a publication lifecycle slot (subscribe/unsubscribe/downgrade) or detach it (standalone).

  • Save survey question

    Add or update a question on a survey. Use `list_custom_fields` to find valid custom_field_id values before adding questions. For multiple_choice or dropdown types, the custom field must be of kind "string" or "list". Pass `options` to set the answer choices for multiple_choice/dropdown questions, when adding or updating. Options are additive: listed values are added, existing ones are left untouched. Options for a list custom field are stored on the field, keeping it in sync. Set `multi_select` to true to let subscribers pick more than one answer. It is only valid for multiple_choice questions backed by a list custom field.

  • Save tier

    Create or update a paid tier's metadata (name, description, redirect URL, gifting). If tier_id is provided, updates the existing tier; otherwise creates a new one. When creating, name is required. Pricing is managed separately - use the beehiiv dashboard to add or change prices.

  • Schedule post

    Book or cancel a post's send. With `action: "schedule"` (the default) an existing draft is scheduled to go to its configured audience; with `action: "cancel"` a pending send is called off and the post returns to a draft. There is no immediate send. `scheduled_at` must be at least 10 minutes in the future, so the user always gets a window to cancel or amend in the beehiiv UI before it goes out. Relay the `editor_url` in the response and the recipients the post is going to, so the user can check both before the window closes. To move a booked send, cancel it and schedule again - that is what the editor does. A send can only be cancelled while it is still pending; once the post reaches its send time or starts sending it cannot be called back. Only a draft can be scheduled, and its audience must already be set, so use `edit_post` to change recipients first.

PreviousPage 12 / 13Next