Unleash Mcp

io.getunleashPublished by getunleash.iov0.6.4Updated Nov 7, 2026

MCP server for Unleash: an AI-agent-friendly interface to Unleash

Overview

AI-generated overview

MCP server that lets an AI assistant search, inspect, evaluate and roll out Unleash feature flags, kill switches and experiments.

What you can do
  • Search projects, flags, segments, context fields, tags, templates and environments by name
  • Read projects, flags, context fields, segments and a flag's exposure metrics
  • Evaluate whether a flag is on, off or unknown for a context in an environment
  • Roll out flags to audiences, split by value or template, and toggle kill switches
  • Run A/B experiments, define flags, set dependencies, archive and revive them
  • Change context fields, segments, tags, templates and projects; read audit history and Unleash docs
When to use it
Useful when you manage Unleash feature flags and want an assistant to answer questions about flag state and targeting, or to perform rollouts, kill switches and experiments without opening the Unleash UI.
Requirements
Runs locally as a stdio process from source: Node 24 or later and pnpm, cloned from the repository (the README says it is in alpha and not published to npm). Requires UNLEASH_BASE_URL and a Unleash personal access token in UNLEASH_PAT. Optional: UNLEASH_MCP_SEND_FEEDBACK, UNLEASH_FEEDBACK_URL, UNLEASH_MCP_CONFIG_DIR.
Before you install
The server acts with the permissions of the personal access token in UNLEASH_PAT, so it can change flags, kill switches, experiments, segments and projects in your instance; keep the token out of client config files, for example via a .env file. Feedback reports are sent to Unleash (by default its hosted instance) unless consent is denied; a report names the tool, the error and the MCP client.

Installation

In SourceWeft

  1. Open Unleash Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Unleash MCP server

An MCP server that lets AI agents work with Unleash the way you'd work in the Unleash UI: find flags, roll them out, check who gets them, and see what changed. It's in alpha and isn't published to npm, so you run it from source.

Tools

ToolDescriptionExample prompt
searchFind projects, flags, segments, context fields, tags, tag types, flag creators, release templates, event types and environments by name."Which flags in the checkout project are tagged team:payments?"
inspectRead a project, flag, context field or segment in full, or a flag's exposure metrics in an environment."Show me everything about the new-checkout flag."
evaluateTell whether a flag is enabled, disabled or unknown for a context in an environment."Does user 42 get new-checkout in production?"
releaseTurn a flag on for audiences, split by value or through a release template, or turn it off. Creates the flag if it doesn't exist. Opens a change request where the environment requires one."Roll out new-checkout to 10% of users in production."
kill_switchTurn a permanent kill switch on or off, for everyone or chosen audiences. Creates the switch if it doesn't exist. Opens a change request where the environment requires one."Turn off payments in production."
experimentRun an A/B test: give audiences values such as control and treatment, by share or one each, or stop it. Creates a missing flag. Opens a change request where the environment requires one."Split checkout 50/50 between control and the new flow."
manage_flagDefine flags, set a parent dependency, mark flags completed, archive and revive them. Doesn't delete flags."Archive the old-banner flag."
configureChange context fields and their legal values, segments, tag types and tags, release templates and projects."Create a beta-testers segment for userId 1, 2 and 3."
auditRead what changed, who changed it and when, over at most 31 days."What changed in production yesterday?"
docsAnswer questions about feature flag practices and Unleash itself from the current Unleash documentation."How should I clean up old flags?"
send_feedbackReport to Unleash where the server fell short. Asks you first, unless UNLEASH_MCP_SEND_FEEDBACK decides.None: the agent calls it on its own.

Install locally

