Featureflip
Official# @featureflip/mcp
MCP (Model Context Protocol) server for [Featureflip](https://featureflip.io) — manage feature flags
from AI coding assistants (Claude Code, Cursor, Copilot, Cline) and autonomous agents.
## Setup
1. Create an API token in the Featureflip dashboard:
- **Personal token** (`ffp_...`): Settings → API Tokens — acts as you, for interactive editor use.
- **Service token** (`ffs_...`): Organization Settings → Service Tokens — scoped machine identity for CI/agents.
2. Add the server to your MCP client:
### Claude Code
```bash
claude mcp add featureflip -e FEATUREFLIP_TOKEN=ffp_your_token -- npx -y @featureflip/mcp@latest
```
### Cursor / Cline / generic JSON config
```json
{
"mcpServers": {
"featureflip": {
"command": "npx",
"args": ["-y", "@featureflip/mcp@latest"],
"env": { "FEATUREFLIP_TOKEN": "ffp_your_token" }
}
}
}
```
Keep the `@latest`. Without a version, npx reuses the copy it downloaded the first time and never
checks npm again, so tools added in later releases would never show up in your client.
## Configuration
| Env var | Required | Default | Purpose |
|---|---|---|---|
| `FEATUREFLIP_TOKEN` | yes | — | `ffp_`/`ffs_` API token |
| `FEATUREFLIP_API_URL` | no | `https://api.featureflip.io` | API base URL |
| `FEATUREFLIP_ORG` | no | auto | Org slug (needed only for multi-org personal tokens) |
## Tools
CRUD: `list_projects`, `list_environments`, `list_flags`, `get_flag`, `create_flag`, `update_flag`,
`delete_flag`, `archive_flag`, `restore_flag`, `set_flag_expiry`, `set_flag_owner`, `set_flag_permanent`,
`toggle_flag`, `update_flag_environment_config`, `copy_flag_config`, `get_targeting`, `update_targeting`,
`manage_targeting_rule`, `manage_variation`, `list_segments`, `get_segment`, `manage_segment`,
`manage_project`, `set_default_flag_lifetime`, `manage_environment`, `list_sdk_keys`, `manage_sdk_key`,
`list_flag_triggers`, `manage_flag_trigger`, `list_rollout_ramps`, `manage_rollout_ramp`,
`list_change_freezes`, `manage_change_freeze`
Webhooks (Admin token required): `list_webhooks`, `list_webhook_deliveries`, `manage_webhook`, `deliver_webhook`
Workflows: `flag_status` (cross-environment view), `flag_evaluations` (what a flag served in one environment: evaluation counts by variation and rule), `compare_environments` (which flags differ between two environments),
`find_stale_flags` (cleanup candidates),
`list_removal_candidates` (flags safe to remove, with the prerequisite dependents to remove first),
`wrap_feature` (create flag + get the SDK snippet for your language)
Full reference: https://featureflip.io/docs/integrations/mcp/
## Notes
- Flag **evaluation** is not exposed over MCP — use the [language SDKs](https://featureflip.io/docs) in application code.
- Every mutation is audit-logged and attributed to the token.
## License
Apache-2.0
TDQS
Scored across 43 tools
Most tools map to a distinct resource+action, and the descriptions explicitly fence off near-neighbours (update_targeting vs manage_targeting_rule vs update_flag_environment_config, archive_flag vs delete_flag, toggle_flag vs update_flag_environment_config). The main soft spot is the removal-cleanup pair find_stale_flags and list_removal_candidates, which both surface 'flags safe to remove' with slightly different semantics, plus a cluster of read views (get_flag, flag_status, get_targeting, flag_evaluations) an agent must learn to pick between.
The surface is overwhelmingly snake_case verb_noun (list_projects, manage_environment, set_flag_owner, update_targeting, copy_flag_config), with 'manage_*' used predictably for multi-action CRUD tools. Deviations are mild: flag_status and flag_evaluations are noun-first with no verb, and wrap_feature uses 'feature' where everything else says 'flag'.
At 43 tools this is well past the heavy threshold, and the surface spans many sub-domains (flags, targeting, ramps, segments, environments, projects, SDK keys, triggers, webhooks, change freezes, cleanup). Individual tools earn their place, but the overall set is large enough that an agent must navigate a lot of surface to accomplish routine flag work.
Coverage is unusually deep: full flag lifecycle (create/get/list/update/delete/archive/restore/toggle/variations), targeting and rules, environments, projects, SDK keys, segments, triggers, webhooks incl. deliveries, rollout ramps, change freezes, and cleanup/expiry/ownership tooling. Gaps are minor and mostly deliberate: no project or environment deletion (explicitly 'cannot be deleted from here'), and no tool to list organization members even though set_flag_owner requires member emails.