Skip to main content

Connect AI Agents to GrowthBook

GrowthBook works directly inside your AI coding agent: Claude Code, Cursor, and others. There are two ways to connect, and they're complementary:

  • MCP Server: a live set of tools your agent can call mid-conversation.
  • Agent Skills: installable workflows that run the full feature-flag and experiment lifecycle, with GrowthBook's draft → review → publish guardrails built in. No server to run.

You can install both. Many teams reach for the MCP server for quick, conversational tasks and the skills for repeatable, end-to-end workflows.

Which should I use?

MCP ServerAgent Skills
What it isA server exposing GrowthBook tools to your agentMarkdown playbooks your agent follows step by step
SetupAdd an MCP server entry that runs npx @growthbook/mcpInstall the plugin (no running server)
Best forQuick lookups and one-off actions while you codeRepeatable, multi-step lifecycle workflows
Lifecycle coverageCore flag, experiment, and product analytics actionsThe full flag and experimentation lifecycle: create, target, ramp, experiment, analyze, stop, and clean up
GovernanceDirect API callsDraft → review → publish, safe rollouts, and two-step deletes built into each skill
Where it runsAny MCP-compatible host, including agents that can't run shell commandsAgents that can run shell commands: Claude Code, Cursor, Codex, and other agentskills.io agents
Agent can't run a terminal? Use the MCP server

The Agent Skills work by having your agent run a local Node helper, so they only work in agents that can execute shell commands, such as Claude Code, Cursor, and Codex. The MCP server is launched by your agent host from a one-time config entry. That lets it work in MCP-compatible hosts that don't give the agent a terminal, like Claude Desktop. If your agent can't run shell commands, use the MCP server.

Not sure where to start?

Start with Agent Skills if you want to run flags and experiments end-to-end from your agent. Add the MCP Server if you mostly want quick, conversational access while you code.

Next steps

Join our community Slack for additional help and announcements