GrowthBook
Create and read feature flags, review experiments, generate flag types, search docs, and interact with GrowthBook's feature flagging and experimentation platform.
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. |
Custom Headers Examples
For multi-tenant deployments or proxy configurations, you can add custom headers:
# Multi-tenant identification
GB_HTTP_HEADER_X_TENANT_ID=tenant-123
# Cloudflare Access proxy authentication
GB_HTTP_HEADER_CF_ACCESS_TOKEN=eyJhbGciOiJSUzI1NiIs...
Security Best Practices
- Always use HTTPS for API communication (default for GrowthBook Cloud)
- Store API keys and sensitive headers in environment variables, never hardcode them
- Use the Authorization header (via GB_API_KEY) for authentication
- Custom headers are useful for multi-tenant scenarios, proxy routing, or additional context
Add the MCP server to your AI tool of choice. See the official docs for complete a complete guide.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Claudeus WordPress MCP
A server for integrating with WordPress sites, enabling content management and interaction via the Model Context Protocol.
MCP JS Debugger
Debug JavaScript and TypeScript applications through the Chrome DevTools Protocol with full source map support.
Persona MCP Server
Dynamically manage AI personas from markdown files for AI assistants like Claude.
CCXT MCP Server
Interact with over 100 cryptocurrency exchange APIs using the CCXT library.
MCP My Mac
Exposes local Mac system information through a simple API for AI assistants.
AIO-MCP Server
An MCP server with integrations for GitLab, Jira, Confluence, and YouTube, providing AI-powered search and development utility tools.
Agentic Tools MCP Companion
A VS Code extension with a GUI for the agentic-tools-mcp server, enhancing task and memory management.
SonarQube
Provides seamless integration with SonarQube Server or Cloud, and enables analysis of code snippets directly within the agent context
Package README MCP Servers
A collection of MCP servers for fetching READMEs from various package managers.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.