Statsig MCP server for AI agents

Live

OAUTH 2.1

EXPERIMENTATION

Developer Tools

Statsig MCP gives your agent Statsig's own MCP server: read feature gates, experiments, dynamic configs, layers, segments, and metrics, get experiment and gate results, review change history, and query logs.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Statsig MCP
agent · Acme Q3
Run
What are the overall results for the checkout redesign experiment?
S
statsigmcp_get_experiment_overall_results
506ms
Experimentation agent
Across 12 pulse metrics, conversion is up 2.4% in the test group.
Sources: Statsig experiment, 12 metrics
statsigmcp
12 metrics
18:29
Message Claude...

Tools your experimentation agent reaches for on Statsig MCP, scoped per user.

CALL ANY TOOL
48 tools for experimentation in Statsig MCP: read gates, experiments, dynamic configs, layers, segments, and metrics, get experiment and gate results, review history and reviews, and query logs.
statsigmcp_cluster_log_patterns
Cluster log patterns
Cluster similar log lines into templates (same as `statsig-query log-patterns`). Use after `Query_Logs_Explorer` when raw lines are too noisy. Pass a Logs Explorer filter (e.g. `service:scrapi AND tier:latest AND level:error`), do not wrap in `#logs{ }`. Statsig/OpenAI internal organizations only (mirrors CAPI `@OpenAIAndStatsigOrgOnly`). Optional: `field` (default clusters on log message field), `limit`, time window (`start_ts`/`end_ts` in ms).
Parameters
Name
Type
Required
Description
params
object
Required
Request parameters object. Contains the path and query values for this call.
statsigmcp_fetch
Fetch
statsigmcp_get_audit_logs
Get audit logs
statsigmcp_get_autotune_eligible_reviewers
Get autotune eligible reviewers
statsigmcp_get_context
Get context
statsigmcp_get_dynamic_config_eligible_reviewers
Get dynamic config eligible reviewers
statsigmcp_get_dynamic_config_review_by_id
Get dynamic config review by id
statsigmcp_get_experiment_details_by_id
Get experiment details by id
statsigmcp_get_experiment_metric_dimension_results
Get experiment metric dimension results
statsigmcp_get_experiment_overall_results
Get experiment overall results
statsigmcp_get_experiment_version_history
Get experiment version history
statsigmcp_get_gate_eligible_reviewers
Get gate eligible reviewers
statsigmcp_get_gate_results
Get gate results
statsigmcp_get_gate_version_history
Get gate version history
statsigmcp_get_layer_experiments
Get layer experiments
statsigmcp_get_layer_overrides
Get layer overrides
statsigmcp_get_list_of_autotune_reviews
Get list of autotune reviews
statsigmcp_get_list_of_dynamic_config_reviews
Get list of dynamic config reviews
statsigmcp_get_list_of_experiment_reviews
Get list of experiment reviews
statsigmcp_get_list_of_experiments
Get list of experiments
statsigmcp_get_list_of_gates
Get list of gates
statsigmcp_get_list_of_layers
Get list of layers
statsigmcp_get_list_of_metrics
Get list of metrics
statsigmcp_get_list_of_param_stores
Get list of param stores
statsigmcp_get_list_of_segments
Get list of segments
statsigmcp_get_param_store_details_by_id
Get param store details by id
statsigmcp_get_segment_by_id
Get segment by id
statsigmcp_getexperimentsummarycharts
Getexperimentsummarycharts
statsigmcp_query_logs_explorer
Query logs explorer
statsigmcp_search
Search

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Statsig tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["statsigmcp"], toolNames: [
    "statsigmcp_get_list_of_experiments",
    "statsigmcp_get_experiment_overall_results",
    "statsigmcp_get_gate_details_by_id"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my experiments, report overall results for the checkout redesign, and show the rules on its gate" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["statsigmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my experiments, report overall results for the checkout redesign, and show the rules on its gate" }],
  tools,
});

// Execute the tool call with the user's vaulted Statsig OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["statsigmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my experiments, report overall results for the checkout redesign, and show the rules on its gate" }],
  tools,
});

// Tool call runs with the user's vaulted Statsig OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["statsigmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "experimentation_agent",
  model: "gemini-2.5-pro",
  instruction: "Statsig tools scoped to this user",
  tools,
});

await agent.run("List my experiments, report overall results for the checkout redesign, and show the rules on its gate");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Statsig MCP tool. Click to copy, paste into your agent, done.
Gates and configs
Copy the prompt
Copied
List the feature gates in this project.
Copy the prompt
Copied
Show the rules on the new_checkout gate.
Copy the prompt
Copied
Show the version history of this dynamic config.
Experiments
Copy the prompt
Copied
Show overall pulse results for this experiment.
Copy the prompt
Copied
Break down this metric by dimension for the experiment.
Copy the prompt
Copied
Which experiments are in this layer?
Reviews and logs
Copy the prompt
Copied
List the reviews on this gate, newest first.
Copy the prompt
Copied
Show the audit logs for this project from last week.
Copy the prompt
Copied
Cluster similar log lines from the last hour.
SEE HOW AUTH WORKS
Each user signs in to Statsig once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Statsig MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Statsig MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Statsig MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Statsig MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Statsig token looks fine in a demo. In production every experiment lookup and log query looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Statsig today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Statsig as the user or through a shared service account?
As the user. Each user signs in to Statsig once, and Scalekit stores and refreshes their tokens. Every gate, experiment, and log lookup in your audit trail is attributed to that user, not a shared service account.
Where is the Statsig OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Statsig?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without statsigmcp_invoke_tool, which executes any Statsig MCP tool by name, including tools not shown in the default list. Every other tool only reads data.
What happens when a user revokes Statsig access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent find a Statsig resource by name?
statsigmcp_search searches Statsig resources by name, with the resource category in types, and statsigmcp_fetch returns the full document for a search result id. statsigmcp_get_context bootstraps the session with the organization, project, and environment.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""statsigmcp"": {
""url"": ""https://mcp.scalekit.com/statsigmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.statsigmcp]
url = ""https://mcp.scalekit.com/statsigmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""statsigmcp"": {
""url"": ""https://mcp.scalekit.com/statsigmcp"",
""type"": ""http""
}
}
}