Statsig MCP Server
The Statsig MCP (Model Context Protocol) server lets tools like Cursor, Claude Code, ChatGPT, and Codex have similar functionality to the Statsig Console. With this setup, you can ask questions, explore experiments, and access your Statsig data using AI.Quick Start
Choose your preferred AI tool to get started:Cursor
Set up Statsig MCP in Cursor IDE with OAuth or API key authentication.
Claude Code
Configure Statsig MCP for Claude Code with HTTP transport.
ChatGPT
Connect Statsig MCP to ChatGPT using the connector feature.
Codex
Set up Statsig MCP with Codex CLI or IDE extension.
Current MCP Capabilities
The Statsig MCP server provides access to:- Experiments: List, view details, and manage experiments
- Feature Gates: Query and manage feature flags
- Dynamic Configs: Access and modify dynamic configurations
- Metrics: Explore metrics and analytics data
Use Cases
With Statsig MCP configured, you can:- Explore Experiments: “List all my active experiments”
- Manage Gates: “What gates are currently stale?”
- Configure Dynamic Configs: “Show me the configuration for the dynamic config ‘dynamic-config’”
- Get Insights: “Show me details about the experiment called ‘new-checkout-flow‘“
Example Prompt for Stale Gate Cleanup
Authentication
Statsig MCP supports two authentication methods:- OAuth (Recommended): Secure browser-based authentication that doesn’t require managing API keys
- API Key: Direct authentication using your Statsig Console API key