# Staats MCP server

Cookieless web analytics your coding agent reads: traffic answers, deploy impact, what broke.

## Facts

- Endpoint: https://api.staats.ai/functions/v1/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: not graded (servers behind sign-in can't be scanned)
- Tools: 15
- Category: Data & databases · source: registry
- Repository: https://github.com/MrViolets/staats-mcp
- Last probed: 2026-09-03 · first listed: 2026-09-03
- Directory page: https://gateturbo.com/mcp/staats · this document: https://gateturbo.com/mcp/staats.md · JSON: https://gateturbo.com/api/directory/servers/staats

## Tools (15)

- `get_site_context`: What a site is and what the owner wants from it, plus its data-retention settings. Well-known keys: description, goals, audience, notes (ope
- `update_site_context`: Save or amend what a site is for. Provided context fields are merged into the existing context (events merges per entry); a null value delet
- `what_changed`: Notable movements in the period without scanning raw numbers: statistically unusual traffic days, referrer surges and first-time referrers, 
- `what_broke`: Signs of visitors hitting problems in the period: JS errors the tracker captured (new_error, error_spike: each with a sanitized sample messa
- `get_overview`: Traffic pulse: visitor/pageview totals vs the previous period, top pages, top referrers, and a per-day series. period: relative like '24h', 
- `query`: Break a metric down by a dimension with optional equality filters. Metrics: visitors, pageviews, events. Dimensions: path, referrer_domain, 
- `funnel`: Ordered conversion funnel across up to 5 steps within the period. Each step is a pageview path ({kind:'path', value:'/pricing'}) or a custom
- `journeys`: The routes visitors actually take, grouped into identical sequences and counted, busiest first. Use this when you do NOT already know the st
- `record_annotation`: Mark a moment on a site timeline: a deploy, a content change, or a campaign start. Call this every time you ship a change to the site. ts de
- `list_annotations`: Recorded deploy/change markers, newest first. period defaults to '90d'.
- `compare_around`: Before/after impact of a recorded annotation: visitors and pageviews in the N days preceding vs following it (window_days, default 7). The a
- `list_sites`: All sites on this account, with the public site codes used in their script tags and the ready-to-paste script_tag for each.
- `create_site`: Create a new site on this account and get its script tag. This connection already covers the new site: installing the script tag is the only
- `delete_site`: PERMANENTLY delete a site and ALL its analytics data (every event and annotation). Irreversible. Confirm with the owner before calling; pass
- `portfolio_overview`: Visitors and pageviews for every site this account can use, owned and shared alike, with change vs the previous period, busiest first. Share

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect Staats to your gate (https://gateturbo.com/login?next=/discovery?connect=staats).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/staats/claude · Claude Desktop → https://gateturbo.com/mcp/staats/claude-desktop · ChatGPT → https://gateturbo.com/mcp/staats/chatgpt · Codex → https://gateturbo.com/mcp/staats/codex · Cursor → https://gateturbo.com/mcp/staats/cursor · Windsurf → https://gateturbo.com/mcp/staats/windsurf · VS Code → https://gateturbo.com/mcp/staats/vscode · Gemini CLI → https://gateturbo.com/mcp/staats/gemini-cli · OpenClaw → https://gateturbo.com/mcp/staats/openclaw · n8n → https://gateturbo.com/mcp/staats/n8n · A script or server → https://gateturbo.com/mcp/staats/script

### Direct: Claude Code

Add Staats to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http staats https://api.staats.ai/functions/v1/mcp
```

### Direct: Cursor

Add Staats to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "staats": {
      "url": "https://api.staats.ai/functions/v1/mcp"
    }
  }
}
```

### Direct: VS Code

Add Staats to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "staats": {
      "type": "http",
      "url": "https://api.staats.ai/functions/v1/mcp"
    }
  }
}
```

### Direct: Codex

Add Staats to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.staats]
url = "https://api.staats.ai/functions/v1/mcp"
```

### Direct: Claude

Add Staats as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "Staats" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://api.staats.ai/functions/v1/mcp
```

### Direct: ChatGPT

Add Staats as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "Staats" with the URL below.
3. Set authentication to none.

```
https://api.staats.ai/functions/v1/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
