Integrations

MCP Server

3 min read

Connect Claude Code or Cursor to FlagPilot and manage feature flags. The FlagPilot MCP (Model Context Protocol) server exposes your flags as a set of callable tools that any MCP-compatible client can use.

💡
Note
The FlagPilot MCP server is built on the open Model Context Protocol standard. Any client that supports MCP — including Claude Code and Cursor — can connect to it.

What the MCP server provides

  • List all flags in your project with their current state
  • Toggle flags on or off with a single command
  • Read evaluation history and audit logs
  • Detect missing flags referenced in code but not yet created
  • Set percentage rollout values programmatically

Configure in Claude Code or Cursor

Add the following block to your mcp.json configuration file (in your project root or ~/.cursor/mcp.json for Cursor):

mcp.json
{
  "mcpServers": {
    "flagpilot": {
      "command": "npx",
      "args": ["-y", "@flagpilot/mcp"],
      "env": {
        "FLAGPILOT_SECRET_KEY": "fk_secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Example prompts

Once configured, you can ask your IDE client (like Claude Code or Cursor) to manage flags using natural language instructions:

"List all active feature flags in the project"

"Turn on the checkout-redesign flag for production"

"What flags were changed in the last 24 hours?"

"Create a new flag called ai-autocomplete and set it to 10% rollout"

Was this page helpful?