What it does

TL;DR for the period: headline metrics (pageviews, visitors, sessions, bounce rate, avg session duration) plus pageviews_change_pct vs the previous equivalent window, top page, top traffic source, bot share, and top 3 custom events. Designed so a single call answers 'how did <period> go?' without chaining other tools. Volume metrics (pageviews / visitors / sessions / bot_share) include AI-mediated human browsing (ai_user_action — Claude/ChatGPT fetching on a user's behalf); attribution metrics (top_source) count direct browser visits only because AI-mediated traffic loses original utm/referrer tags. See traffic_class_breakdown for the per-class split.

Example prompts

Ask Claude or any MCP client connected to mcp-analytics things like:

"How did mysite.com do last week?"
"Give me a summary for example.com, last 30 days."
"Quick overview for my main site, past 24 hours."

Claude picks get_overview automatically. A real example response (formatted by Claude from the structured tool output):

67,348 pageviews (↑ 8% week-over-week), 22,104 unique visitors,
13,440 sessions. Bounce rate 41%. Average session duration 2m 14s.

Top page: /pricing (4,232 views).
Top traffic source: hacker news (1,847 visits, a thread from
last Wednesday is driving most of it).
Bot share: 11% (mostly Googlebot and GPTBot).
Top 3 custom events: signup_started (412), tracking_added (87),
account_created (74).

The tool returns a single object with all the headline metrics plus pageviews_change_pct versus the previous equivalent period. Designed so one tool call answers the "how did X go?" question without chaining further calls.

Volume metrics here (pageviews, visitors, sessions, bot_share) include AI-mediated human browsing (the ai_user_action traffic class: Claude or ChatGPT fetching a page on a user's behalf). Attribution metrics (the top_source field) count direct browser visits only, because AI-mediated traffic loses original UTM and referrer tags. See traffic_class_breakdown for the per-class split.

Arguments

Name Type Required Description / Default
site_id string required Site identifier from list_sites (8-character base32, e.g. 'wjxayhdd').
period string optional Time window. Keywords: today, yesterday, last_7_days, last_30_days, last_90_days, last_12_months. Or a custom date range YYYY-MM-DD..YYYY-MM-DD (inclusive).
default: last_7_days

How to call it directly

If you're integrating from your own code rather than a chat client, this is the JSON-RPC payload:

curl -X POST https://mcp-analytics.com/mcp \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_overview",
    "arguments": {
      "site_id": "abc12345"
    }
  }
}'

Token comes from /settings after you sign up. Replace any required arguments above.

Related tools

  • breakdown: Breakdown of visits by browser, os, device_type, or country (country empty in MVP).
  • remove_site: Soft-delete a site.
  • add_site: Register a new site.
  • list_events: All event names with counts (includes 'pageview' and custom events).
  • top_user_agents: Top User-Agent strings with their traffic_class.