Skip to main content
Glama
GrowthBook MCP Server

GrowthBook MCP Server

Official
by growthbook

GrowthBook MCP サーバー

GrowthBook MCPサーバーを使用すると、LLMクライアントから直接GrowthBookを操作できます。実験の詳細を確認したり、機能フラグを追加したりといった操作が可能です。

設定

環境変数MCP サーバーを構成するには、次の環境変数を使用します。

変数名

状態

説明

GB_API_KEY

必須

GrowthBook API キー。

GB_ユーザー

必須

あなたの名前。機能フラグを作成するときに使用されます。

GB_API_URL

オプション

GrowthBook API URL。デフォルトはhttps://api.growthbook.ioです。

GB_APP_ORIGIN

オプション

GrowthBook アプリの URL はデフォルトで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. 設定を保存してClaudeを再起動します

チャット ウィンドウにハンマー アイコンが表示され、GrowthBook MCP サーバーが接続され、利用可能になったことが示されます。


Related MCP server: langfuse-mcp

ツール

  • 機能フラグ

    • create_feature_flag : 機能フラグを使用して要素を作成、追加、またはラップします。キー、タイプ、デフォルト値、メタデータを指定します。

    • get_feature_flags : GrowthBook インスタンス内のすべての機能フラグを一覧表示します。

    • get_single_feature_flag : ID で特定の機能フラグの詳細を取得します。

    • get_stale_safe_rollouts : ロールバックまたはリリースされたすべての安全なロールアウト ルールを一覧表示します。

    • create_force_rule : ターゲット条件を持つ機能フラグを作成します。

    • generate_flag_types : 機能フラグの型を生成する

  • 実験

    • get_experiments : GrowthBook 内のすべての実験を一覧表示します。

    • get_experiment : ID で特定の実験の詳細を取得します。

    • 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