Skip to main content
Model Context Protocol (MCP) is a standard for integrating AI tools and agents with platforms like GrowthBook. The official GrowthBook MCP server is a thin bridge: it loads GrowthBook Agent Skills (workflows and guardrails) and makes authenticated calls to the GrowthBook REST API.
It’s official!Check us out on the official MCP Registry

How it works

The server exposes four tools: Typical flow:
  1. Call growthbook_list_skills, then growthbook_read_skill with the matching name.
  2. If that skill routes to a child path, call growthbook_read_skill again with that path.
  3. Follow the workflow. Skills show calls like gb-call GET /api/v1/projects — map GET to growthbook_api_read and mutating methods to growthbook_api_write with the same path and optional JSON body.
  4. Prefer the paths listed in the skill; do not invent endpoints.
Competence lives in the skills (draft → review → publish, safe rollouts, and other guardrails). The API tools are authenticated passthroughs — they do not validate payloads.
Capability-only modeConnect to /mcp/api instead of /mcp (or set GB_SKILLS_ENABLED=false for a local process) to expose only growthbook_api_read and growthbook_api_write. Use this when your client or team supplies its own workflows.
Migrating from MCP 1.x?GrowthBook MCP 2.x removes the old per-endpoint tools (create_feature_flag, get_experiments, and so on). Use the skill loader plus API read/write tools instead. Point Cloud clients at https://mcp.growthbook.io/mcp, or upgrade local installs to @growthbook/mcp@latest.

GrowthBook Cloud

If you use GrowthBook Cloud, connect your MCP client to the hosted server. You sign in with OAuth in the browser — no API key in the MCP config.

Cursor

Install MCP Server
  1. Open Cursor SettingsMCP
  2. Click Add new global MCP server
  3. Add:
  1. Save. When Cursor connects, complete the GrowthBook OAuth consent flow in the browser.
You should see a green active status after the server connects.

VS Code

  1. Open User Settings (JSON)
  2. Add:
  1. Save. Start the server if prompted, then complete OAuth when your client opens the browser.
In Copilot Chat, a tool icon indicates the server is connected.

Claude Code

Verify with claude mcp get growthbook or /mcp inside Claude Code. Complete OAuth when prompted.

Claude Desktop

  1. Go to SettingsConnectors (or Extensions → browse connectors, depending on your Claude Desktop version)
  2. Add a custom connector / remote MCP server pointed at https://mcp.growthbook.io/mcp
  3. Complete the GrowthBook OAuth consent flow
We also publish a GrowthBook entry in Anthropic’s Connectors Directory when available — search for “GrowthBook” if you prefer the directory install.

Other MCP clients

Any client that supports remote HTTP MCP with OAuth can use:
Use the URL field (or equivalent) in that client’s MCP settings. The server advertises OAuth protected-resource metadata so the client can discover GrowthBook as the authorization server.

Example prompts

Once connected, ask for the outcome and let the agent load the matching skill:
  • “Create a boolean feature flag called new-checkout-flow that defaults to false.”
  • “Which feature flags are stale and safe to clean up?”
  • “What are the results of our checkout experiment? Should we ship the winner?”
  • “Design and launch an A/B test on the pricing-v2 flag.”
  • “Chart daily signups by country for the last 30 days.”
Want slash commands and no MCP process? Install the Agent Skills plugin.

Self-hosted

If you run GrowthBook yourself, you can still use the official MCP server in two ways: a local stdio process in your editor, or the official Docker image as your own HTTP MCP endpoint.

Option A: Local stdio

Runs @growthbook/mcp on your machine and talks to your GrowthBook API with an API key or personal access token (PAT). Requires Node.js 18+.
  1. Create a key in GrowthBook: SettingsAPI Keys, or a PAT under AccountPersonal Access Tokens. A PAT is recommended so actions are attributed to your user and scoped to your permissions.
  2. Add an MCP server entry that runs npx with env vars:
VS Code uses the same command / args / env values under a servers key instead of mcpServers. For Claude Code:
GrowthBook Cloud via stdioYou can also use stdio against Cloud by omitting GB_API_URL (it defaults to https://api.growthbook.io) and setting GB_API_KEY. Most Cloud users should prefer the hosted OAuth endpoint instead.

Option B: Official Docker image

Run the same HTTP MCP server GrowthBook Cloud uses, against your own API. Clients connect with a URL and OAuth — no API key in the MCP client config. Prerequisites
  • Your GrowthBook API must expose the OAuth 2.1 Authorization Server. Set OAUTH_AS_ENABLED=1 on the API process (see Environment variables).
  • A public HTTPS URL for the MCP server (clients and OAuth metadata use this base URL).
Image: ghcr.io/growthbook/growthbook-mcp — pin a version tag (for example 2.1.0) rather than relying on latest in production.
Clients then use:
  • https://mcp.example.com/mcp — skills + API tools
  • https://mcp.example.com/mcp/api — API tools only
Put TLS termination (and any network controls you need) in front of the container. For multi-tenant or public deployment, front the service with your own gateway and auth policies as you would any OAuth resource server.

Custom headers

If your GrowthBook API sits behind a reverse proxy or extra auth (for example Cloudflare Access), pass headers via GB_HTTP_HEADER_* on the MCP process (stdio or Docker). Each name after the prefix is converted from UPPER_SNAKE_CASE to Title-Case-With-Dashes:
Header precedenceCustom headers cannot override Authorization or Content-Type.
Example (stdio + Cloudflare Access):
You can add as many GB_HTTP_HEADER_* variables as needed — each one becomes a separate header on every request.

Next steps

Join our community Slack for additional tips and tricks