Sponsored by Deepsite.site

GrowthBook MCP Server

Created By
growthbook7 months ago
Official GrowthBook MCP server for creating flags, getting experiments, and more.
Content

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 NameStatusDescription
GB_API_KEYRequiredA GrowthBook API key.
GB_USERRequiredYour name. Used when creating a feature flag.
GB_API_URLOptionalYour GrowthBook API URL. Defaults to https://api.growthbook.io.
GB_APP_ORIGINOptionalYour 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.

Cursor

  1. Open Cursor SettingsMCP
  2. Click Add new global MCP server
  3. Add an entry for the GrowthBook MCP, following the pattern below:
{
  "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"
      }
    }
  }
}
  1. Save the settings.

You should now see a green active status after the server successfully connects!

VS Code

  1. Open User Settings (JSON)
  2. Add an MCP entry:
 "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"
        }
      }
    }
  }
  1. Save your settings.

GrowthBook MCP is now ready to use in VS Code.

Claude Desktop

  1. Open SettingsDeveloper
  2. Click Edit Config
  3. Open claude_desktop_config.json
  4. Add the following configuration:
{
  "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"
      }
    }
  }
}
  1. Save the config and restart Claude

A hammer icon should appear in the chat window, indicating that your GrowthBook MCP server is connected and available!


Tools

  • 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 flags
  • Experiments

    • 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).
  • 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.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor