# StatsRaven

> StatsRaven is an MCP server for analytics and data. Self-hosted analytics exposed over MCP so Claude, Cursor or VS Code can query your data. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** Web, API, Self-hosted
- **Website:** https://statsraven.com/docs/mcp/
- **MCP Registry name:** com.statsraven/statsraven
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-21

## About

Instead of opening a dashboard, you can put your event, log and website numbers into an AI client and ask follow-up questions in plain language. StatsRaven runs its own MCP endpoint at a path on your installation, and clients such as Claude, Claude Code, Cursor and VS Code connect to it over HTTP.

The server exposes tools for reading projects and their schemas, running grouped queries, read-only SQL, website traffic reports, funnels, log search and live visitor counts. Charts can be shown inside the conversation or pinned to a project sheet. Write actions such as saving business facts, labelling log patterns and creating alerts are kept separate from the read-only tools.

Access is controlled by admin-issued tokens or by OAuth approval from a signed-in admin, and every tool call is recorded in a change log. It suits teams that want to keep their analytics on infrastructure they control and query them from the chat tools they already use.

## Features

- **Chat-based data queries:** Ask questions about events, logs and traffic from an MCP client and get counts, sums, averages and percentiles.
- **Website traffic reports:** Pull visitors, pages, channels, campaigns, devices, goals and revenue from the overview numbers.
- **Funnels and drop-off analysis:** Inspect funnels of pages and events and see where visits went when they left a step.
- **Log search with masking:** Search log text and sample records, with IP addresses and email addresses masked.
- **Bot detection:** Compare server requests with snippet page views to spot bots and scrapers.
- **Charts and pinned sheets:** Show charts inside the conversation in supporting clients or pin them to a project sheet.
- **Token and OAuth access:** Connect with an admin token or sign in with OAuth, with connected apps listed for disconnection.

## Good for

- Asking follow-up questions about website traffic without building a new dashboard
- Finding which funnel step loses the most visitors
- Spotting scrapers and bots hitting your servers
- Searching application logs for errors while keeping personal data masked
- Setting up alerts for events such as payments stopping

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add statsraven -- docker run -i --rm ghcr.io/umutgokbayrak/statsraven:0.2.10
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add statsraven -- docker run -i --rm ghcr.io/umutgokbayrak/statsraven:0.2.10
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.statsraven]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/umutgokbayrak/statsraven:0.2.10"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user statsraven docker -- run -i --rm ghcr.io/umutgokbayrak/statsraven:0.2.10

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "statsraven": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/umutgokbayrak/statsraven:0.2.10"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 16 tools change data; 8 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_schema` (name suggests: reads): Projects, sources, fields, named patterns and taught facts. Clients call it first.
- `run_query` (name suggests: changes): Counts, sums, averages and percentiles grouped and filtered, with the SQL that ran.
- `web_report`: Website overview numbers including visitors, pages, channels, campaigns, places, devices, goals and revenue.
- `online_now`: Shows who is on your sites right now.
- `funnel`: Funnels of pages and events.
- `funnel_dropoff`: Shows where visits went when they left a funnel step.
- `run_sql` (name suggests: changes): One read-only SQL query, up to 500 rows.
- `compare_browser_traffic`: Compares server requests against snippet page views to find bots and scrapers.
- `search_logs` (name suggests: reads): Log text search with IP addresses and emails masked.
- `get_samples` (name suggests: reads): Example log records with IP addresses and emails masked.
- `show_chart` (name suggests: reads): Shows a chart in the conversation in clients that support MCP Apps.
- `pin_chart`: Pins a chart to the project's sheet.
- `list_unlabeled_patterns` (name suggests: reads): Lists log patterns without a name.
- `label_patterns`: Saves names for log patterns.
- `save_fact`: Saves a fact about the business to Teach.
- `create_alert` (name suggests: changes): Creates an alert; needs the Alerts add-on to run, otherwise it stays a draft.

## FAQ

### Do I need an AI key in StatsRaven?

No. Claude and other MCP clients connect to StatsRaven without an AI key configured in the product.

### Can the MCP tools change my data?

Most tools are read-only. Saving facts, labelling log patterns, pinning charts and creating alerts are the write-capable exceptions.

### How do clients authenticate?

Clients can use an admin token sent as a Bearer header, or OAuth where an admin signs in and approves the app.

### Are tool calls logged?

Yes, each tool call is written to the change log with the token or app that made it.

### How do I add StatsRaven to Claude Code?

Run this command in your terminal: claude mcp add statsraven -- docker run -i --rm ghcr.io/umutgokbayrak/statsraven:0.2.10

### What are the best alternatives to StatsRaven?

The closest alternatives to StatsRaven are SuprAnalytics, Web Analytics, nextanalytica, Ripples Metrics and RevScope.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [SuprAnalytics](https://ai-powered.com/mcp/supranalytics): SuprAnalytics is an MCP server for analytics and data.
- [Web Analytics](https://ai-powered.com/mcp/web-analytics): Web Analytics is a free MCP server for analytics and data.
- [nextanalytica](https://ai-powered.com/mcp/nextanalytica): nextanalytica is an MCP server for analytics and data.
- [Ripples Metrics](https://ai-powered.com/mcp/ripples-metrics): Ripples Metrics is a freemium MCP server for analytics and data.
- [RevScope](https://ai-powered.com/mcp/revscope): RevScope is a freemium MCP server for analytics and data.
- [Lodd MCP Server](https://ai-powered.com/mcp/lodd-mcp-server): Lodd MCP Server is a freemium MCP server for analytics and data.
- [StepMetrics Web Analytics](https://ai-powered.com/mcp/stepmetrics-web-analytics): StepMetrics Web Analytics is a freemium MCP server for analytics and data.
- [Feasible Analytics](https://ai-powered.com/mcp/feasible-analytics): Feasible Analytics is an MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/statsraven
