What it does
List all sites on the authenticated account. Each entry contains: site_id, domain, privacy_mode, hits_this_month (current calendar month), plan_limit, created_at.
Example prompts
Ask Claude (or any MCP client connected to mcp-analytics) something like:
List my sites.
The client will pick list_sites 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": "list_sites",
"arguments": {}
}
}'
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).top_user_agents: Top User-Agent strings with their traffic_class.viewport_breakdown: Pageviews bucketed by viewport width: mobile_xs (<480), mobile (<768), tablet (<1024), desktop (<1440), desktop_xl (≥1440).get_tracking_snippet: Return the HTML <script> snippet for a given site_id.traffic_class_breakdown: Hit counts and percentages by traffic_class for the period.