• READ
  • WRITE
  • LIST
  • HUMAN

How to toggle feature flags with your AI

Connect GrowthBook to your agent to manage feature flags through chat. You can switch flags on or off across environments without touching the dashboard.

Ask AI about this page

Short answer

Can I toggle feature flags with my AI?

Yes. Your agent uses GrowthBook tools to check flag states and flip them on or off in specific environments. You'll see how this works in the breakdown below.

The outcomes.

Where your changes land.

Your agent handles the flag management so you don't have to.

READ

Current flag status

The agent pulls the current state of your flags. You'll know exactly what's active in production or staging.

WRITE

Immediate flag toggles

The agent flips a flag on or off in your chosen environment. This lets you kill a feature instantly via chat.

LIST

Full flag inventory

Your agent retrieves a list of all available flags. This makes it easy to find the right target for a change.

HUMAN

Final deployment decision

The agent performs the technical toggle, but you decide which flags are safe to change. You stay in control of the rollout.

The workflow

What your AI does when the request arrives.

Your agent translates your chat commands into direct actions in GrowthBook.

  1. Find the flag

    The agent looks through your available flags to find the one you mentioned.

    list_features
  2. Check the state

    It looks up the specific flag to see if it's currently on or off.

    get_feature
  3. Switch the flag

    The agent executes the command to change the flag's state in your environment.

    toggle_feature
  4. Verify the update

    It checks the flag one last time to confirm the change actually took effect.

    get_feature

Try it

Copy these to start.

Use these prompts to manage your flags.

Starting points

Replace the flag names and environment names with your actual project details.

GrowthBook Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_KNp7r3vX1MWcig4imXo7kmsnq96l2Q8qFEcS5YIM/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — GrowthBook capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "growthbook-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_KNp7r3vX1MWcig4imXo7kmsnq96l2Q8qFEcS5YIM/mcp"
    }
  }
}
Copy into chat04
  • List all feature flags in my production environment.

  • Is the 'new-ui-header' flag enabled in staging?

  • Turn off the 'experimental-search' flag in production.

  • Enable the 'beta-dashboard' flag in the development environment.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect GrowthBook once, then ask.

Connect your account once and your agent is ready. Your login details stay encrypted on our side.

Connect GrowthBook to your AI

FAQ

How this task behaves.

  • 01

    Can the AI create new feature flags?

    No. The agent can only toggle or view flags that already exist in GrowthBook.

  • 02

    Can the AI change experiment targeting rules?

    No. The agent is limited to toggling flags on or off; it cannot change targeting logic or weights.

  • 03

    How do I specify which environment to change?

    Just mention the environment in your prompt, like 'production' or 'staging'.

  • 04

    Can the AI delete flags?

    No. The agent can only toggle the state of a flag, not delete it from your project.

  • 05

    Does the agent need my GrowthBook password?

    No. You connect via a secure link, and your credentials stay encrypted.

  • More questions about GrowthBook? The Connector page answers them. See everything the GrowthBook Connector can do

Connect GrowthBook to Claude, Cursor, ChatGPT & more