Back to MCP Servers

Growthbook

Tools for creating and interacting with GrowthBook feature flags and experiments.

data-science-tools
By growthbook
2322Updated 1 month agoTypeScriptMIT

Installation

npx -y growthbook-mcp

Configuration

{
  "mcpServers": {
    "growthbook-mcp": {
      "command": "npx",
      "args": ["-y", "growthbook-mcp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes

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.

<a href="https://glama.ai/mcp/servers/@growthbook/growthbook-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@growthbook/growthbook-mcp/badge" alt="GrowthBook Server MCP server" /> </a>

Setup

Environment Variables Use the following env variables to configure the MCP server.

Variable NameStatusDescription
GB_API_KEYRequiredA 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_EMAILRequiredYour email address used with GrowthBook. Used when creating feature flags and experiments.
GB_API_URLOptionalYour GrowthBook API URL. Defaults to https://api.growthbook.io.
GB_APP_ORIGINOptionalYour GrowthBook app URL Defaults to https://app.growthbook.io.
GB_HTTP_HEADER_*OptionalCustom 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.

View source on GitHub