You need Node 24 or later and pnpm.

  1. Clone the repository and switch to the v2 branch:

    bash
    git clone https://github.com/Unleash/unleash-mcp.gitcd unleash-mcpgit checkout v2

    This gets you the v2 source.

  2. Install the dependencies:

    bash
    pnpm install

    Node runs the TypeScript source directly, so there's no build step.

  3. In Unleash, create a personal access token under Profile > Personal API tokens. The server acts with that user's permissions.

  4. Register the server with your MCP client. For Claude Code:

    bash
    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

    This adds a stdio server named unleash to Claude Code. For clients configured with JSON, such as Claude Desktop, Cursor or VS Code, add this to their MCP servers:

    json
    {  "mcpServers": {    "unleash": {      "command": "node",      "args": ["/absolute/path/to/unleash-mcp/src/index.ts"],      "env": {        "UNLEASH_BASE_URL": "https://your-instance.getunleash.io",        "UNLEASH_PAT": "user:your-personal-access-token"      }    }  }}
  5. Ask your agent "List my Unleash projects". If it answers with your projects, the server is running.

Configure the local server

VariableRequiredDescription
UNLEASH_BASE_URLYesURL of your Unleash instance, such as https://sandbox.getunleash.io/enterprise.
UNLEASH_PATYesPersonal access token the server calls Unleash with.
UNLEASH_MCP_SEND_FEEDBACKNotrue sends reports without asking, false leaves send_feedback out. Unset, you are asked on the first report.
UNLEASH_FEEDBACK_URLNoUnleash instance that receives send_feedback reports. Unset, Unleash's instance (https://eu.app.unleash-hosted.com/hosted/).
UNLEASH_MCP_CONFIG_DIRNoDirectory that keeps your answer, feedback_consent.json. Defaults to your platform config directory.

send_feedback sends anonymous reports to Unleash when the server fell short: a tool error, a request no tool supports, or a wrong result. A report names the tool, the error and the MCP client the agent runs in. Say yes to help us fix what doesn't work for you.

Nothing is sent until you agree. The first report asks you through your MCP client, and your answer is kept in feedback_consent.json, so you're asked once. The file sits in an unleash-mcp directory under $XDG_CONFIG_HOME when it's set, otherwise under ~/Library/Application Support on macOS, %APPDATA% on Windows and ~/.config on Linux. Delete it to be asked again.

If you dismiss the question, or your client can't show it, feedback stays off until the next session. OpenCode, Gemini and Antigravity never show it, so there feedback stays off unless UNLEASH_MCP_SEND_FEEDBACK is true.

To keep secrets out of your client config, copy .env.example to .env, fill it in, and start the server with node --env-file=.env /absolute/path/to/unleash-mcp/src/index.ts.

Connect to the remote server

Unleash Enterprise hosts this server, over Streamable HTTP, so nothing runs on your machine. An admin turns it on under Admin > Remote MCP Server; send_feedback reports are sent unless the admin turns them off there.

Register the server with your MCP client. For Claude Code:

bash
claude mcp add unleash https://your-instance.getunleash.io/api/admin/mcp --transport http

For Codex, add the server and then log in:

bash
codex mcp add unleash --url https://your-instance.getunleash.io/api/admin/mcpcodex mcp login unleash

The login opens your browser to log in to Unleash; Claude Code does the same on first use. Unleash then creates a personal access token for the client, valid for 24 hours, and the server acts with your permissions.

Where a browser login isn't possible, such as in CI, send a personal access token of your own instead and no login happens:

bash
claude mcp add unleash https://your-instance.getunleash.io/api/admin/mcp \  --transport http \  --header "Authorization: Bearer user:your-personal-access-token"

Codex takes the token from an environment variable named in its config.toml, as bearer_token_env_var under [mcp_servers.unleash].

Development

Source: README.md at commit d28ab39

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

12
  1. v0.6.4LatestNov 7, 2026
  2. v0.6.3Nov 5, 2026
  3. v0.6.2Nov 5, 2026
  4. v0.5.0Oct 29, 2026
  5. v0.5.0-beta.10Oct 22, 2026
  6. v0.5.0-beta.9Oct 16, 2026
  7. v0.5.0-beta.8Oct 15, 2026
  8. v0.5.0-beta.3Oct 7, 2026
  9. v0.5.0-beta.2Oct 1, 2026
  10. v0.5.0-beta.1Oct 1, 2026
  11. v0.5.0-beta.0Sep 28, 2026
  12. v0.4.1Sep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.