# Unleash MCP server

> Create and manage Unleash feature flags and rollout strategies from your coding assistant.

- Listing: https://mcp.tc/i/unleash
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [Developer Tools](https://mcp.tc/c/developer-tools)
- Vendor: Unleash
- Homepage: <https://www.getunleash.io/>
- Repository: <https://github.com/Unleash/unleash-mcp>
- Package: npm `@unleash/mcp`

## About

Connects an AI coding assistant to the Unleash Admin API. It can decide whether a code change needs a feature flag, check for existing flags, create flags, configure rollout strategies, toggle flags per environment and produce instructions for removing flagged code.

Runs locally over stdio with npx (@unleash/mcp). It needs Node.js 22 or higher, the URL of your Unleash instance and a personal access token. A default project ID can be set optionally. Unleash instances can also expose an experimental built-in remote MCP endpoint, which is separate from this package.

## What it can do

- Create feature flags with validation and typing
- Detect existing flags to avoid duplicates
- Evaluate whether a code change needs a flag
- Configure rollout strategies for a flag
- Enable or disable a flag in an environment
- List projects and flags, and read flag state
- Generate cleanup instructions for removing flagged code

## Example prompts

- "Check if this change needs a feature flag and create one if so"
- "List all feature flags in the checkout project"
- "Set a 25% gradual rollout for the new-search flag"
- "Show me the cleanup steps for the old-banner flag"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio unleash --env "UNLEASH_BASE_URL=<YOUR_UNLEASH_BASE_URL>" --env "UNLEASH_PAT=<YOUR_UNLEASH_PAT>" -- npx -y @unleash/mcp@latest
```

2. Start Claude Code and type `/mcp`. **unleash** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "unleash": {
      "command": "npx",
      "args": [
        "-y",
        "@unleash/mcp@latest"
      ],
      "env": {
        "UNLEASH_BASE_URL": "<YOUR_UNLEASH_BASE_URL>",
        "UNLEASH_PAT": "<YOUR_UNLEASH_PAT>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=unleash&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1bmxlYXNoL21jcEBsYXRlc3QiXSwiZW52Ijp7IlVOTEVBU0hfQkFTRV9VUkwiOiI8WU9VUl9VTkxFQVNIX0JBU0VfVVJMPiIsIlVOTEVBU0hfUEFUIjoiPFlPVVJfVU5MRUFTSF9QQVQ%2BIn19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "unleash": {
      "command": "npx",
      "args": [
        "-y",
        "@unleash/mcp@latest"
      ],
      "env": {
        "UNLEASH_BASE_URL": "<YOUR_UNLEASH_BASE_URL>",
        "UNLEASH_PAT": "<YOUR_UNLEASH_PAT>"
      }
    }
  }
}
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "unleash": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@unleash/mcp@latest"
      ],
      "env": {
        "UNLEASH_BASE_URL": "<YOUR_UNLEASH_BASE_URL>",
        "UNLEASH_PAT": "${input:unleash-pat}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "unleash-pat",
      "description": "UNLEASH_PAT",
      "password": true
    }
  ]
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "unleash": {
      "command": "npx",
      "args": [
        "-y",
        "@unleash/mcp@latest"
      ],
      "env": {
        "UNLEASH_BASE_URL": "<YOUR_UNLEASH_BASE_URL>",
        "UNLEASH_PAT": "<YOUR_UNLEASH_PAT>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add unleash --env "UNLEASH_BASE_URL=<YOUR_UNLEASH_BASE_URL>" --env "UNLEASH_PAT=<YOUR_UNLEASH_PAT>" -- npx -y @unleash/mcp@latest
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.unleash]
command = "npx"
args = ["-y", "@unleash/mcp@latest"]
env = { UNLEASH_BASE_URL = "<YOUR_UNLEASH_BASE_URL>", UNLEASH_PAT = "<YOUR_UNLEASH_PAT>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "UNLEASH_BASE_URL=<YOUR_UNLEASH_BASE_URL>" -e "UNLEASH_PAT=<YOUR_UNLEASH_PAT>" unleash npx -- -y @unleash/mcp@latest
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "unleash": {
      "command": "npx",
      "args": [
        "-y",
        "@unleash/mcp@latest"
      ],
      "env": {
        "UNLEASH_BASE_URL": "<YOUR_UNLEASH_BASE_URL>",
        "UNLEASH_PAT": "<YOUR_UNLEASH_PAT>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Details

- Server version: 0.5.0-beta.2
- Last checked: 2026-10-03
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/unleash (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
