MCP Integration

Let Claude manage your flags

Connect Cortex to Claude Code via MCP. Create flags, configure rollouts, and analyze feature adoption with natural language.

AI-powered feature management

Claude can help you manage feature flags through conversation. Create new flags, configure targeting rules, adjust rollout percentages, and analyze adoption - all naturally.

  • Create and configure flags conversationally
  • Manage rollouts and targeting rules
  • Analyze feature adoption and impact
claude

user: Create a new feature flag for the redesigned checkout and roll it out to 10% of pro users

claude: I'll create that flag for you.

Created: checkout_redesign
Targeting: plan == "pro"
Rollout: 10%

Done! The flag is now active for 10% of pro users. Want me to monitor adoption?

Setup in 2 minutes

Connect Cortex to Claude Code

1

Install the MCP server

npm install -g @brainzlab/cortex-mcp
2

Add to your Claude Code config

// ~/.claude/config.json
{
  "mcpServers": {
    "cortex": {
      "command": "cortex-mcp",
      "args": ["--api-key", "YOUR_API_KEY"]
    }
  }
}
3

Start managing flags with Claude

Open Claude Code and manage features naturally:

"Show me all active feature flags and their rollout status"

What you can ask

Natural language feature management

Create a new feature flag called dark_mode for the settings page

Quick flag creation

Roll out the new_dashboard flag to 50% of enterprise users

Targeted percentage rollouts

What's the adoption rate for the ai_suggestions feature?

Adoption analytics

Enable the beta_features flag for user john@example.com

Individual user targeting

Show me all flags that are partially rolled out

Rollout status overview

What would happen if I enabled new_checkout for all users?

Impact analysis

MCP Tools

Tools available to Claude

cortex_list_flags

List all feature flags with status

params: environment, status

cortex_create_flag

Create a new feature flag

params: name, description, default

cortex_update_flag

Update flag configuration

params: flag_id, enabled, rollout

cortex_set_targeting

Configure targeting rules

params: flag_id, rules

cortex_get_stats

Get flag evaluation statistics

params: flag_id, time_range

cortex_check_user

Check flag status for a user

params: flag_id, user_id

Safe by default

Claude will always confirm before making changes to feature flags. Destructive operations like disabling flags for all users require explicit confirmation.

Ship features safely

Get started with Cortex and Claude Code today.