# GrowthBook MCP

> GrowthBook MCP manages feature flags and experiments directly from your AI agent. Use this connector to control environments, toggle product features on or off, and organize entire experimentation roadmaps without ever opening a dashboard. It lets you run complex flag logic using natural language prompts.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Tags:** feature-flags, a-b-testing, experimentation, product-growth, deployment-control

## Description

Need to switch a feature flag for beta testing? You don't want to navigate three separate dashboards just to turn something on in production, then check if it worked in staging. This MCP connects your GrowthBook account to any AI agent, letting you manage all your product flags and experiments via simple conversation.

It lets you organize the entire experimentation roadmap by creating projects or auditing every configured environment across your stack. Need to know what flags are active? You can pull a detailed list of features or retrieve deep metadata for specific project IDs instantly. This is how development teams maintain flow, managing infrastructure changes and flag rollouts without context switching. If your current AI client supports Vinkius, you'll get access to this full catalog right where you are working.

## Tools

### create_environment
Builds a brand-new GrowthBook environment for testing purposes.

### create_feature
Creates and registers a new feature flag in the system.

### create_project
Sets up an organized container for related features and experiments.

### delete_environment
Removes a specified GrowthBook environment from the system.

### delete_feature
Permanently deletes an existing feature flag.

### delete_project
Deletes all associated resources within a project container.

### get_feature
Retrieves the current settings and metadata for one specific feature flag.

### get_project
Fetches all details about a specific project using its ID.

### list_environments
Gives a complete list of every environment configured (e.g., production, staging).

### list_features
Lists all available feature flags and their current status.

### list_projects
Shows a list of every organized project within GrowthBook.

### toggle_feature
Switches the state of a feature flag (on or off) for immediate testing.

### update_environment
Makes changes to an existing environment's configuration settings.

### update_feature
Partially modifies the metadata or targeting rules for a feature flag.

### update_project
Edits the name, description, or settings of an existing project container.

## Prompt Examples

**Prompt:** 
```
List all feature flags for the project 'frontend-v2'.
```

**Response:** 
```
I've retrieved the features for 'frontend-v2'. You have 3 active flags: 'new-hero-banner', 'dark-mode-toggle', and 'beta-checkout'. Would you like to see the details for any of these?
```

**Prompt:** 
```
Enable the 'dark-mode-beta' feature flag in production.
```

**Response:** 
```
I have successfully toggled the 'dark-mode-beta' flag to ON in the production environment. The change is now live.
```

**Prompt:** 
```
Get the details and settings for project ID 'proj_123'.
```

**Response:** 
```
Inspecting project 'proj_123'... It's named 'Mobile App Redesign' with the slug 'mobile-redesign'. It currently has 12 associated features and is configured with custom targeting settings.
```

## Capabilities

### Toggle Feature Status
Turn any feature flag on or off across specific environments with a single command.

### Manage Project Scope
Create, read, update, or delete entire projects to keep your product experimentation organized.

### Audit Environments
List all configured environments—like production and staging—to verify where flags are deployed.

### Create Flags
Generate new feature flags for upcoming product features directly through your agent.

## Use Cases

### Checking Status Before a Demo
The PM needs to confirm that the 'checkout-v2' feature flag is correctly enabled in the production environment before a client demo. They prompt their agent: 'List all environments and check the status of checkout-v2.' The MCP responds immediately with confirmation, saving them 15 minutes of dashboard digging.

### Emergency Feature Kill Switch
A bug is found in a newly released feature. Instead of rushing through multiple tabs to disable it, the engineer asks their agent: 'Toggle the new-checkout-flow flag to OFF in production.' The change happens instantly and audibly.

### Roadmap Cleanup
The team finished testing an old feature. Instead of leaving behind clutter, the lead prompts the agent to delete both the associated project container and the specific flags using `delete_project` and `delete_feature`, keeping GrowthBook clean.

### Environment Drift Detection
The DevOps team suspects one environment is misconfigured. They use the MCP to list all environments, quickly spotting that 'staging' hasn't been updated with the latest settings, prompting them to run `update_environment`.

## Benefits

- Saves time by eliminating manual clicks. Instead of navigating to the GrowthBook UI, you simply ask your agent to toggle a feature flag or list all project details, keeping you in your current workflow.
- Reduces human error dramatically. You never have to copy/paste environment names or remember which specific version needs updating; just tell your agent what you want done and it handles the context.
- Speeds up rollouts. Need to check if a beta feature is active only on staging? Use your agent to list all environments, then ask to toggle the flag—all in one conversational flow.
- Better project organization. Instead of guessing where related flags live, you can use the MCP to create new projects or list existing ones, keeping your entire experimentation roadmap clean and auditable.
- Deep inspection is instant. Need to know exactly what a feature's current targeting rules are? Use the `get_feature` tool to pull detailed metadata without opening any deep-dive settings pages.

## How It Works

The bottom line is that you talk to it using plain English, and it executes complex infrastructure commands for you.

1. Subscribe to this MCP and enter your GrowthBook Secret Key.
2. Connect the service to any compatible AI client (like Cursor or Claude).
3. Ask your agent to perform an action, like 'Toggle the dark mode flag in staging'—it handles the rest.

## Frequently Asked Questions

**How do I list all environments using GrowthBook MCP?**
You ask your agent to perform the 'list environments' action. It returns a complete, up-to-date catalog of every environment configured in your account (like dev and production).

**Can I update project settings with GrowthBook MCP?**
Yes, you can use `update_project` to edit an existing container's details. This lets you organize your experimentation roadmap by changing descriptions or name tags.

**Does GrowthBook MCP only work for toggling features?**
No. It handles the full lifecycle, allowing you to create flags with `create_feature`, audit them with `get_feature`, and even delete them completely using `delete_feature`.

**What if I need to check which features exist?**
Use the 'list features' tool. This pulls a comprehensive list of every flag you have, letting you verify existence before trying to toggle or update anything.