Installation
You can add the Statsig MCP with OAuth to Cursor in two ways:Option 1: Quick Install (Recommended)
Click here to automatically add the Statsig MCP to Cursor.Option 2: Manual Configuration
- Open Cursor settings
- Navigate to Settings > Cursor Settings > Tools & Integrations
- Find the MCP servers section
- Add the following configuration to
~/.cursor/mcp.json:
Using API Key instead of OAuth
Using API Key instead of OAuth
While we recommend setting up Statsig MCP via OAuth, you can also authenticate with your Console API key. Click here to quick install, or manually configure:Replace
- Open Cursor settings
- Navigate to Settings > Cursor Settings > Tools & Integrations
- Find the MCP servers sections
- Add the below configuration to
~/.cursor/mcp.json
console-YOUR-CONSOLE-API-KEY with your actual Statsig Console API key, which you can retrieve here. Ensure your API key has the right permissions — read-only keys can view data, while write keys can make changes to your project!Authentication via OAuth and Verification
Cursor will automatically handle OAuth authentication when you first use the Statsig MCP. You’ll be prompted to:- Sign in to your Statsig account
- Authorize the MCP server to access your Statsig project
- Restart Cursor to apply the changes
- Verify the connection by navigating to Settings > Cursor Settings > Tools & Integrations, where Statsig MCP server should be listed and active
Using Statsig MCP with Cursor
Once configured, you can use Statsig MCP commands in Cursor’s chat interface:- Query Experiments: “What experiments are currently running?”
- Manage Gates: “List all my feature flags”
- Get Details: “Show me the configuration for gate ‘new-feature’”
- Create Entities: “Create a new experiment called ‘checkout-test‘“
Troubleshooting
If the MCP server doesn’t appear:- Make sure you’ve restarted Cursor after adding the configuration
- Check that the
mcp.jsonfile is in the correct location:~/.cursor/mcp.json - Verify your Statsig account has the necessary permissions
Next Steps
- Learn about MCP capabilities
- Explore use cases for Statsig MCP
- See examples of stale gate cleanup