Skip to main content
Glama
GrowthBook MCP Server

GrowthBook MCP Server

Official
by growthbook

Сервер GrowthBook MCP

С сервером GrowthBook MCP вы можете взаимодействовать с GrowthBook прямо из вашего клиента LLM. Смотрите подробности эксперимента, добавляйте флаги функций и многое другое.

Настраивать

Переменные среды Используйте следующие переменные среды для настройки сервера MCP.

Имя переменной

Статус

Описание

GB_API_KEY

Необходимый

API-ключ GrowthBook.

GB_USER

Необходимый

Ваше имя. Используется при создании флага функции.

GB_API_URL

Необязательный

URL-адрес вашего API GrowthBook. По умолчанию https://api.growthbook.io .

GB_APP_ORIGIN

Необязательный

URL-адрес вашего приложения GrowthBook по умолчанию — https://app.growthbook.io .

Ниже приведены инструкции по добавлению сервера MCP к клиенту. Любой клиент, поддерживающий MCP, также совместим. Ознакомьтесь с его документацией, чтобы узнать, как добавить сервер.

Курсор

  1. Открыть Настройки курсора → MCP

  2. Нажмите Добавить новый глобальный сервер MCP.

  3. Добавьте запись для GrowthBook MCP, следуя приведенному ниже образцу:

{
  "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. Сохраните настройки.

После успешного подключения к серверу вы должны увидеть зеленый активный статус!

Код VS

  1. Открыть настройки пользователя (JSON)

  2. Добавьте запись MCP:

 "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. Сохраните настройки.

GrowthBook MCP теперь готов к использованию в VS Code.

Клод Десктоп

  1. Откройте Настройки → Разработчик

  2. Нажмите «Изменить конфигурацию».

  3. Открыть claude_desktop_config.json

  4. Добавьте следующую конфигурацию:

{
  "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. Сохраните конфигурацию и перезапустите Клода.

В окне чата должен появиться значок молотка, указывающий на то, что ваш сервер GrowthBook MCP подключен и доступен!


Related MCP server: langfuse-mcp

Инструменты

  • Флаги функций

    • create_feature_flag : Создать, добавить или обернуть элемент с флагом функции. Укажите ключ, тип, значение по умолчанию и метаданные.

    • get_feature_flags : список всех флагов функций в вашем экземпляре GrowthBook.

    • get_single_feature_flag : Извлечение сведений о конкретном флаге функции по идентификатору.

    • get_stale_safe_rollouts : список всех правил безопасного развертывания, которые были откатены или отменены.

    • create_force_rule : Создать флаг функции с условием нацеливания.

    • generate_flag_types : Генерирует типы для флагов функций

  • Эксперименты

    • get_experiments : Список всех экспериментов в GrowthBook.

    • get_experiment : получение сведений о конкретном эксперименте по идентификатору.

    • get_attributes : список всех атрибутов пользователя, отслеживаемых в GrowthBook (полезно для таргетинга).

  • Окружающая среда

    • get_environments : список всех сред (например, производственных, промежуточных), настроенных в GrowthBook.

  • Проекты

    • get_projects : список всех проектов в вашем экземпляре GrowthBook.

  • Подключения SDK

    • get_sdk_connections : список всех подключений SDK (как GrowthBook подключается к вашим приложениям).

    • create_sdk_connection : создайте новое подключение SDK для вашего приложения, указав язык и среду.

  • Поиск документации

    • search_growthbook_docs : Поиск в документации GrowthBook информации об использовании функции по ключевому слову или вопросу.

Available Tools

14 tools
create_feature_flagC

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

Inputs: defaultValue (required), fileExtension (required), id (required), valueType (required), +4 more.

create_force_ruleA

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.

Inputs: environments (required), featureId (required), fileExtension (required), value (required), +2 more.

create_sdk_connectionC

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

Inputs: language (required), name (required), environment.

generate_flag_typesB

Generate types for feature flags

Inputs: no named parameters.

get_attributesD

Get all attributes

Inputs: no named parameters.

get_environmentsB

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.

Inputs: no named parameters.

get_experimentC

Gets a single experiment from GrowthBook

Inputs: experimentId (required).

get_experimentsC

Fetches all experiments from the GrowthBook API

Inputs: limit, offset, project.

get_feature_flagsC

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

Inputs: limit, offset, project.

get_projectsC

Fetches all projects from the GrowthBook API

Inputs: limit, offset.

get_sdk_connectionsC

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

Inputs: limit, offset, project.

get_single_feature_flagC

Fetches a specific feature flag from the GrowthBook API

Inputs: id (required), project.

get_stale_safe_rolloutsC

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

Inputs: limit, offset, project.

search_growthbook_docsC

Search the GrowthBook docs on how to use a feature

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as create_feature_flag vs. create_force_rule, but there is some overlap between get_feature_flags and get_single_feature_flag, which could cause confusion if an agent needs to fetch a specific flag versus all flags. The descriptions help clarify, but the boundary is not perfectly clear.

    Naming Consistency4/5

    The naming follows a consistent verb_noun pattern (e.g., create_feature_flag, get_experiments) with minor deviations like generate_flag_types (which uses 'generate' instead of 'get') and search_growthbook_docs (which includes 'growthbook' in the name). Overall, it is mostly predictable and readable.

    Tool Count5/5

    With 14 tools, the count is well-scoped for a GrowthBook MCP server, covering key operations like creating flags, rules, connections, and fetching various resources. Each tool appears to earn its place without feeling excessive or insufficient for the domain.

    Completeness4/5

    The tool set provides good coverage for core GrowthBook operations, including CRUD-like actions for features, experiments, and connections, but there are minor gaps such as missing update or delete tools for flags or experiments, which agents might need to work around. The inclusion of search_growthbook_docs adds helpful context.

    Maintenance

    ActivityActive
    ResponsivenessMixed handling

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server for managing Bucketeer feature flags, providing tools for listing, creating, retrieving, updating, and archiving feature flags.
      5
      1
      MIT
    • A
      license
      C
      quality
      A
      maintenance
      MCP server for Langfuse observability. Query traces, debug exceptions, analyze sessions, and manage prompts and datasets for your LLM applications.
      48
      2,753 PyPI
      112
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for managing deep links, analytics, and app configuration on Grovs. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.
      16
      2
      MIT