The Statcounter MCP server lets AI agents and assistants query your projects' stats on your behalf, using the Model Context Protocol (MCP) - the open standard supported by Claude, ChatGPT, Claude Code and most agent frameworks.
Access is read-only. Agents can see everything the Statcounter API can report - every statistic the API returns is available - but cannot create, change or delete projects, labels or settings.
Give your AI tool this server URL - as a custom connector in ChatGPT or Claude, or as an MCP server in any other tool:
https://api.statcounter.com/mcpThen:
In Claude (claude.ai) the Statcounter MCP server is added as a custom connector. Anthropic currently offers custom connectors on all Claude plans, including Free (which allows one custom connector). Once added, the same connector also works in the Claude desktop and mobile apps.
Statcounter, and as the remote MCP server URL enter https://api.statcounter.com/mcp. Leave the Advanced settings (OAuth Client ID and Client Secret) empty - Statcounter registers the connector automatically. Click Add.Then just ask - for example, which of your projects had the most visitors last week, or how traffic this month compares with last month.
To disconnect, remove the connector in Claude (Customize > Connectors) or revoke it on the Connected AI Agents page. Revoking on Statcounter cuts off access immediately, even if the connector still appears in Claude. For the Claude side of the setup see also Anthropic's guide to custom connectors.
claude mcp add --transport http statcounter https://api.statcounter.com/mcpthen run /mcp to complete the login.
In ChatGPT the Statcounter MCP server is added as a plugin, which requires developer mode - available on any paid plan. On Business, Enterprise and Edu workspaces an admin must also allow developer mode.

Statcounter, paste the server URL above as the MCP server URL, leave authentication set to OAuth, tick the confirmation checkbox and click Create.

To disconnect, delete the plugin in ChatGPT or revoke it on the Connected AI Agents page - revoking on Statcounter cuts off access immediately.
Once connected, the agent has these tools. You do not call them yourself - ask questions in plain language and the agent picks the tool.
list_projects the projects your login can read, with timezone, retention window and whether the plan includes API accessget_project one project's details: URLs, timezone, creation date, log quota and usageget_account who the connection acts as, and the date and time formats to usequery_stats visitor and pageview totals; time series from hourly to yearly; segment summaries (direct, search, referral, social networks, phones, tablets, Android, iOS); and breakdowns - top pages, entry and exit pages, referrers, traffic sources, UTM, countries, regions, cities, ISPs, browsers, operating systems, platforms, screen resolutions, devices, keywords, search engines, languages, visit length, returning visits, exit links, downloads, bounce pages and custom tags - all with filtersrecent_visitors individual visitor sessions with location, browser and entry and exit pages, plus each visitor's navigation pathrecent_activity raw page views, exit-link clicks, downloads, referrer visits and search visits, newest firstlookup_visitor everything known about one IP address: profile and chronological activityactive_visitors who is on the site right nowlist_visitor_labels the labels you have attached to visitor IP addressesexport_log raw log rows for a date rangeAll dates are interpreted in each project's own timezone, matching what you see in your Statcounter dashboard.
Like the Statcounter API, the MCP server serves stats for projects on upgraded (paid) plans. Any account can approve a connection, but queries against a project whose plan does not include API access are refused with a message saying so - list_projects tells the agent which projects it can query.
Connections use OAuth 2.1: you approve each agent explicitly on statcounter.com, agents never see your password, tokens are short-lived and refreshed automatically, and access is read-only.
You can revoke any agent at any time from the Connected AI Agents page. Revocation takes effect immediately.
Use of the MCP server is subject to the Statcounter API Terms of Use.
Prefer to write code? The API v3 documentation covers the classic HTTP API, which returns the same statistics.