SuperAPI AI Directory

growthbook-mcp

πŸŽ–οΈ πŸ“‡ 🏠 πŸͺŸ 🐧 🍎 - Create and interact with GrowthBook feature flags and experiments.

Open website

About this tool

Purpose

GrowthBook MCP Thin is the official MCP server for GrowthBook, used to let MCP clients create feature flags, retrieve experiments, and more. It splits capabilities into two categories of tools, read API and write API, so that clients can correctly identify readOnlyHint / destructiveHint.

Main capabilities

The server provides four tools, all named with the growthbook_ prefix:

  • growthbook_api_read: Executes only GET requests (readOnlyHint: true). On 2xx, returns the raw response body; on non-2xx, returns an actionable error (isError: true), covering authentication failures, self-hosted 404 prompts, and rate limits. The request path targets the GrowthBook REST API and can be freely specified; each request carries MCP usage information headers.
  • growthbook_api_write: Executes POST | PUT | PATCH | DELETE (destructiveHint: true), with behavior similar to the read tool.
  • growthbook_list_skills: Registered only when GB_SKILLS_ENABLED is not disabled, returns top-level skill entries, which may contain complete workflows or point to sub-workflows.
  • growthbook_read_skill: Accepts a listed top-level name or a subpath specified by a loaded skill (such as feature-flags/references/flag-create), and returns the complete markdown (workflow + guardrails).

Skill content is stored in a separate skills repo, packaged into this package at build time; this package does not maintain a fork of the skill content. If workflows in the skills repo contain gb-call calls, they must be mapped as follows: GET β†’ growthbook_api_read; POST / PUT / PATCH / DELETE β†’ growthbook_api_write, with the path and optional JSON body string kept consistent. The only skill currently blacklisted from packaging is gb-setup, because what it configures is the gb-call shell adapter rather than GrowthBook itself.

Usage

Installation and connection

  • Install the GrowthBook plugin through the Cursor marketplace. The plugin is defined by .cursor-plugin/plugin.json and mcp.json, and connects to the hosted server https://mcp.growthbook.io/mcpοΌŒι¦–ζ¬‘θ°ƒη”¨ε·₯ε…·ζ—ΆδΌšζ‰“εΌ€ GrowthBook login authorization. Self-hosted GrowthBook users need to configure it manually as described below.
  • Local test plugin: copy the repository to ~/.cursor/plugins/local/growthbook, then execute Developer: Reload Window.
  • Point the MCP client to the compiled entry point, or run the published package.

HTTP + OAuth mode

Clients can connect to:

  • http://127.0.0.1:3333/mcp β€”β€” full mode (skills + API read/write)
  • http://127.0.0.1:3333/mcp/api β€” Capability-only mode (growthbook_api_read + growthbook_api_write)

Unauthenticated requests receive 401 with WWW-Authenticate pointing to /.well-known/oauth-protected-resource. Before handling MCP, the server probes GrowthBook REST with the bearer (GET /api/v1/): when the probe or a subsequent API tool returns 401, it returns HTTP 401 with error="invalid_token" so clients can refresh; 403 is treated as a valid bearer (permission denied β‰  invalid token), preventing clients from getting stuck in a refresh loop.

Capability-only mode

HTTP (recommended for remote) points clients to /mcp/api; stdio / process-level sets environment variables to never register skills: When skills are disabled, only the API read/write tools are registered, and growthbook_list_skills and growthbook_read_skill are not exposed.

Skill bundling mechanism

scripts/bundle-skills.mjs copies the top-level skill tree from the canonical skills checkout while preserving the structure. Source path resolution priority: SKILLS_SRC environment variable (skills repository root path) β†’ agent-skills.local.json ({"path": "../skills"}, relative to the repository root, already gitignored, may be copied from agent-skills.local.json.example) β†’ skills-src/ (used by CI and Docker builds). There is no implicit sibling lookup; ../skills resolves to whatever happens to exist at that path.

CI, cloud deployments, and releases all read agent-skills.lock.json and check out that exact skills commit; to ship upstream skill changes, update the commit in the lock file. Local development may use agent-skills.local.json or SKILLS_SRC to point at any checkout. scripts/ under the skills directory is not copied; relative references/foo.md links are rewritten to qualified paths feature-flags/references/fooso that growthbook_read_skill can resolve them.

Standalone HTTP mode

Runs over stdio by default. Setting GB_MCP_TRANSPORT=http runs it as a standalone HTTP server, exposing MCP at /mcp (skills + API tools) and /mcp/api (capability-only), behind an OAuth 2.0 protected resource surface (RFC 9728 metadata + RFC 6750 WWW-Authenticate).

  • GB_MCP_URL (required in HTTP mode) β€” the server's public base URL, which is written into the OAuth resource (audience) and protected resource metadata, and is never derived from request headers; the server refuses to start when it is missing.
  • GB_MCP_PORT (default 3333), GB_MCP_HOST (default 127.0.0.1).

Passing in a bearer is verified by probing the GrowthBook REST API; rejected tokens return HTTP 401 + WWW-Authenticate so clients can refresh. Run this on a trusted network or bound to the loopback address; for multi-tenant or public deployments, put your own gateway/authentication in front.

Release process

Releases are a deliberately manual process: update the package.json version β†’ run npm run sync-version (updates manifest.json, server.json, and .cursor-plugin/plugin.json) β†’ push a matching v* tag. That tag's commit (skills are frozen at release time) will publish: @growthbook/mcp to npm (pre-release versions containing - such as 2.0.0-beta.1 go to the beta dist-tag, stable versions to latest); multi-architecture (amd64 + arm64) images to ghcr.io/growthbook/growthbook-mcp (:<version>, :<major>, :<major>.<minor>, and :latest for stable versions); an MCP registry entry; a GitHub Release. The Cursor plugin is not published by CI; once the version number lands, Cursor will re-review it from the default branch. Install a release with: npx @growthbook/mcp@<version> or pull ghcr.io/growthbook/growthbook-mcp:<version>.

Usage Data

This server itself never sends telemetry. However, every REST call made by growthbook_api_read / growthbook_api_write carries a request header informing the GrowthBook instance it connects to that the call comes from MCP. GrowthBook records this information through its existing product telemetry, so the same controls apply; setting DISABLE_TELEMETRY on a self-hosted instance turns this off along with the rest of GrowthBook's telemetry. Older versions of GrowthBook ignore these request headers. The skill tools (growthbook_list_skills / growthbook_read_skill) are served locally and make no requests, so they are not tracked.

Applicable Scenarios

Developers and teams who need to interact with GrowthBook in an MCP client (such as Cursor), create feature flags, retrieve experiments, or call the GrowthBook REST API; self-hosted GrowthBook users can configure the connection manually.

Limitations

  • Environment variables and configuration items (GB_MCP_URL, etc., required in HTTP mode), authentication and token refresh behavior, and release and image mechanisms are all subject to the repository documentation.
  • The specific list of available skills, subpaths, and the contents of each skill are not fully provided in this material.
  • The HTTP + OAuth mode must be run on a trusted network or loopback address; multi-tenant or public deployments require their own front-end gateway and authentication.
  • The scripts/ under the skills directory will not be copied; the packaging blacklist currently contains only gb-setup.