It’s official!Check us out on the official MCP Registry
How it works
The server exposes four tools:
Typical flow:
- Call
growthbook_list_skills, thengrowthbook_read_skillwith the matching name. - If that skill routes to a child path, call
growthbook_read_skillagain with that path. - Follow the workflow. Skills show calls like
gb-call GET /api/v1/projects— mapGETtogrowthbook_api_readand mutating methods togrowthbook_api_writewith the same path and optional JSON body. - Prefer the paths listed in the skill; do not invent endpoints.
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
- Open Cursor Settings → MCP
- Click Add new global MCP server
- Add:
- Save. When Cursor connects, complete the GrowthBook OAuth consent flow in the browser.
VS Code
- Open User Settings (JSON)
- Add:
- Save. Start the server if prompted, then complete OAuth when your client opens the browser.
Claude Code
claude mcp get growthbook or /mcp inside Claude Code. Complete OAuth when prompted.
Claude Desktop
- Go to Settings → Connectors (or Extensions → browse connectors, depending on your Claude Desktop version)
- Add a custom connector / remote MCP server pointed at
https://mcp.growthbook.io/mcp - Complete the GrowthBook OAuth consent flow
Other MCP clients
Any client that supports remote HTTP MCP with OAuth can use:Example prompts
Once connected, ask for the outcome and let the agent load the matching skill:- “Create a boolean feature flag called
new-checkout-flowthat 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-v2flag.” - “Chart daily signups by country for the last 30 days.”
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+.
- Create a key in GrowthBook: Settings → API Keys, or a PAT under Account → Personal Access Tokens. A PAT is recommended so actions are attributed to your user and scoped to your permissions.
- Add an MCP server entry that runs
npxwith env vars:
command / args / env values under a servers key instead of mcpServers.
For Claude Code:
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=1on the API process (see Environment variables). - A public HTTPS URL for the MCP server (clients and OAuth metadata use this base URL).
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 toolshttps://mcp.example.com/mcp/api— API tools only
Custom headers
If your GrowthBook API sits behind a reverse proxy or extra auth (for example Cloudflare Access), pass headers viaGB_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.GB_HTTP_HEADER_* variables as needed — each one becomes a separate header on every request.
Next steps
- Install the Agent Skills plugin — same playbooks, no MCP process
- MCP vs the plugin — which to use when
- GrowthBook REST API — what the API tools call
- growthbook-mcp on GitHub

