KosmoKrator

productivity

beehiiv MCP Gateway for AI Agents

Expose beehiiv tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

beehiiv MCP Gateway

Expose beehiiv to MCP clients with `kosmokrator mcp:serve --integration=beehiiv`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server.

Install KosmoKrator
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
Install gateway entry
kosmokrator mcp:gateway:install --integration=beehiiv --write=deny --json
MCP configuration
{
  "mcpServers": {
    "kosmokrator-beehiiv": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=beehiiv",
        "--write=deny"
      ]
    }
  }
}
Serve manually
kosmokrator mcp:serve --integration=beehiiv --write=deny

Client Notes

Use one scoped MCP gateway entry, then adapt the config location to the client or framework.

Claude Code Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry. Claude Code can launch the local kosmo binary directly from the project MCP config.
Cursor Expose selected local integrations to Cursor through KosmoKrator without configuring each service as its own MCP server. Use the same KosmoKrator install and integration credentials that power terminal and headless runs.
Codex Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy. Keep write access denied or ask-based unless the workspace is trusted.
OpenAI Agents SDK Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway. Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
Claude Agent SDK Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server. Use a narrow integration list so the agent does not load unrelated tools.
Vercel AI SDK Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts. Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
LangChain Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls. Keep the gateway scoped to the integration and operation class needed by the chain.
LangGraph Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions. Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
CrewAI Expose KosmoKrator integrations to CrewAI workers as scoped local tools. Use per-worker integration scopes to avoid giving every worker every tool.
Generic MCP Clients Connect any stdio-compatible MCP client to local KosmoKrator integration tools. Start with read-only write policy and expand only for trusted projects.

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names.

