GoatCounter

GoatCounter MCP Connector for Claude

A+

Privacy-friendly web analytics — track pageviews, analyze visitor stats, and manage your sites directly through any AI agent.

14 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect your GoatCounter account to any AI agent to monitor your web traffic without compromising user privacy. This MCP server allows you to query detailed statistics, manage site configurations, and handle data exports through natural conversation.

What you can do

  • Traffic Insights — Retrieve pageview counts, total hits, and referral statistics for specific paths.
  • Visitor Analytics — Break down stats by categories such as browsers, operating systems, locations, and languages.
  • Data Portability — Initiate, monitor, and download full CSV/JSON data exports for external analysis.
  • Site Management — List all your registered sites, create new ones, or update existing site configurations.
  • Custom Event Tracking — Send hits or events directly from your backend or middleware to your GoatCounter dashboard.

How it works

  1. Subscribe to this server
  2. Enter your GoatCounter API Key and your instance URL
  3. Start analyzing your web traffic from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Web Developers — monitor site performance and visitor trends without leaving the code editor.
  • Data Analysts — automate the extraction of privacy-compliant analytics for custom reporting.
  • Site Owners — get quick summaries of daily traffic and top-performing content via simple chat commands.
web-analyticsprivacy-focusedtraffic-monitoringvisitor-statsdata-exportmarketing-insights

14 tools expose this connector's capabilities to your AI agent.

count_hits

Send pageviews or events to GoatCounter

create_site

Create a new site

download_export

Download a completed export file

get_export

Get export status and metadata

get_site

Detailed information about a site

list_sites

List all sites accessible by the user

get_me

Get current user and API key info

start_export

Returns an export ID to check status. Start a new data export in the background

get_stats_hits_path

Referral statistics for a specific path

get_stats_hits

Overview of pageviews per path

get_stats_page_detail

g., browser versions). Detailed stats for a specific item in a category

get_stats_page

Stats for specific categories (browsers, systems, etc)

get_stats_total

Total pageview counts for a date range

update_site

Update site settings

See how to talk to your AI agent using GoatCounter.

Show me the total pageview counts for the last 30 days.

I've retrieved your stats. In the last 30 days, your site received a total of 12,450 pageviews.

List all the sites registered in my GoatCounter account.

You have 3 sites registered: 'Personal Blog' (ID: 101), 'E-commerce Store' (ID: 102), and 'Docs Portal' (ID: 103).

Get detailed stats for browser versions used by my visitors.

Analyzing browser data... Chrome 118 is your most popular version (45%), followed by Firefox 119 (20%) and Safari 17 (15%).

Yes. Use the `get_stats_page` tool with the 'browsers' category to see a breakdown of visitor browser statistics for your chosen date range.

Related Connectors