On this page

Statsig MCP with Codex

Learn how to set up the Statsig MCP server using Codex CLI, IDE extension, or Desktop App.

Installation and authentication with OAuth

MCP OAuth only supports Personal Console API Keys. Ensure your Statsig org owner has enabled Personal Console API Keys creation for your role here{" "}

On Codex, use OAuth and the HTTP transport directly. Authentication is saved for future sessions.

In Codex Desktop, navigate to Settings > MCP servers and add a new custom server. Set up using Streamable HTTP, with URL set to https://api.statsig.com/v1/mcp:

Set up Statsig MCP in the Codex Desktop App

Upon saving, you should see statsig turned on under custom servers.

Statsig MCP in the Codex Desktop App MCP Servers List

Using Statsig MCP with Codex

With Statsig MCP configured in any Codex environment, 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'"

Next steps

After installation, you can:

  • List experiments, gates, and dynamic configs
  • Create and update experiments, gates, and configs
  • Access your Statsig data directly from Codex
For available MCP capabilities, go to the MCP capabilities section.

Was this helpful?