0.0.5 โข Published 2 months ago
@statsig/mcp-test v0.0.5
Statsig MCP Server
This server implements the Model Context Protocol (MCP) for Statsig API integration, supporting both stdio and SSE transports. It allows AI assistants to interact with your Statsig feature flags, experiments, and analytics data.
Quick Start (Recommended)
The easiest way to get started is using our CLI installer:
npx @statsig/mcp
This will:
- ๐ Install and build the MCP server
- ๐ Prompt for your Statsig API key
- ๐ Generate and copy the configuration to your clipboard
- โจ Provide step-by-step instructions
Manual Installation
If you prefer to install manually:
npm install @statsig/mcp
Then build the project:
npm run build
Configuration
Integration with MCP Client Config
To use this server with an MCP client, configure your mcp.json
as follows:
Using stdio transport (default)
{
"mcpServers": {
"Statsig": {
"command": "node /path/to/node_modules/@statsig/mcp/build/index.js",
"env": {
"STATSIG_API_KEY": "console-YOUR-CONSOLE-KEY"
}
}
}
}
Using SSE transport
For clients that support SSE transport (like some web-based interfaces):
{
"mcpServers": {
"Statsig": {
"url": "http://localhost:3000/sse?STATSIG_API_KEY=console-<your-console-key>"
}
}
}
โ ๏ธ Security Note: SSE transport passes the API key in the URL. While this data is encrypted when using HTTPS, we recommend proceeding with caution in production environments.
Getting Your API Key
- Visit Statsig Console
- Create a new Console API key
- Copy the key (it should start with
console-
)
Features
This MCP server provides access to:
- ๐ฏ Feature Gates
- ๐งช Dynamic Configs
- ๐ Experiments
- ๐ Metrics and Analytics
- ๐ฅ User Segments
- ๐ท๏ธ Tags and Organization
Support
- ๐ MCP Documentation
- ๐ Report Issues
- ๐ฌ Statsig Slack Community