What it does

Account info — email, current plan, total active sites, total_hits_this_month (across all sites), plan_limit, and api_token_first_chars (first 10 chars of the legacy API token, for identification only — not enough to authenticate).

Example prompts

Ask Claude (or any MCP client connected to mcp-analytics) something like:

Show me my account details — plan, hits this month, sites.

The client will pick get_account automatically based on the prompt and your account's available sites.

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_account",
    "arguments": {}
  }
}'

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

Related tools

  • get_overview: 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.
  • get_tracking_snippet: Return the HTML <script> snippet for a given site_id.
  • event_details: Details for one event.
  • compare_periods: Compare a metric between two periods.
  • list_sites: List all sites on the authenticated account.