# Railflag

> Railflag is a freemium MCP server for developer tools. Feature flag tools for AI agents, with human approval on production changes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, VS Code, Web
- **Website:** https://railflag.com/mcp
- **MCP Registry name:** com.railflag/railflag
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

The README and registry entry describe Railflag as a hosted MCP server that lets an AI client create feature flags, adjust targeting and run percentage rollouts. The setup guide says it works with Claude Code, Cursor, VS Code with GitHub Copilot and Windsurf, and any other MCP client that supports Streamable HTTP with a bearer token.

The server covers more than flag toggling. It exposes tools for reading change history, suggesting what to monitor during a rollout, and importing flags from Unleash or AB Tasty. Imports are read-only on the source tool, so the other system is never written to.

The main design point is review. In environments that require approval, usually Production, an agent's change becomes a change request that a person must approve through a link. Every change is logged with the agent and the person it acts for, and read-only tokens let an agent answer questions without changing anything.

## Features

- **Flag creation and toggling:** Agents can list, read, create and switch feature flags through MCP tools.
- **Targeting and percentage rollouts:** Targeting rules can be changed and rollouts set to a share of users per environment.
- **Human approval for production:** Changes in approval-protected environments wait for a person to approve them.
- **Audit log of agent changes:** Each change records the agent and the person it acts on behalf of.
- **Read-only access tokens:** Tokens can be scoped so an agent can read flags and history but not make changes.
- **Migration from other flag tools:** Flags can be imported from Unleash or AB Tasty, with the source only read.

## Good for

- Create a flag for a new feature and enable it in staging from an AI coding assistant
- Roll a change out to a percentage of users and get suggestions on what to monitor
- Review who changed a flag and why using change history
- Move flags from Unleash or AB Tasty into Railflag without writing to the old system

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http railflag https://mcp.railflag.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.railflag.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "railflag": {
      "url": "https://mcp.railflag.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "railflag": {
      "type": "http",
      "url": "https://mcp.railflag.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "railflag": {
      "serverUrl": "https://mcp.railflag.com/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.railflag.com/mcp
```

Enter a Name (for example "Railflag"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "railflag": {
      "type": "http",
      "url": "https://mcp.railflag.com/mcp"
    }
  }
}
```

## Tools

15 of 29 tools say they're read-only. 14 of 29 tools say they can delete or change data. From the server's own tool annotations; not verified by us.

