Create and read feature flags, review experiments, generate flag types, search docs, and interact with GrowthBook's feature flagging and experimentation platform.
With the GrowthBook MCP server, you can interact with GrowthBook right from your LLM client. See experiment details, add a feature flag, and more.
Environment Variables Use the following env variables to configure the MCP server.
Variable Name | Status | Description |
---|---|---|
GB_API_KEY | Required | A GrowthBook API key. |
GB_USER | Required | Your name. Used when creating a feature flag. |
GB_API_URL | Optional | Your GrowthBook API URL. Defaults to https://api.growthbook.io . |
GB_APP_ORIGIN | Optional | Your GrowthBook app URL Defaults to https://app.growthbook.io . |
Find instructions below to add the MCP server to a client. Any client that supports MCP is also compatible. Consult its documentation for how to add the server.
{
"mcpServers": {
"growthbook": {
"command": "npx",
"args": ["-y", "@growthbook/mcp"],
"env": {
"GB_API_KEY": "YOUR_API_KEY",
"GB_API_URL": "YOUR_API_URL",
"GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
"GB_USER": "YOUR_NAME"
}
}
}
}
You should now see a green active status after the server successfully connects!
"mcp": {
"servers": {
"growthbook": {
"command": "npx",
"args": [
"-y", "@growthbook/mcp"
],
"env": {
"GB_API_KEY": "YOUR_API_KEY",
"GB_API_URL": "YOUR_API_URL",
"GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
"GB_USER": "YOUR_NAME"
}
}
}
}
GrowthBook MCP is now ready to use in VS Code.
claude_desktop_config.json
{
"mcpServers": {
"growthbook": {
"command": "npx",
"args": ["-y", "@growthbook/mcp"],
"env": {
"GB_API_KEY": "YOUR_API_KEY",
"GB_API_URL": "YOUR_API_URL",
"GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
"GB_USER": "YOUR_NAME"
}
}
}
}
A hammer icon should appear in the chat window, indicating that your GrowthBook MCP server is connected and available!
Feature Flags
create_feature_flag
: Create, add, or wrap an element with a feature flag. Specify key, type, default value, and metadata.get_feature_flags
: List all feature flags in your GrowthBook instance.get_single_feature_flag
: Fetch details for a specific feature flag by ID.get_stale_safe_rollouts
: List all safe rollout rules that have been rolled back or released.create_force_rule
: Create a feature flag with a targeting condition.generate_flag_types
: Generates types for feature flagsExperiments
get_experiments
: List all experiments in GrowthBook.get_experiment
: Fetch details for a specific experiment by ID.get_attributes
: List all user attributes tracked in GrowthBook (useful for targeting).create_experiment
: Creates a feature-flag based experiment.Environments
get_environments
: List all environments (e.g., production, staging) configured in GrowthBook.Projects
get_projects
: List all projects in your GrowthBook instance.SDK Connections
get_sdk_connections
: List all SDK connections (how GrowthBook connects to your apps).create_sdk_connection
: Create a new SDK connection for your app, specifying language and environment.Documentation Search
search_growthbook_docs
: Search the GrowthBook documentation for information on how to use a feature, by keyword or question.Provides Typst documentation to MCP clients like Claude Code.
Analyzes Unreal Engine source code to provide context for AI assistants.
Access and interact with Harness platform data, including pipelines, repositories, logs, and artifact registries.
Extracts images from files, URLs, or base64 strings and converts them to base64 for LLM analysis.
A proxy server that enables existing REST APIs to be used as Model Context Protocol (MCP) servers.
Single tool to control all 100+ API integrations, and UI components
Gru-sandbox(gbox) is an open source project that provides a self-hostable sandbox for MCP integration or other AI agent usecases.
The ultimate open-source server for advanced Gemini API interaction with MCP, intelligently selects models.
An MCP server for generating images with the Midjourney API.
Tools to query latest Maven dependency information