You just shipped a killer feature before finishing your coffee. But will it work—or bring down prod?
Don't let vibe coding become vibe shipping.
With the official GrowthBook MCP Server, you can add feature flags, safe rollouts, A/B tests, and more to your app without ever leaving your code editor. VS Code, Cursor, Windsurf, Claude—whatever you use, now it can talk directly to GrowthBook.
When adding flags is this easy, there’s no excuse for risky deployments.
What’s an MCP Server?
MCP stands for Model Context Protocol, a standard that lets AI tools (like LLM editors) integrate with platforms like GrowthBook.
Most modern AI tools already support “tool calling,” the ability for an LLM to trigger specific developer-defined actions. MCP formalizes this into a plug-and-play protocol. So instead of writing custom glue code for every integration, AI tools and platforms can just connect over MCP and instantly work together.
GrowthBook’s MCP Server is the first complete example of this in the experimentation space. It’s open source, fully featured, and designed to streamline the way you work with feature flags and experiments.
For example, here we use the GrowthBook MCP to add a feature flag to our React app. The MCP Server creates the flag in GrowthBook, setting the flag type, default value, name, and more. It returns a direct link to the flag on GrowthBook, so you can quickly configure an experiment or safe rollout. Finally, the component code is updated to include the flag using the GrowthBook React SDK.
What You Can Do
The GrowthBook MCP Server currently supports 14 tools. Here are some highlights:
- Create a new feature flag and insert it into your code
- Set up a force rule for a flag, e.g., to restrict a feature to beta testers
- Detect stale safe rollouts and remove them from your codebase
- Generate type definitions for flags
- Create and insert a new SDK Connection
- Search GrowthBook docs from your editor
See the full list of Tools in the docs.
Setup
Add the GrowthBook MCP Server to most AI tools with the following JSON:
{
"mcpServers": {
"growthbook": {
"command": "npx",
"args": ["-y", "@growthbook/mcp"],
"env": {
"GB_API_KEY": "YOUR_API_KEY",
"GB_USER": "YOUR_NAME"
}
}
}
}
For detailed installation instructions for specific AI tools, see our docs.
What’s Next
It’s early days for MCP. As support grows for features like Resources and Prompting, we’ll be updating the GrowthBook MCP Server to take full advantage.
GrowthBook’s MCP Server is already super useful, but there is always more we can do. Like MCP, GrowthBook is open source. Try it, improve it—we’d love to see what you build.
Get Started
The GrowthBook MCP Server is live and ready. Use it in Cursor, Claude, and VS Code, or anywhere that supports MCP.
Have ideas, bugs, or weird edge cases? Open an issue or find us on Bluesky or LinkedIn—we’d love to hear what you build.