Unleash MCP Server
Published
At a glance
- Category
- Code & Git
- GitHub repository
- Unleash/unleash-mcp
- Watch out for
- The agent can submit change requests but cannot approve or apply them, and user, role and token management stays in the Unleash UI.
Unleash publishes its own MCP server in the Unleash/unleash-mcp repository. It lets an agent work with feature flags much as you would in the Unleash UI: find flags, roll them out, check who gets them and look at what changed. The Unleash docs start the local server with npx -y @unleash/mcp@latest, while the repo README describes a newer v2 that is still alpha and runs from source.
There are two deployment options. The local server is a Node process over stdio that calls your Unleash instance with a personal access token, acting with that user's permissions. Unleash Enterprise also hosts the same server over Streamable HTTP at /api/admin/mcp on your instance, which an admin switches on under Admin > Remote MCP Server.
The tools are grouped around tasks rather than API endpoints. Writes that land in an environment requiring change requests open a change request instead of applying directly, which keeps existing approval rules in place.
How it connects
Your AI app
An assistant or agent that supports MCP
Unleash MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Finding and reading
- Evaluating flags
- Rollouts and kill switches
- Experiments
- Flag and project configuration
- Audit and docs
Unleash
Signs in with
- Token
What it can do
- Finding and reading
- search looks up projects, flags, segments, context fields, tags, environments and more by name. inspect reads a project, flag, context field or segment in full, or a flag's exposure metrics in an environment.
- Evaluating flags
- evaluate reports whether a flag is enabled, disabled or unknown for a given context in an environment, such as a specific user ID in production.
- Rollouts and kill switches
- release turns a flag on for audiences, splits by value or applies a release template, and creates the flag if missing. kill_switch turns a permanent switch on or off for everyone or chosen audiences.
- Experiments
- experiment assigns values such as control and treatment to audiences, by share or one each, and can stop the test.
- Flag and project configuration
- manage_flag defines flags, sets parent dependencies, marks flags completed, archives and revives them. configure changes context fields, segments, tags, release templates and projects.
- Audit and docs
- audit shows what changed, who changed it and when, over at most 31 days. docs answers questions from the current Unleash documentation, and send_feedback reports problems to Unleash.
Setting it up
For the local server you need Node 24 or later. The Unleash docs have your MCP client start it with npx -y @unleash/mcp@latest, passing UNLEASH_BASE_URL and UNLEASH_PAT as environment variables. For the v2 alpha, clone https://github.com/Unleash/unleash-mcp.git, run git checkout v2, then pnpm install. Create a personal access token in Unleash under Profile > Personal API tokens. Register it in Claude Code with claude mcp add unleash -e UNLEASH_BASE_URL=https://your-instance.getunleash.io -e UNLEASH_PAT=user:your-personal-access-token -- node /absolute/path/to/unleash-mcp/src/index.ts. Claude Desktop, Cursor and VS Code take the same command, args and env in their mcpServers JSON. Optional variables are UNLEASH_MCP_SEND_FEEDBACK, UNLEASH_FEEDBACK_URL and UNLEASH_MCP_CONFIG_DIR. On Unleash Enterprise with the remote server enabled, run claude mcp add unleash https://your-instance.getunleash.io/api/admin/mcp --transport http; a browser login creates a token valid for 24 hours. Codex uses codex mcp add unleash --url followed by codex mcp login unleash. Test it by asking the agent to list your Unleash projects.
claude mcp add unleash -- npx -y @unleash/mcp@latestRuns the @unleash/mcp package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. 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
- Check whether a particular user gets a flag in production before closing a bug report.
- Roll a new flag out to 10% of users in production, opening a change request if that environment requires one.
- Turn off a feature quickly through a kill switch during an incident.
- Review everything that changed in production yesterday and who made each change.
Limitations and things to watch
- The agent can submit change requests but cannot approve or apply them, and user, role and token management stays in the Unleash UI.
- Both versions act with the permissions of the token or logged-in user, and tools like release, kill_switch and configure can change production flags.
- It only writes gradual rollouts, flags are archived rather than deleted, and audit searches cover at most 31 days.
- The hosted remote server is an Unleash Enterprise feature and an admin has to turn it on.
- send_feedback sends anonymous reports to Unleash once you agree; some clients, including OpenCode and Gemini, cannot show the consent prompt, so feedback stays off there unless set by environment variable.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /Unleash/unleash-mcp
- docs.getunleash.io /integrate/mcp
- registry.npmjs.org /@unleash/mcp
- raw.githubusercontent.com /Unleash/unleash-mcp/main/README.md
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.