Statsig

by statsig-io

221 downloads
Not rated
GitHub

About

Bridges directly to Statsig, enabling you to wrap new features behind feature flags, add instrumentation for product performance visibility, and seamlessly highlight and clean up stale feature flags from your codebase.

Details

Author
statsig-io
Downloads
221
Categories
Other

- MCP integration with the Statsig API
- Supports stdio and SSE transports
- Uses API key authentication via header

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Statsig
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install with npm install and npm run build, then configure an MCP client by adding an entry to mcp.json using npx mcp-remote with the Statsig MCP endpoint URL and a statsig-api-key header supplied via the AUTH_TOKEN environment variable.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "statsig": {
            "statsig-local": {
                "command": "npx",
                "args": [
                    "mcp-remote",
                    "https://api.statsig.com/v1/mcp",
                    "--header",
                    "statsig-api-key:${AUTH_TOKEN}"
                ],
                "env": {
                    "AUTH_TOKEN": "<console-YOUR-API-KEY>"
                }
            }
        }
    }
}

McpServers

{
    "statsig-local": {
        "command": "npx",
        "args": [
            "mcp-remote",
            "https://api.statsig.com/v1/mcp",
            "--header",
            "statsig-api-key:${AUTH_TOKEN}"
        ],
        "env": {
            "AUTH_TOKEN": "<console-YOUR-API-KEY>"
        }
    }
}

Statsig MCP Server

This server implements the Model Context Protocol (MCP) for Statsig API integration, supporting both stdio and SSE transports.

Installation

npm install
npm run build

Usage

Integration with MCP Client Config

To use this server with an MCP client, configure your mcp.json as follows:

{
  "mcpServers": {
    "statsig-local": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://api.statsig.com/v1/mcp?utm=mcp_so",
        "--header",
        "statsig-api-key:${AUTH_TOKEN}"
      ],
      "env": {
        "AUTH_TOKEN": "console-YOUR-API-KEY"
      }
    }
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.