GG

growthbook/growthbook-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

26 stars 24 forks 品質 83 トレンド 20MIT

フラグを作成したり、実験をしたりするための公式 GrowthBook MCP サーバー.

概要

4つのツールでGrowseBook用の薄いMCPサーバー: 競争は、レポのスキルに住んでおり、です。 能力は、読み取りと書き込みAPIツール(エンドポイントフォーマッタなし)に分割されるため、クライアントはReadHint / destructiveHintを正しく評価できます。 ツールは成長ブックでプレフィックスされます。そのため、クライアントに複数のMCPサーバーがロードされたときには、非曖昧になります。 コンパイルされたエントリポイントで MCP クライアントを指す: クライアントは、: - [http://127.0.0.1:3333/mcp — 完全な (skills + API read/write) - [http://127.0.0.1:3333/mcp/api] - 機能のみ (growthbook api read + Growthbook api write) 認証されていないリクエストは、 /.well-known/oauth-protected-resource で WWW-Authenticate を指すと401 を受け取ります。これにより、GrowseBook Authorization Server を宣伝しています。 MCP を処理する前に、サーバーは、MCP で成長ブック REST (GET /api/v1/) をベアラーでプローブします.

概要(AI 翻訳)

4つのツールでGrowseBook用の薄いMCPサーバー:

| ツール | 目的 | お問い合わせ | [growthbook_list_skills | レベルトップレベルのスキルエントリーポイント(名+説明) | | [growthbook_read_skill | リストされたスキルまたは資格のあるお子様のワークフロー([[[feature-flags)または[feature-flags/references/flag-create)を返却する | | [growthbook_api_read | グロースブック API への認証 GET パススルー | |【[[T5]】 | 認証済みのPOST/PUT/PATCH/DELETEパススルー |

競争はスキルレポに住んでおり、ビルド時に**bundledです。 可搬性は、読み取りと書き込みAPIツール(エンドポイントフォーマッタなし)に分割されるため、クライアントは[readOnlyHint/destructiveHintを正しく評価できます。

ツールは growthbook_ でプレフィックスされているため、クライアントに複数の MCP サーバーがロードされたときにアンビグスに滞在します。

カーソルのプラグイン

Cursor MarketplaceからGrowthBookをインストールします。 プラグインは、Cursor を https://mcp.growthbook.io/mcp] でホストされているサーバーに接続します。最初のツールコールは、GrowseBook サインインを開き、承認します。 自己ホストされた GrowthBook ユーザーは、以下のように手動でサーバーを設定する必要があります。

プラグインは[.cursor-plugin/plugin.jsonとmcp.jsonで定義されます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

GrowthBook MCP Thin

A thin MCP server for GrowthBook with four tools:

Tool Purpose
growthbook_list_skills List top-level skill entry points (name + description)
growthbook_read_skill Return a listed skill or qualified child workflow (feature-flags or feature-flags/references/flag-create)
growthbook_api_read Authenticated GET passthrough to the GrowthBook API
growthbook_api_write Authenticated POST/PUT/PATCH/DELETE passthrough

Competence lives in the skills repo and is bundled at build time. Capability is split into read vs write API tools (no per-endpoint formatters) so clients can honor readOnlyHint / destructiveHint correctly.

Tools are prefixed with growthbook_ so they stay unambiguous when a client has multiple MCP servers loaded.

Cursor plugin

Install GrowthBook from the Cursor Marketplace. The plugin connects Cursor to the hosted server at https://mcp.growthbook.io/mcp; the first tool call opens a GrowthBook sign-in to authorize it. Self-hosted GrowthBook users should configure the server manually as described below.

The plugin is defined by .cursor-plugin/plugin.json and mcp.json. To test changes locally, copy the repo into ~/.cursor/plugins/local/growthbook and run Developer: Reload Window.

Install / run

npm install
npm run build

Point your MCP client at the compiled entrypoint:

{
  "mcpServers": {
    "growthbook": {
      "command": "node",
      "args": ["/absolute/path/to/growthbook-mcp/server/index.js"],
      "env": {
        "GB_API_KEY": "your_api_key_or_pat",
        "GB_API_URL": "https://api.growthbook.io"
      }
    }
  }
}

Or run the published package:

npx @growthbook/mcp

Environment variables

Variable Required Default Purpose
GB_API_KEY Yes for stdio; optional for HTTP OAuth — GrowthBook API key or personal access token
GB_API_URL No https://api.growthbook.io API base URL (self-hosted) and default OAuth AS issuer
GB_MCP_TRANSPORT No stdio stdio or http
GB_MCP_PORT No 3333 HTTP listen port (when transport=http)
GB_MCP_HOST No 127.0.0.1 HTTP bind host
GB_MCP_URL Yes for HTTP — Public MCP base URL stamped into OAuth resource metadata (server refuses to start in HTTP mode without it)
GB_MCP_KEEP_ALIVE_TIMEOUT_MS No 90000 Idle keep-alive timeout in HTTP mode. Must exceed the idle timeout of any load balancer in front, or the LB can reuse a connection the server has already closed and the request fails with a 502
OPENAI_APPS_CHALLENGE_TOKEN No — Served as plain text at /.well-known/openai-apps-challenge for OpenAI plugin domain verification (HTTP mode); the route returns 404 when unset
GitHub で README 全文を見る

インストール

npx @growthbook/mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "growthbook": { "command": "node", "args": ["/absolute/path/to/growthbook-mcp/server/index.js"], "env": { "GB_API_KEY": "your_api_key_or_pat", "GB_API_URL": "https://api.growthbook.io" } } } }