Skip to main content
Glama
GrowthBook MCP Server

GrowthBook MCP Server

Official
by growthbook

Servidor MCP de GrowthBook

Con el servidor GrowthBook MCP, puede interactuar con GrowthBook directamente desde su cliente LLM. Consulte los detalles del experimento, agregue una función y mucho más.

Configuración

Variables de entorno Utilice las siguientes variables de entorno para configurar el servidor MCP.

Nombre de la variable

Estado

Descripción

CLAVE API GB

Requerido

Una clave API de GrowthBook.

GB_USUARIO

Requerido

Tu nombre. Se utiliza al crear una bandera de característica.

URL de la API de GB

Opcional

La URL de la API de GrowthBook. Su valor predeterminado es https://api.growthbook.io .

ORIGEN DE LA APLICACIÓN GB

Opcional

La URL de su aplicación GrowthBook tiene como valor predeterminado https://app.growthbook.io .

A continuación, encontrará instrucciones para agregar el servidor MCP a un cliente. Cualquier cliente compatible con MCP también es compatible. Consulte su documentación para saber cómo agregar el servidor.

Cursor

  1. Abrir Configuración del cursor → MCP

  2. Haga clic en Agregar nuevo servidor MCP global

  3. Agregue una entrada para el MCP de GrowthBook, siguiendo el patrón a continuación:

{
  "mcpServers": {
    "growthbook": {
      "command": "npx",
      "args": ["-y", "@growthbook/mcp"],
      "env": {
        "GB_API_KEY": "YOUR_API_KEY",
        "GB_API_URL": "YOUR_API_URL",
        "GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
        "GB_USER": "YOUR_NAME"
      }
    }
  }
}
  1. Guardar la configuración.

¡Ahora debería ver un estado activo verde después de que el servidor se conecte exitosamente!

Código VS

  1. Abrir configuración de usuario (JSON)

  2. Agregar una entrada MCP:

 "mcp": {
    "servers": {
      "growthbook": {
        "command": "npx",
        "args": [
          "-y", "@growthbook/mcp"
        ],
        "env": {
          "GB_API_KEY": "YOUR_API_KEY",
          "GB_API_URL": "YOUR_API_URL",
          "GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
          "GB_USER": "YOUR_NAME"
        }
      }
    }
  }
  1. Guarde su configuración.

GrowthBook MCP ahora está listo para usar en VS Code.

Escritorio de Claude

  1. Abrir Configuración → Desarrollador

  2. Haga clic en Editar configuración

  3. Abra claude_desktop_config.json

  4. Agregue la siguiente configuración:

{
  "mcpServers": {
    "growthbook": {
      "command": "npx",
      "args": ["-y", "@growthbook/mcp"],
      "env": {
        "GB_API_KEY": "YOUR_API_KEY",
        "GB_API_URL": "YOUR_API_URL",
        "GB_APP_ORIGIN": "YOUR_APP_ORIGIN",
        "GB_USER": "YOUR_NAME"
      }
    }
  }
}
  1. Guarde la configuración y reinicie Claude

Debería aparecer un icono de martillo en la ventana de chat, lo que indica que su servidor GrowthBook MCP está conectado y disponible.


Related MCP server: langfuse-mcp

Herramientas

  • Banderas de características

    • create_feature_flag : Crea, añade o encapsula un elemento con una bandera de característica. Especifica la clave, el tipo, el valor predeterminado y los metadatos.

    • get_feature_flags : enumera todos los indicadores de características en su instancia de GrowthBook.

    • get_single_feature_flag : obtiene detalles de una característica específica por ID.

    • get_stale_safe_rollouts : enumera todas las reglas de implementación segura que se han revertido o publicado.

    • create_force_rule : crea un indicador de característica con una condición de destino.

    • generate_flag_types : genera tipos para indicadores de características

  • Experimentos

    • get_experiments : enumera todos los experimentos en GrowthBook.

    • get_experiment : obtiene detalles de un experimento específico por ID.

    • get_attributes : enumera todos los atributos de usuario rastreados en GrowthBook (útil para la segmentación).

  • Entornos

    • get_environments : enumera todos los entornos (por ejemplo, producción, ensayo) configurados en GrowthBook.

  • Proyectos

    • get_projects : enumera todos los proyectos en su instancia de GrowthBook.

  • Conexiones SDK

    • get_sdk_connections : enumera todas las conexiones SDK (cómo GrowthBook se conecta a sus aplicaciones).

    • create_sdk_connection : crea una nueva conexión SDK para tu aplicación, especificando el idioma y el entorno.

  • Búsqueda de documentación

    • search_growthbook_docs : busque en la documentación de GrowthBook información sobre cómo utilizar una función, por palabra clave o pregunta.