- `list_flags` (says read-only): All flags with their state in each environment.
- `get_flag` (says read-only): One flag: variations and full targeting in every environment, with versions for safe updates.
- `list_environments` (says read-only): Environments, whether they require approval, and their published config versions. Keys are not returned.
- `create_flag` (says it can change data): Creates a flag, off in every environment. Boolean flags have variations [false, true].
- `toggle_flag` (says it can change data): Turns a flag on or off in one environment. In environments that need approval this returns an approvalUrl for a person.
- `update_targeting` (says it can change data): Replaces a flag's targeting in one environment. Read it with get_flag first and pass its version as baseVersion so you never overwrite someone else's change. Rules are checked top to bottom; the first match wins.
- `set_rollout` (says it can change data): Sets the percentage split for the default rule, or for one rule by id. percentages has one number per variation and must add up to 100 (e.g. [80, 20] gives 20% true for a boolean flag). Raising a percentage only adds users.
- `get_history` (says read-only): Audit log for the project or one flag: who changed what, when and why.
- `get_change_request` (says read-only): Status of a change waiting for approval: pending, applied, rejected or failed.
- `suggest_watch_plan` (says it can change data): Drafts a Release Watch plan for a flag change: which signals to monitor (error rate, latency, conversions, new Sentry issues, the rollout split), the limits, and for how long. Describe the change with percentages (default rule split, like set_rollout), enabled (on/off) or a full targeting. Returns a watchPlanId to pass to the change tool. On plans without Release Watch it says what it would monito
- `get_watch` (says read-only): A watch: its status (draft, active, passed, paused, stopped), each signal's state, the timeline and the verdict.
- `list_watches` (says read-only): Watches in the project, newest first, optionally for one flag and by status (comma separated: draft, active, passed, paused, stopped, expired).
- `stop_watch` (says it can change data): Stops watching. Doesn't change the flag.
- `monitoring_coverage` (says read-only): The project's monitoring coverage: live Production flags nobody watches (ranked by risk), kill switches never tested, flags no SDK evaluates, and services missing error or latency metrics. Business plan.
- `connect_monitoring` (says it can change data): Starts connecting Prometheus/Grafana, Datadog, Sentry, New Relic or a Slack channel for alerts. Returns a one-time link: give it to the user, who enters the credentials there. Never ask the user for credentials in chat. Admins only.
- `list_sources` (says read-only): Vendors Railflag can import flags from, what it reads from each, and which are coming later.
- `connect_source` (says it can change data): Starts a read-only connection to the user's account at another flag vendor (see list_sources). Returns a link the user opens to enter their credentials there. Never ask the user to paste credentials into the chat. After they finish, call get_connection.
- `get_connection` (says read-only): Whether the user finished connecting, which source environments are visible, and whether decisions can be compared.
- `scan_source` (says it can change data): Reads all flags and their targeting from the connected vendor (read only). Runs in the background: poll get_run with the returned runId.
- `get_run` (says read-only): Status and result of a scan, compare or apply run.
- `plan_migration` (says it can change data): Builds a dry-run plan from the latest scan. envMap maps source environment ids (from get_connection or the scan) to Railflag environment keys, e.g. {"production": "staging"} to try production data in staging first. Nothing is written.
- `get_plan` (says read-only): A plan's summary, issues and items. full=true includes each item's targeting.
- `explain_item` (says read-only): The source vendor's definition of one flag next to what it becomes in Railflag, and its issues.
- `update_plan` (says it can change data): Records decisions on issues. Each issue lists its allowed actions: skip_flag, drop_rule, keep, rename (value = new key), overwrite. Info issues need no decision. Ask the user when the choice is not obviously safe.
- `compare_decisions` (says read-only): Asks the source vendor what sample users get (AB Tasty: Decision API, needs a Decision API key on the connection; Unleash: its server-side playground) without recording anything, and compares with the plan. Runs in the background: poll get_run.
- `apply_plan` (says it can change data): Writes the plan into one Railflag environment. Running it again changes nothing. Environments that need approval return an approvalUrl for a person. Never writes to the source vendor.
- `rollback_run` (says it can change data): Undoes one apply run: restores previous targeting and archives flags it created.
- `disconnect_source` (says it can change data): Deletes the stored credentials for a source connection.
- `get_code_guide` (says read-only): How to rewrite the source vendor's SDK calls to OpenFeature with Railflag: setup, regex patterns, before/after examples, notes. Apply it in the user's repo yourself and show them the diff.

## FAQ

### Can an AI agent change Production flags on its own?

No. In environments that require approval, such as Production, a change from an agent becomes a change request and applies only after a person approves it.

### Does the Railflag MCP server cost extra?

The setup guide says the MCP server is included on every plan, including the free Starter plan.

### Which AI tools work with Railflag?

Any MCP client that supports remote servers over Streamable HTTP with a custom Authorization header, including Claude Code, Cursor, VS Code with GitHub Copilot and Windsurf.

### Can I give the agent read-only access?

Yes. A read-only access token lets the agent list flags and read targeting and history, but changes are refused.

### How do I add Railflag to Claude Code?

Run this command in your terminal: claude mcp add --transport http railflag https://mcp.railflag.com/mcp

### What are the best alternatives to Railflag?

The closest alternatives to Railflag are Featureflip, Superflag, Flagpost, DevCycle and Launchdarkly.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 22 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Featureflip](https://ai-powered.com/mcp/featureflip): Featureflip is a freemium MCP server for developer tools.
- [Superflag](https://ai-powered.com/mcp/superflag): Superflag is a freemium MCP server for developer tools.
- [Flagpost](https://ai-powered.com/mcp/flagpost): Flagpost is an open-source MCP server for developer tools.
- [DevCycle](https://ai-powered.com/mcp/devcycle): DevCycle is an MCP server for developer tools.
- [Launchdarkly](https://ai-powered.com/mcp/launchdarkly-2): Launchdarkly is an open-source MCP server for developer tools.
- [featury](https://ai-powered.com/mcp/featury): featury is a freemium MCP server for productivity.
- [Levelrail](https://ai-powered.com/mcp/levelrail): Levelrail is an open-source MCP server for developer tools.
- [Porticol](https://ai-powered.com/mcp/porticol): Porticol is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/railflag
