Purpose
Featureflip MCP is an MCP (Model Context Protocol) server for managing Featureflip feature flags from AI coding assistants (such as Claude Code, Cursor, Copilot, Cline) and autonomous agents. It lets AI tools operate feature flags directly without manually logging into the dashboard.
Main Capabilities
The server provides the following toolset:
- CRUD operations: 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, get_targeting, update_targeting, manage_variation, list_segments, get_segment.
- Webhooks (requires an admin token): list_webhooks, list_webhook_deliveries, manage_webhook, deliver_webhook.
- Workflows: flag_status (cross-environment view), find_stale_flags (cleanup candidates), list_removal_candidates (flags that can be safely removed, along with the dependencies that must be removed first), wrap_feature (create a flag and get the corresponding language SDK code snippet).
Usage
- Create an API token in the Featureflip dashboard:
- Personal token (ffp_...): Settings → API Tokens, acts as you, suitable for interactive editors.
- Service token (ffs_...): Organization Settings → Service Tokens, a machine identity for CI/agents.
- Add the server to your MCP client (supports Cursor / Cline / generic JSON configuration).
- Call the above tools through an AI assistant or agent to manage feature flags.
Use Cases
- Developers quickly create, toggle, or update feature flags through an AI assistant within the editor.
- Agents manage feature flags in CI or automated processes.
- Find and clean up stale or removable feature flags to keep the codebase tidy.
- View flag status across environments, and edit targeting rules and variations.
Limitations
- Feature flag evaluation is not exposed through MCP; you need to use a language SDK in your application code.
- Every change operation is recorded in an audit log and associated with the token.
- Webhook-related operations require an admin token.
- For the full reference documentation, see:https://featureflip.io/docs/integrations/mcp/