MCP configuration guides
Codex
Set up Statsig MCP using Codex CLI or IDE extension.
ChatGPT Connector
Talk to your Statsig projects from within ChatGPT.
Cursor
Configure Statsig MCP in Cursor IDE.
Claude Code
Set up Statsig MCP in Claude Code.
Manual setup
Manual configuration for any MCP-compatible tool.
Current MCP capabilities
Experiments (A/B Tests)
- Get_List_of_Experiments: List all experiments in the project with optional status filtering
- Get_Experiment_Details_by_ID: Get experiment details including groups and parameters
- Create_Experiment: Create new experiments with groups, hypothesis, etc.
- Update_Experiment_Entirely: Replace entire experiment configuration (any excluded data will be removed - the MCP will understand this.)
Gates (Feature Flags)
- Get_List_of_Gates: List all gates/flags with optional type filtering (e.g., STALE, PERMANENT)
- Get_Gate_Details_by_ID: Get complete gate configuration details (rules, ID type, etc.)
- Create_Gate: Create new gate/flag with targeting rules and settings
- Update_Gate_Entirely: Replace entire gate setup with new rules and settings (any excluded data will be removed - the MCP will understand this.)
Dynamic Configs
- Get_List_of_Dynamic_Configs: List all dynamic config objects in the project
- Get_Dynamic_Config_Details_by_ID: Retrieve detailed config including targeting rules, return values
- Create_Dynamic_Config: Create new config with rules, return values, etc.
- Update_Dynamic_Config_Entirely: Replace entire dynamic config with new targeting and values (any excluded data will be removed - the MCP will understand this.)
Use Cases
The Statsig MCP server now supports bothGET and POST requests. This means tools can not only read data (like stale gates) but also make updates, if your API key has write permissions. We’ve found the Statsig MCP server especially useful for:
- Repetitive tasks like cleaning up stale gates
- Summarizing console information in your IDE workflows
- Bulk creating or deleting gates, and making the necessary changes in your code