GrowthBook MCP Server

by growthbook
MIT License
111

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GB_USERYesYour name. Used when creating a feature flag.
GB_API_KEYYesA GrowthBook API key.
GB_API_URLNoYour GrowthBook API URL.https://api.growthbook.io
GB_APP_ORIGINNoYour GrowthBook app URL.https://app.growthbook.io

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_environments

Fetches all environments from the GrowthBook API. GrowthBook comes with one environment by default (production), but you can add as many as you need. Feature flags can be enabled and disabled on a per-environment basis. You can also set the default feature state for any new environment. Additionally, you can scope environments to only be available in specific projects, allowing for further control and segmentation over feature delivery.

get_projects

Fetches all projects from the GrowthBook API

get_sdk_connections

Get all SDK connections, which are how GrowthBook connects to an app. Importantly, users need the key, which is a public client key that allows the app to fetch features and experiments the API

create_sdk_connection

Create an SDK connection for a user. Returns an SDK clientKey that can be used to fetch features and experiments.

create_feature_flag

Create, add, or wrap an element with a feature flag.

get_feature_flags

Fetches all feature flags from the GrowthBook API. Flags are returned in the order they were created, from oldest to newest.

get_single_feature_flag

Fetches a specific feature flag from the GrowthBook API

get_stale_safe_rollouts

Fetches all complete safe rollouts (rolled-back or released) from the GrowthBook API

generate_flag_types

Generate types for feature flags

get_experiments

Fetches all experiments from the GrowthBook API

create_force_rule

Create a new force rule on an existing feature. If the existing feature isn't apparent, create a new feature using create_feature_flag first. A force rule sets a feature to a specific value for a specific environment based on a condition. For A/B tests and experiments, use create_experiment instead.

get_experiment

Gets a single experiment from GrowthBook

get_attributes

Get all attributes

search_growthbook_docs

Search the GrowthBook docs on how to use a feature

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/growthbook/growthbook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server