Available Tools

14 tools
create_feature_flagC

Create, add, or wrap an element with a feature flag.

Inputs: defaultValue (required), fileExtension (required), id (required), valueType (required), +4 more.

create_force_ruleA

Create a new force rule on an existing feature. If the existing feature isn't apparent, create a new feature using create_feature_flag first. A force rule sets a feature to a specific value for a specific environment based on a condition. For A/B tests and experiments, use create_experiment instead.

Inputs: environments (required), featureId (required), fileExtension (required), value (required), +2 more.

create_sdk_connectionC

Create an SDK connection for a user. Returns an SDK clientKey that can be used to fetch features and experiments.

Inputs: language (required), name (required), environment.

generate_flag_typesB

Generate types for feature flags

Inputs: no named parameters.

get_attributesD

Get all attributes

Inputs: no named parameters.

get_environmentsB

Fetches all environments from the GrowthBook API. GrowthBook comes with one environment by default (production), but you can add as many as you need. Feature flags can be enabled and disabled on a per-environment basis. You can also set the default feature state for any new environment. Additionally, you can scope environments to only be available in specific projects, allowing for further control and segmentation over feature delivery.

Inputs: no named parameters.

get_experimentC

Gets a single experiment from GrowthBook

Inputs: experimentId (required).

get_experimentsC

Fetches all experiments from the GrowthBook API

Inputs: limit, offset, project.

get_feature_flagsC

Fetches all feature flags from the GrowthBook API. Flags are returned in the order they were created, from oldest to newest.

Inputs: limit, offset, project.

get_projectsC

Fetches all projects from the GrowthBook API

Inputs: limit, offset.

get_sdk_connectionsC

Get all SDK connections, which are how GrowthBook connects to an app. Importantly, users need the key, which is a public client key that allows the app to fetch features and experiments the API

Inputs: limit, offset, project.

get_single_feature_flagC

Fetches a specific feature flag from the GrowthBook API

Inputs: id (required), project.

get_stale_safe_rolloutsC

Fetches all complete safe rollouts (rolled-back or released) from the GrowthBook API

Inputs: limit, offset, project.

search_growthbook_docsC

Search the GrowthBook docs on how to use a feature

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes, such as create_feature_flag vs. create_force_rule, but there is some overlap between get_feature_flags and get_single_feature_flag, which could cause confusion if an agent needs to fetch a specific flag versus all flags. The descriptions help clarify, but the boundary is not perfectly clear.

    Naming Consistency4/5

    The naming follows a consistent verb_noun pattern (e.g., create_feature_flag, get_experiments) with minor deviations like generate_flag_types (which uses 'generate' instead of 'get') and search_growthbook_docs (which includes 'growthbook' in the name). Overall, it is mostly predictable and readable.

    Tool Count5/5

    With 14 tools, the count is well-scoped for a GrowthBook MCP server, covering key operations like creating flags, rules, connections, and fetching various resources. Each tool appears to earn its place without feeling excessive or insufficient for the domain.

    Completeness4/5

    The tool set provides good coverage for core GrowthBook operations, including CRUD-like actions for features, experiments, and connections, but there are minor gaps such as missing update or delete tools for flags or experiments, which agents might need to work around. The inclusion of search_growthbook_docs adds helpful context.

    Maintenance

    ActivityActive
    ResponsivenessMixed handling

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server for managing Bucketeer feature flags, providing tools for listing, creating, retrieving, updating, and archiving feature flags.
      5
      1
      MIT
    • A
      license
      C
      quality
      A
      maintenance
      MCP server for Langfuse observability. Query traces, debug exceptions, analyze sessions, and manage prompts and datasets for your LLM applications.
      48
      2,753 PyPI
      112
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for managing deep links, analytics, and app configuration on Grovs. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.
      16
      2
      MIT