USP
Unlike manual GrowthBook UI interaction, this MCP server allows AI agents to programmatically create, modify, and query feature flags and experiments, streamlining product iteration and testing workflows.
Use cases
- 01Creating new feature flags via natural language
- 02Querying existing experiment details
- 03Managing A/B tests with AI agents
- 04Automating product feature rollouts
- 05Dynamic feature toggling based on user input
Detected files (1)
server.jsonmcp_serverShow content (1955 bytes)
{ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.growthbook/growthbook-mcp", "description": "MCP Server for interacting with GrowthBook", "repository": { "url": "https://github.com/growthbook/growthbook-mcp", "source": "github" }, "version": "1.8.1", "packages": [ { "registryType": "npm", "identifier": "@growthbook/mcp", "version": "1.8.1", "transport": { "type": "stdio" }, "environmentVariables": [ { "description": "A GrowthBook API key or PAT.", "is_required": true, "format": "string", "is_secret": true, "name": "GB_API_KEY" }, { "description": "Your email address used with GrowthBook. Used when creating feature flags and experiments.", "is_required": true, "format": "string", "is_secret": false, "name": "GB_EMAIL" }, { "description": "Your GrowthBook API URL. Defaults to `https://api.growthbook.io`.", "is_required": false, "format": "string", "is_secret": false, "name": "GB_API_URL" }, { "description": "Your GrowthBook app URL Defaults to `https://app.growthbook.io`.", "is_required": false, "format": "string", "is_secret": false, "name": "GB_APP_ORIGIN" }, { "description": "Custom HTTP headers to include in all GrowthBook API requests. Use the pattern GB_HTTP_HEADER_<NAME> where <NAME> is converted to proper HTTP header format. Examples: GB_HTTP_HEADER_X_TENANT_ID=abc123, GB_HTTP_HEADER_CF_ACCESS_TOKEN=<token>. Multiple custom headers can be configured.", "is_required": false, "format": "string", "is_secret": false, "name": "GB_HTTP_HEADER_*" } ] } ] }
README
GrowthBook MCP Server
With the GrowthBook MCP server, you can interact with GrowthBook right from your LLM client. See experiment details, add a feature flag, and more.
Setup
Environment Variables Use the following env variables to configure the MCP server.
| Variable Name | Status | Description |
|---|---|---|
| GB_API_KEY | Required | A GrowthBook API key or PAT. When using a PAT, MCP server capabilities are limited by its permissions. E.g., if the user can't create an experiment in the app, they also won't be able to create one with the MCP server. |
| GB_EMAIL | Required | Your email address used with GrowthBook. Used when creating feature flags and experiments. |
| 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. |
| GB_HTTP_HEADER_* | Optional | Custom HTTP headers to include in all GrowthBook API requests. Use the pattern GB_HTTP_HEADER_<NAME> where <NAME> is converted to proper HTTP header format (underscores become hyphens). Examples: GB_HTTP_HEADER_X_TENANT_ID=abc123 becomes X-Tenant-ID: abc123, GB_HTTP_HEADER_CF_ACCESS_TOKEN=<token> becomes Cf-Access-Token: <token>. Multiple custom headers can be configured. |
Add the MCP server to your AI tool of choice. See the official docs for complete a complete guide.