Guides

MCP server

ChatGPT, Claude and Grok Bot connect to https://flockstack.io/mcp: you sign in to FlockStack and allow them, no key to copy. Claude Code, Codex and Cursor use an API key, at the level the work needs: start with send with approval, so sends wait for you. Each gets one tool per endpoint its level can run, with the same inputs, checks and errors.

What is this for? Running a newsletter from an AI agent

Connector URL
https://flockstack.io/mcp

ChatGPT

  1. 1Go to Plugins (chatgpt.com/plugins), click + and pick Add custom MCP server.
  2. 2Name it FlockStack, enter https://flockstack.io/mcp as the server URL and pick OAuth, with no client ID or secret. If ChatGPT asks how to register, pick Client ID Metadata Document.
  3. 3Check I understand and want to continue, then click Create as a plugin.
  4. 4Install the plugin, sign in to FlockStack when ChatGPT asks and click Allow.
  5. 5In a chat, type @ and pick FlockStack.

Custom MCP servers are on ChatGPT on the web, for Business, Enterprise and Edu workspaces: on Business, admins and owners add them; on Enterprise and Edu, so can the members an admin allows. On Pro, ChatGPT only uses the read-only tools for now.

Claude

  1. 1Go to Customize › Connectors and click Add custom connector.
  2. 2Name it FlockStack and enter https://flockstack.io/mcp. If Claude asks how it identifies itself, keep Use Claude's published identity. Click Add.
  3. 3Click Connect, sign in to FlockStack and click Allow.
  4. 4The connector works in claude.ai, Claude Desktop and the mobile apps. Turn it on or off in a chat from + › Connectors.

On Team and Enterprise plans, an owner adds it once in Organization settings › Connectors › Add › Custom › Web, then each member clicks Connect under Customize › Connectors. The Free plan has one custom connector.

Grok Bot

  1. 1In a chat, ask Grok Bot to add the custom MCP server https://flockstack.io/mcp.
  2. 2Sign in to FlockStack when it asks, and click Allow.

Claude Code

Terminal
claude mcp add --transport http --scope user flockstack https://flockstack.io/mcp \
  --header "Authorization: Bearer $FLOCKSTACK_API_KEY"

The shell puts the key in Claude Code's settings when the command runs. --scope user makes the server available in every project; run /mcp in Claude Code to check it's connected.

Codex

~/.codex/config.toml
[mcp_servers.flockstack]
url = "https://flockstack.io/mcp"
bearer_token_env_var = "FLOCKSTACK_API_KEY"

Codex reads the key from FLOCKSTACK_API_KEY each time it starts, so export it in your shell profile. The same server from the terminal: codex mcp add flockstack --url https://flockstack.io/mcp --bearer-token-env-var FLOCKSTACK_API_KEY

Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "flockstack": {
      "url": "https://flockstack.io/mcp",
      "headers": {
        "Authorization": "Bearer ${env:FLOCKSTACK_API_KEY}"
      }
    }
  }
}

Cursor reads FLOCKSTACK_API_KEY from the environment it was opened in. If it isn't set there, put the key itself after Bearer, and keep the file out of version control.

Sends can't be undone

schedule_campaign, send_campaign, send_campaign_to_more, resend_campaign, resume_campaign are marked destructive, and their descriptions ask the assistant to check with you first. Most clients ask before running them. send_test_email sends only to the account owner or to up to 10 addresses you name, never to the list.

With a send with approval key or app, or on a newsletter set to ask before an agent sends, those tools don't send. They answer a result (not an error) with status: "approval_required" and a request ID, and nothing happens until you approve it on the Approvals page. The assistant reads the outcome with get_approval_status. See Agent safety.

Connected apps

An app you allow gets the access you pick on the consent page, at the levels of an API key (read only, drafts only, send with approval or full access), up to what it asked for, in your account only. The API keys page lists connected apps with when they were last used. Revoke one there and its tokens stop working right away; it has to ask you again to come back.

Tools

A signups only key sees add_contact alone. Each tool's inputs and outputs are in the API reference.

Comments

Campaigns

Mailing lists

Readers

Agents

Fleet

Overview

Website

Feeds

Series

Briefings

Templates

Snippets

Contacts

Forms

Redirects

Audio versions

Tags and fields

Segments

Polls and surveys

Domains

Paid subscriptions

Paid tiers

Pledges

Offers

Editor collaboration

Sponsorships

Gifts

Gift links

Comps

Media library

AI writing

API keys

Agent safety

Protocol

The server is stateless: no sessions, every request carries a key or a token. It speaks the 2026-07-28 revision and answers clients on the 2025 revisions the same way. /api/mcp is the same server, for clients that want an /api path.

Keys start with mc_, or mc_eu_ for an account in the European Union, and only work at their own region's address.

OAuth follows the MCP authorization spec. A request without credentials gets a 401 pointing at /.well-known/oauth-protected-resource/mcp, whose authorization server is https://flockstack.io. Apps identify themselves with a client metadata document (Grok Bot, on Cursor's agents, registers instead), sign the user in with the authorization code flow and PKCE, and get tokens bound to https://flockstack.io/mcp with the flockstack:full scope, or a narrower one (flockstack:read, flockstack:drafts, flockstack:send for send with approval). Access tokens last an hour; refresh tokens rotate and keep the connection for 90 days after its last use.