MCP toolSource functionType
integration__beehiiv__beehiiv_advertisement_opportunities_index beehiiv.beehiiv_advertisement_opportunities_index Read read
integration__beehiiv__beehiiv_authors_index beehiiv.beehiiv_authors_index Read read
integration__beehiiv__beehiiv_authors_show beehiiv.beehiiv_authors_show Read read
integration__beehiiv__beehiiv_automation_journeys_create beehiiv.beehiiv_automation_journeys_create Write write
integration__beehiiv__beehiiv_automation_journeys_index beehiiv.beehiiv_automation_journeys_index Read read
integration__beehiiv__beehiiv_automation_journeys_show beehiiv.beehiiv_automation_journeys_show Read read
integration__beehiiv__beehiiv_automations_index beehiiv.beehiiv_automations_index Read read
integration__beehiiv__beehiiv_automations_list_emails beehiiv.beehiiv_automations_list_emails Read read
integration__beehiiv__beehiiv_automations_show beehiiv.beehiiv_automations_show Read read
integration__beehiiv__beehiiv_bulk_subscription_updates_index beehiiv.beehiiv_bulk_subscription_updates_index Read read
integration__beehiiv__beehiiv_bulk_subscription_updates_patch beehiiv.beehiiv_bulk_subscription_updates_patch Write write
integration__beehiiv__beehiiv_bulk_subscription_updates_patch_status beehiiv.beehiiv_bulk_subscription_updates_patch_status Write write
integration__beehiiv__beehiiv_bulk_subscription_updates_put beehiiv.beehiiv_bulk_subscription_updates_put Write write
integration__beehiiv__beehiiv_bulk_subscription_updates_put_status beehiiv.beehiiv_bulk_subscription_updates_put_status Write write
integration__beehiiv__beehiiv_bulk_subscription_updates_show beehiiv.beehiiv_bulk_subscription_updates_show Read read
integration__beehiiv__beehiiv_bulk_subscriptions_create beehiiv.beehiiv_bulk_subscriptions_create Write write
integration__beehiiv__beehiiv_condition_sets_index beehiiv.beehiiv_condition_sets_index Read read
integration__beehiiv__beehiiv_condition_sets_show beehiiv.beehiiv_condition_sets_show Read read
integration__beehiiv__beehiiv_custom_fields_create beehiiv.beehiiv_custom_fields_create Write write
integration__beehiiv__beehiiv_custom_fields_delete beehiiv.beehiiv_custom_fields_delete Write write
integration__beehiiv__beehiiv_custom_fields_index beehiiv.beehiiv_custom_fields_index Read read
integration__beehiiv__beehiiv_custom_fields_patch beehiiv.beehiiv_custom_fields_patch Write write
integration__beehiiv__beehiiv_custom_fields_put beehiiv.beehiiv_custom_fields_put Write write
integration__beehiiv__beehiiv_custom_fields_show beehiiv.beehiiv_custom_fields_show Read read
integration__beehiiv__beehiiv_data_deletion_create beehiiv.beehiiv_data_deletion_create Write write
integration__beehiiv__beehiiv_data_deletion_index beehiiv.beehiiv_data_deletion_index Read read
integration__beehiiv__beehiiv_data_deletion_show beehiiv.beehiiv_data_deletion_show Read read
integration__beehiiv__beehiiv_email_blasts_index beehiiv.beehiiv_email_blasts_index Read read
integration__beehiiv__beehiiv_email_blasts_show beehiiv.beehiiv_email_blasts_show Read read
integration__beehiiv__beehiiv_engagements_index beehiiv.beehiiv_engagements_index Read read
integration__beehiiv__beehiiv_newsletter_list_subscriptions_create beehiiv.beehiiv_newsletter_list_subscriptions_create Write write
integration__beehiiv__beehiiv_newsletter_list_subscriptions_index beehiiv.beehiiv_newsletter_list_subscriptions_index Read read
integration__beehiiv__beehiiv_newsletter_list_subscriptions_show beehiiv.beehiiv_newsletter_list_subscriptions_show Read read
integration__beehiiv__beehiiv_newsletter_list_subscriptions_update beehiiv.beehiiv_newsletter_list_subscriptions_update Write write
integration__beehiiv__beehiiv_newsletter_list_subscriptions_update_by_subscription_id beehiiv.beehiiv_newsletter_list_subscriptions_update_by_subscription_id Write write
integration__beehiiv__beehiiv_newsletter_lists_index beehiiv.beehiiv_newsletter_lists_index Read read
integration__beehiiv__beehiiv_newsletter_lists_show beehiiv.beehiiv_newsletter_lists_show Read read
integration__beehiiv__beehiiv_oauth_users_identify beehiiv.beehiiv_oauth_users_identify Read read
integration__beehiiv__beehiiv_polls_index beehiiv.beehiiv_polls_index Read read
integration__beehiiv__beehiiv_polls_list_responses beehiiv.beehiiv_polls_list_responses Read read
integration__beehiiv__beehiiv_polls_show beehiiv.beehiiv_polls_show Read read
integration__beehiiv__beehiiv_post_templates_index beehiiv.beehiiv_post_templates_index Read read
integration__beehiiv__beehiiv_posts_aggregate_stats beehiiv.beehiiv_posts_aggregate_stats Read read
integration__beehiiv__beehiiv_posts_create beehiiv.beehiiv_posts_create Write write
integration__beehiiv__beehiiv_posts_delete beehiiv.beehiiv_posts_delete Write write
integration__beehiiv__beehiiv_posts_index beehiiv.beehiiv_posts_index Read read
integration__beehiiv__beehiiv_posts_show beehiiv.beehiiv_posts_show Read read
integration__beehiiv__beehiiv_posts_update beehiiv.beehiiv_posts_update Write write
integration__beehiiv__beehiiv_publications_index beehiiv.beehiiv_publications_index Read read
integration__beehiiv__beehiiv_publications_show beehiiv.beehiiv_publications_show Read read
integration__beehiiv__beehiiv_referral_program_show beehiiv.beehiiv_referral_program_show Read read
integration__beehiiv__beehiiv_segments_create beehiiv.beehiiv_segments_create Write write
integration__beehiiv__beehiiv_segments_delete beehiiv.beehiiv_segments_delete Write write
integration__beehiiv__beehiiv_segments_expand_results beehiiv.beehiiv_segments_expand_results Read read
integration__beehiiv__beehiiv_segments_index beehiiv.beehiiv_segments_index Read read
integration__beehiiv__beehiiv_segments_list_members beehiiv.beehiiv_segments_list_members Read read
integration__beehiiv__beehiiv_segments_recalculate beehiiv.beehiiv_segments_recalculate Write write
integration__beehiiv__beehiiv_segments_show beehiiv.beehiiv_segments_show Read read
integration__beehiiv__beehiiv_subscription_tags_create beehiiv.beehiiv_subscription_tags_create Write write
integration__beehiiv__beehiiv_subscriptions_create beehiiv.beehiiv_subscriptions_create Write write
integration__beehiiv__beehiiv_subscriptions_delete beehiiv.beehiiv_subscriptions_delete Write write
integration__beehiiv__beehiiv_subscriptions_get_by_email beehiiv.beehiiv_subscriptions_get_by_email Read read
integration__beehiiv__beehiiv_subscriptions_get_by_id beehiiv.beehiiv_subscriptions_get_by_id Read read
integration__beehiiv__beehiiv_subscriptions_get_by_subscriber_id beehiiv.beehiiv_subscriptions_get_by_subscriber_id Read read
integration__beehiiv__beehiiv_subscriptions_get_jwt_token beehiiv.beehiiv_subscriptions_get_jwt_token Read read
integration__beehiiv__beehiiv_subscriptions_index beehiiv.beehiiv_subscriptions_index Read read
integration__beehiiv__beehiiv_subscriptions_patch beehiiv.beehiiv_subscriptions_patch Write write
integration__beehiiv__beehiiv_subscriptions_put beehiiv.beehiiv_subscriptions_put Write write
integration__beehiiv__beehiiv_subscriptions_update_by_email beehiiv.beehiiv_subscriptions_update_by_email Write write
integration__beehiiv__beehiiv_tiers_create beehiiv.beehiiv_tiers_create Write write
integration__beehiiv__beehiiv_tiers_index beehiiv.beehiiv_tiers_index Read read
integration__beehiiv__beehiiv_tiers_patch beehiiv.beehiiv_tiers_patch Write write
integration__beehiiv__beehiiv_tiers_put beehiiv.beehiiv_tiers_put Write write
integration__beehiiv__beehiiv_tiers_show beehiiv.beehiiv_tiers_show Read read
integration__beehiiv__beehiiv_webhooks_create beehiiv.beehiiv_webhooks_create Write write
integration__beehiiv__beehiiv_webhooks_delete beehiiv.beehiiv_webhooks_delete Write write
integration__beehiiv__beehiiv_webhooks_index beehiiv.beehiiv_webhooks_index Read read
integration__beehiiv__beehiiv_webhooks_show beehiiv.beehiiv_webhooks_show Read read
integration__beehiiv__beehiiv_webhooks_test beehiiv.beehiiv_webhooks_test Read read
integration__beehiiv__beehiiv_webhooks_update beehiiv.beehiiv_webhooks_update Write write
integration__beehiiv__beehiiv_workspaces_identify beehiiv.beehiiv_workspaces_identify Read read
integration__beehiiv__beehiiv_workspaces_publications_by_subscription_email beehiiv.beehiiv_workspaces_publications_by_subscription_email Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.