# GrowthBook MCP (self-hosted stdio)

Runs the official GrowthBook MCP server on your machine over stdio, letting an agent call your GrowthBook API with your key.

MCP server by GrowthBook. Category: Agent craft.

## Install

Project (for this project only):

```sh
npx add-mcp @growthbook/mcp@latest --env 'GB_API_KEY=${GB_API_KEY}'
```

Works with: Claude Code, Codex CLI, Cursor, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx add-mcp @growthbook/mcp@latest --env 'GB_API_KEY=${GB_API_KEY}' -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Where it runs

Your computer.

## What it needs

Environment variables:

- `GB_API_KEY` (required): API key or PAT, created under Settings → API Keys or Account → Personal Access Tokens
- `GB_API_URL` (optional): Base URL of your GrowthBook API. Defaults to https://api.growthbook.io if omitted (Cloud)

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.
- Needs a key or account: It asks for an API key or a sign in before it works.

## Source

[Open the source](https://docs.growthbook.io/integrations/mcp). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

- Previous: [GrowthBook MCP (Cloud, API only)](https://syn4pse.dev/terminal/growthbook-mcp-cloud-api-only.md)
- Next: [Gusto Embedded Dev Assistant MCP](https://syn4pse.dev/terminal/gusto-embedded-dev-assistant-mcp.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
