Official GrowthBook MCP server for creating flags, getting experiments, and more.
https://github.com/growthbook/growthbook-mcpStop jumping between your code editor and the GrowthBook dashboard. This official MCP server brings your entire experimentation workflow directly into your AI coding assistant.
You're deep in a feature branch when you need to create a flag, check experiment results, or update targeting rules. Instead of staying in flow, you tab over to GrowthBook's web interface, hunt through projects, make your changes, then try to remember where you left off in your code.
The GrowthBook MCP server eliminates this friction by putting your entire A/B testing toolkit right in your editor's AI assistant.
Complete Feature Flag Management
Experiment Insights at Your Fingertips
Workflow Integration
During Code Reviews: "Show me the current state of the checkout-flow experiment while I review this PR"
Feature Development: "Create a feature flag for the new recommendation engine with 5% rollout to production users"
Debugging: "What experiments are running on the user profile page right now?"
Planning: "Generate TypeScript types for all our current feature flags so I can update the frontend"
The beauty of MCP: no installation, no build process, no configuration files to manage.
Add this to your Cursor, VS Code, or Claude Desktop config:
{
"mcpServers": {
"growthbook": {
"command": "npx",
"args": ["-y", "@growthbook/mcp"],
"env": {
"GB_API_KEY": "your_api_key",
"GB_USER": "your_name"
}
}
}
}
That's it. Your AI assistant now has direct access to your GrowthBook instance.
Instead of context switching between tools, you can:
This isn't just convenience—it's about maintaining flow state while building experimentation into your development process. When A/B testing becomes as easy as asking your AI assistant, you'll find yourself experimenting more thoughtfully and consistently.
The server comes from GrowthBook themselves, so you get the full API surface area with proper authentication and all the features you expect from their platform.
Your experimentation workflow just got a lot smoother.