Flagsmith MCP Server
Published · Updated
At a glance
- Category
- Code & Git
- GitHub repository
- Flagsmith/flagsmith
- Watch out for
- The server is marked early access, and the experiment and metric tools are Beta, with only one active experiment allowed per feature.
Flagsmith publishes its own MCP server, and the source lives in the mcp subdirectory of the main Flagsmith/flagsmith repository. It talks to the Flagsmith Admin API, so an agent can read and change feature flags, segments, environments and a few organisation settings rather than just evaluate flags the way an SDK would.
Flagsmith SaaS customers connect to a hosted endpoint at https://mcp.flagsmith.com over Streamable HTTP. Interactive clients sign in with OAuth in the browser, while CI jobs and other non-interactive agents send an Organisation API key. You can also run it yourself: there is a Docker image, flagsmith/flagsmith-mcp, meant to sit next to a self-hosted Flagsmith API, and a stdio mode launched with uvx for local use.
The docs label the server early access. An older Gram-hosted endpoint is deprecated and was due to shut down on 30 June 2026, so older configs that point at app.getgram.ai need updating. Tool names did not change in that move.
How it connects
Your AI app
An assistant or agent that supports MCP
Flagsmith MCP Server
Runs as
- Python (uv / pip)
- Remote (HTTP)
Gives the agent
- Feature flags
- Environment states and versions
- Segments and overrides
- Multivariate options
- Experiments and metrics (Beta)
- Projects and organisation
- Enterprise workflows
Flagsmith
Signs in with
- OAuth / browser sign-in
What it can do
- Feature flags
- create_feature, update_feature, get_feature_flag and list_project_features manage flags, and helpers like get_feature_code_references and get_feature_evaluation_data show where a flag is used and how it is being evaluated.
- Environment states and versions
- For environments using v2 feature versioning there are tools such as create_environment_feature_version and publish_environment_feature_version; older environments use update_environment_feature_state and update_feature_state instead.
- Segments and overrides
- create_project_segment, list_project_segments and update_project_segment manage segments, and create_segment_override or delete_feature_segment control per-segment flag values.
- Multivariate options
- create_feature_multivariate_option, list_feature_multivariate_options, update_feature_multivariate_option and delete_feature_multivariate_option handle variant values for a flag.
- Experiments and metrics (Beta)
- create_experiment, get_experiment_results and get_experiment_exposures run and read experiments, with create_metric and list_metrics for the metrics behind them.
- Projects and organisation
- list_organizations, list_projects_in_organization, list_project_environments and create_organization_invite cover navigation and invites.
- Enterprise workflows
- On paid SaaS or self-hosted Enterprise, tools like create_environment_feature_change_request and add_feature_to_release_pipeline work with change requests and release pipelines.
Setting it up
For Claude Code, run claude mcp add --transport http flagsmith https://mcp.flagsmith.com and then use /mcp inside Claude Code to finish the OAuth login. To use a key instead, append --header "Authorization: Api-Key <your-api-key>"; the docs stress that the Api-Key prefix is required. In Cursor, add a flagsmith entry with "url": "https://mcp.flagsmith.com" to ~/.cursor/mcp.json or .cursor/mcp.json, leaving out headers to use OAuth. VS Code with Copilot uses an mcpServers block in the workspace-root .mcp.json with "type": "http" and the same URL. For stdio, set TRANSPORT=stdio and FLAGSMITH_API_TOKEN and run uvx --from "git+https://github.com/Flagsmith/flagsmith.git@main#subdirectory=mcp" flagsmith-mcp. Self-hosters run the flagsmith/flagsmith-mcp:latest image with FLAGSMITH_API_URL pointing at their API and MCP_SERVER_URL set to the public MCP address; it listens on port 8000 with the endpoint at /mcp.
claude mcp add --transport http flagsmith https://mcp.flagsmith.comIf the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Create a new feature flag for a branch you are working on and turn it on only in the staging environment.
- Find which flags have code references and evaluation data before cleaning up stale ones.
- Add a segment for beta users and set a segment override so the flag is on for them.
- Set up an experiment on a feature and pull its exposures and results later.
- Open a change request for a production flag change on an Enterprise plan instead of editing it directly.
Limitations and things to watch
- The server is marked early access, and the experiment and metric tools are Beta, with only one active experiment allowed per feature.
- Several tools only work on environments with v2 feature versioning and others only on environments without it, so the agent has to pick the right set.
- The stdio transport has no OAuth and always needs a static API key, and setting FLAGSMITH_API_TOKEN on a self-hosted server disables OAuth so every client acts as one identity in the audit log.
- The self-hosted container serves plain HTTP, so you need a reverse proxy for TLS, and OAuth only works if your deployment exposes the MCP authorisation endpoints.
- Release pipeline, change request and role tools are limited to paid SaaS or self-hosted Enterprise.
Sources
Written from the project's own documentation, checked November 2026.
- docs.flagsmith.com /integrating-with-flagsmith/mcp-server
- docs.flagsmith.com /deployment-self-hosting/mcp-server
- github.com /Flagsmith/flagsmith/tree/main/mcp
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.