An MCP server for feature flags, used safely

Flagger.gg's MCP server gives agents 11 flag tools, hosted (Streamable HTTP at mcp.flagger.gg) or local (flagger mcp). Tools appear only when the agent token's actions allow them, every write needs a note, kill is always allowed, and there is no approve tool, so agents can't approve their own changes.

Updated

Connect an agent

  1. Create an agent token in the console, scoped to one project, its environments and its actions.
  2. Point the agent at the server: https://mcp.flagger.gg with Authorization: Bearer flg_agent_…, or run flagger mcp on stdio with FLAGGER_TOKEN set.
  3. List the tools from your client. The agent sees only the tools its token's actions allow.
  4. Make a first change with a note, such as flag_create for the work it's about to ship, and find it in the audit log.

Client-by-client snippets for Claude Code, Codex and Cursor are in this setup guide. New to MCP itself? North Bay Ventures' plain guide to MCP explains clients, servers and tools.

The 11 tools

project and env are optional on every tool and default to the token's project and production. Each write takes note (required for agents) and an optional run.

ToolInputNeeds action
flags_list{notLive?, state?}read
flag_get{key}: the flag, its history and pending requestsread
flag_eval{key, context: {userId?, email?, isAdmin?, workspaceIds?}} → {on, reason}read
requests_list{status?}read
request_get{id}read
flag_create{key, description, summary, owner, notReady?, note}create
flag_set{key, state?, users?, workspaces?, percent?, confirmNotReady?, note}target or rollout
flag_target{key, users?, workspaces?, mode: replace | add | remove, note}target
flags_bulk{keys, state: on | admins, note}target or rollout
flag_revert{key, toEvent?, note}target or rollout
flag_kill{key, note}kill

Each tool's output is the API's JSON answer, as structuredContent and as text. A change that needs a person comes back as a normal result with status: "pending_approval" and the request; API errors come back as isError results with {error:{code,message}}.

What keeps it safe

  • Scope decides the tool list. A token with only read and kill sees six tools and can't create or roll out anything.
  • No approve tool. Approving is human-only, in the Release console or with a person's own flagger login.
  • Notes and runs. Writes without a note are refused for agents. The run is the tool's run input, else FLAGGER_RUN or the X-Flagger-Run header, else the MCP client's name.
  • Approvals mode. With approvals on, an agent in production can roll out up to the cap (10% by default); on, bulk on and wider percentages become requests.
  • Protected flags refuse agents except flag_kill.
  • Rate limits: 30 writes a minute per agent token, and with approvals on, 5 changes to one flag an hour. Kill is exempt.

Hosted or stdio

Both serve the same tools. The hosted server answers at https://mcp.flagger.gg and at https://mcp.flagger.gg/mcp, for clients that expect an /mcp path. It is stateless Streamable HTTP: POST gets a JSON answer, and the Mcp-Session-Id returned at initialize only carries the client's name for the run. Stdio (flagger mcp) calls api.flagger.gg with FLAGGER_TOKEN or the token stored by flagger login. The same operations are on the flagger CLI, with --json output.

Other feature flag MCP servers

Most flag vendors now publish an MCP server, and several are stronger than Flagger.gg's where their products are broader: experiments, segments, release pipelines and analytics. Facts below are from each vendor's own docs, linked, checked on November 8, 2026. Plans and pricing are left out.

VendorHow you connectWho the agent acts as, and guardrails
LaunchDarklyHosted at mcp.launchdarkly.com/mcp with OAuth; a local server for federal and EU accounts (docs)Acts with the permissions of the member who authorized it, re-authorized every 90 days. Toolsets cover flags, approval workflows, experiments and AgentControl configs.
UnleashA remote Streamable HTTP server on your Unleash instance (Enterprise), signed in with OAuth, or a local stdio server with a personal access token (docs)Acts with the permissions of the user or service account behind the token. Where an environment requires change requests, it files one instead of applying the change. Tools are built around outcomes, such as releasing a flag to 10% of users.
FlagsmithHosted at mcp.flagsmith.com with OAuth or an Api-Key header, or stdio; self-hosted deployments run their own (docs)Tools follow the Management API, including segments, change requests and release pipelines.
GrowthBookHosted at mcp.growthbook.io/mcp with OAuth, or run yourself with an API key (docs)The consent page offers Read only, Human-in-the-Loop (the default, where risky changes wait for you to confirm them), Full access or custom permissions.
StatsigAn MCP server for Codex, Cursor, Claude Code and others (docs)18 default tools, shown according to your permissions. Read-only users get the read tools; write tools need an API key with write permissions.
ConfigCatA local server started with npx @configcat/mcp-server and Public Management API credentials (docs)Manages flags, configs, environments, segments, members and permissions.
PostHogHosted at mcp.posthog.com/mcp; sign-in picks the US or EU region (docs)Flag and experiment tools sit beside analytics, error tracking and SQL in one server.
Flagger.ggHosted at mcp.flagger.gg with an agent token as a bearer, or flagger mcp on stdioA token per agent, scoped to one project, chosen environments and actions; tools listed by action; a note on every write and the run in the audit log; no approve tool.

Pick by where your flags already live, then check how the server limits the agent. Flagger.gg is built around the agent as its own identity, so the audit log shows which agent and which run made each change. Fuller comparisons: LaunchDarkly, Unleash, Flagsmith and PostHog, and GrowthBook, Statsig and ConfigCat.

FAQ

Is there an MCP server for feature flags?

Yes. Flagger.gg's MCP server is hosted at mcp.flagger.gg and also runs locally as flagger mcp, with 11 tools to list, read, create, set, target, bulk-change, revert, kill and explain flags and to read approval requests. LaunchDarkly, Unleash, Flagsmith, GrowthBook, Statsig, ConfigCat and PostHog publish MCP servers too; see the comparison above.

Can an agent approve its own flag change over MCP?

No. There is no approve tool, and agent tokens can't approve through the API either.

Why can't my agent see flag_create?

Its token doesn't have the create action. Tools are listed only when the token's actions allow them.

Which feature flag tools have an MCP server?

As of November 2026, LaunchDarkly, Unleash, Flagsmith, GrowthBook, Statsig, ConfigCat and PostHog all document MCP servers, as does Flagger.gg. Most connect with a person's sign-in or an API key; Flagger.gg gives each agent its own token, scoped to one project, chosen environments and actions.

What URL do I give my MCP client?

https://mcp.flagger.gg, or https://mcp.flagger.gg/mcp if your client expects an /mcp path, with Authorization: Bearer and your agent token.

Does the MCP server need a session?

No. Hosted MCP is stateless; requests without a session id work.

Ship your next change behind a flag.

Sign up, add an SDK key to your app and give your agent a token.

Sign up