# Staats MCP MCP Server

> **Staats MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Staats MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/staats-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Staats provides cookieless website analytics that help AI agents analyze visitor traffic, page views, referral sources, conversion funnels, and user journeys. Track deployments with before-and-after comparisons, detect traffic anomalies, and retain site-specific context to guide data-driven website improvements.

---

## Details

- Server ID: `staats-mcp`
- Version: 0.1.0
- Tools: 15
- Authentication: API key, held by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Staats MCP has to be in the toolset
first. In order:

1. Add Staats MCP to your toolset at https://mewcp.com/mcp/staats-mcp
2. Connect your Staats MCP account (API key); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Staats MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `staats-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (15)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_site_context` _(read)_ — What a site is and what the owner wants from it, plus its data-retention settings. Well-known keys: description, goals, audience, notes (open agenda items to…
- `update_site_context` _(destructive)_ — Save or amend what a site is for. Provided context fields are merged into the existing context (events merges per entry); a null value deletes its key.…
- `what_changed` _(read)_ — Notable movements in the period without scanning raw numbers: statistically unusual traffic days, referrer surges and first-time referrers, pages whose share…
- `what_broke` _(read)_ — Signs of visitors hitting problems in the period: JS errors the tracker captured (new_error, error_spike: each with a sanitized sample message, source, line,…
- `get_overview` _(read)_ — Traffic pulse: visitor/pageview totals vs the previous period, top pages, top referrers, and a per-day series. period: relative like '24h', '7d' (default),…
- `query` _(read)_ — Break a metric down by a dimension with optional equality filters. Metrics: visitors, pageviews, events. Dimensions: path, referrer_domain, utm_source,…
- `funnel` _(read)_ — Ordered conversion funnel across up to 5 steps within the period. Each step is a pageview path ({kind:'path', value:'/pricing'}) or a custom event…
- `journeys` _(read)_ — The routes visitors actually take, grouped into identical sequences and counted, busiest first. Use this when you do NOT already know the steps: funnel…
- `record_annotation` _(write)_ — 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 defaults to now.…
- `list_annotations` _(read)_ — Recorded deploy/change markers, newest first. period defaults to '90d'.
- `compare_around` _(read)_ — Before/after impact of a recorded annotation: visitors and pageviews in the N days preceding vs following it (window_days, default 7). The after-window is…
- `list_sites` _(read)_ — 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` _(write)_ — 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 setup the site…
- `delete_site` _(destructive)_ — PERMANENTLY delete a site and ALL its analytics data (every event and annotation). Irreversible. Confirm with the owner before calling; pass confirm: the…
- `portfolio_overview` _(read)_ — Visitors and pageviews for every site this account can use, owned and shared alike, with change vs the previous period, busiest first. Shared sites are…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/staats-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/staats-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/staats-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/staats-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/staats-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/staats-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/staats-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/staats-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/staats-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/staats-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/staats-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/staats-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/staats-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/staats-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/staats-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/staats-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/staats-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/staats-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/staats-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/staats-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/staats-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/staats-mcp/connect/junie
- Amp: https://mewcp.com/mcp/staats-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/staats-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/staats-mcp/connect/goose
- Python: https://mewcp.com/mcp/staats-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/staats-mcp/connect/typescript