Statcounter MCP Server

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.

Connecting

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/mcp

Then:

  1. Your tool opens a Statcounter page. Log in if you are not already.
  2. Review what the agent is asking for - read-only access to the stats of the projects visible to your login - and click Allow.
  3. You are sent back to your tool, and the connection is live. Nothing else needs configuring: no API password, no client id.

Connecting from Claude on the web

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.

  1. In Claude, go to Customize > Connectors (in your settings).
  2. Click the + button and choose Add custom connector.
  3. Enter a name, for example 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.
  4. Click Connect beside the new Statcounter connector. A Statcounter page opens: log in if you are not already, review the access being requested and click Allow. You are then returned to Claude.
  5. In a chat, click the + button at the lower left of the message box, choose Connectors and switch Statcounter on. Connectors are enabled per conversation.

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.

Connecting from Claude Code

claude mcp add --transport http statcounter https://api.statcounter.com/mcp

then run /mcp to complete the login.

Connecting from ChatGPT

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.

  1. Turn on developer mode first - custom MCP servers cannot be added without it. In Settings, open "Security and login" and enable "Developer mode".Developer mode toggle in ChatGPT settings
  2. Open the Plugins page (chatgpt.com/plugins), click the plus button, give the server a name such as Statcounter, paste the server URL above as the MCP server URL, leave authentication set to OAuth, tick the confirmation checkbox and click Create.ChatGPT new plugin form with the Statcounter MCP server URL
  3. Click Sign in, then log in and approve on the Statcounter page that opens.Statcounter page approving read-only access for ChatGPT
  4. In a chat, click the + button in the message box and pick the server, then ask your questions in plain language.

To disconnect, delete the plugin in ChatGPT or revoke it on the Connected AI Agents page - revoking on Statcounter cuts off access immediately.

What agents can do

Once connected, the agent has these tools. You do not call them yourself - ask questions in plain language and the agent picks the tool.

All dates are interpreted in each project's own timezone, matching what you see in your Statcounter dashboard.

Availability

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.

Security and revocation

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.

webf004
11.137008666992