GoatCounter MCP for AI. Analyze Web Traffic and Visitor Stats Now
Works with every AI agent you already use
…and any MCP-compatible client








Connect to your AI in seconds.
GoatCounter monitors your web traffic privately. This MCP tracks pageviews, analyzes visitor stats by browser or location, and lets you manage multiple sites directly from any AI agent.
Get detailed reports, download CSV data, and track custom events without ever compromising user privacy.
What your AI can do
Count hits
Send pageviews or custom events to GoatCounter for tracking.
Create site
Registers a new website into your monitored account.
Download export
Downloads the final, completed data export file (CSV or JSON).
Retrieves total pageview counts for a specific date range or analyzes traffic volume per content path.
Provides detailed stats, grouping visitors by operating system, browser version, location, and language.
Allows you to list all registered sites or create new ones within your GoatCounter account.
Initiates and retrieves full CSV or JSON data exports, making the analytics available in other reporting systems.
Sends specific hits or events directly from your backend code to supplement standard traffic counts.
Ask an AI about this
Waiting for input…
GoatCounter: 14 Tools for Web Analytics
Use these tools to query site details, analyze traffic metrics by path or category, and manage your entire web analytics setup via chat.
Make your AI actually useful.
Add this MCP to Claude, Cursor, or Windsurf and your AI stops guessing. It gets real tools to look things up, take action, and handle the stuff you keep doing by hand.
Start using GoatCounter on VinkiusCount Hits
Send pageviews or custom events to GoatCounter for tracking.
Create Site
Registers a new website into your monitored account.
Download Export
Downloads the final, completed data export file (CSV or JSON).
Get Export
Checks if a requested data export is ready and retrieves its status.
Get Site
Fetches detailed information about a specific registered site.
List Sites
Returns a list of all websites currently registered under your account.
Get Me
Retrieves basic account details, including your current API key information.
Start Export
Begins the background process to generate a complete data export file, returning an...
Get Stats Hits Path
Gathers specific referral statistics for a single, defined page path.
Get Stats Hits
Provides an overview of pageviews broken down by the URL path.
Get Stats Page Detail
Gets highly detailed statistics for a specific item within a category, such as a...
Get Stats Page
Pulls general usage stats, allowing breakdown by broad categories like browser or OS.
Get Stats Total
Calculates the total number of pageviews across your site for a specified date range.
Update Site
Modifies existing settings or configurations for any of your monitored websites.
Security and governance baked right in.
Pick your AI client below to get set up. Just create a Vinkius account, subscribe, and you're instantly up and running. We handle the entire backend infrastructure, delivering out-of-the-box support for HTTPS Streamable, SSE, and OAuth2—zero messy routing required.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with GoatCounter, then connect any of our 5,100+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 5,100+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by GoatCounter. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This connection provides 14 powerful capabilities that interface natively with Claude, ChatGPT, Cursor, and other compatible AI platforms. No middleware. No custom integration required.
Sifting Through Dashboard Click-Clutter
Today, getting a complete picture of site performance means jumping between tabs: the general overview dashboard for total hits, then clicking into 'Audience' to check browsers, and finally drilling down again to find referral sources. It’s constant context switching, copy-pasting numbers, and manually piecing together a story that takes far too long.
With this MCP, you ask your agent one question—for example, 'Show me the total hits for last month.' The agent executes the necessary tools and returns a clean, summarized answer. You get the insight instantly; no clicking required.
Getting Site Data with GoatCounter
The biggest manual pain point is the export process. You track data for weeks and finally need it in a spreadsheet, which means running multiple reports, manually selecting date ranges, and then exporting those disparate pieces into one massive file that often requires cleanup.
Now, you simply tell your agent to start an export job using `start_export`. The MCP handles the heavy lifting, queues the data collection, and presents the final CSV/JSON download link when it’s ready. It just works.
What your AI can actually do with this
Connect your site analytics to any AI client through Vinkius's catalog. You can now get a full picture of how people interact with your site—all while keeping their data private. Instead of logging into an analytics dashboard and clicking through tabs, you simply ask your agent for what you need.
Need to know the total pageviews over the last 30 days? Ask. Want to see which browsers are hitting your checkout page? Ask that too. You can even list all your registered sites or send custom hits directly from your code. It's about getting reliable, actionable data summaries and exporting full datasets right inside your workflow.
019e38a0-8ce7-7047-af66-25c2727b5884 Here's how it actually works
The bottom line is you get web analytics insights without leaving your code editor or terminal.
Subscribe to this MCP and provide your GoatCounter API Key and instance URL.
Direct your AI agent to run a query, like 'Show me the total pageviews for last month.'
The agent executes the tool call and returns the summarized data directly in your chat window.
Who is this actually for?
Web Developers, Data Analysts, and Site Owners who are tired of context switching. If you spend time toggling between a coding environment, an API dashboard, and a spreadsheet just to get site metrics, this MCP saves your sanity.
Uses the tool to send custom hits from middleware or code, accurately tracking specific user actions on high-traffic pages.
Automates complex queries, using tools like get_stats_hits_path to pull referral data that feeds into custom marketing reports.
Gets quick summaries of daily traffic and top-performing content via simple chat commands without writing a single line of SQL.
What Changes When You Connect
Get immediate traffic data. Instead of digging through a dashboard, ask for the total pageviews using get_stats_total and get an answer instantly.
Understand your audience deeply. You can break down visitor stats by OS or browser type with get_stats_page, helping you target development efforts better.
Keep data private and usable. The tool lets you initiate exports via start_export and download the resulting CSV/JSON file for external use, all without compromising user privacy.
Manage everything from one place. Use list_sites to see every site you own or create_site to onboard a new project immediately.
Track actions where standard analytics fall short. Send custom events using count_hits directly from your code, giving you granular insights into user behavior.
See it in action
Debugging a poor conversion rate
A developer notices the checkout page is failing. They ask their agent to use get_stats_hits_path for that specific path, immediately identifying if the issue is browser-related by cross-referencing the results with get_stats_page_detail. This pinpoints whether Chrome or Safari users are having trouble.
Generating quarterly board reports
A data analyst needs a full dataset for Q2. They ask their agent to run start_export, wait for the status using get_export, and then download the final file via download_export—all without manual copy-pasting.
Onboarding a new client site
A product manager needs to monitor a beta site. They use list_sites to confirm it's missing and then immediately run create_site, getting the new URL added for monitoring without leaving their chat interface.
Validating backend tracking logic
A developer just deployed a new feature. They ask their agent to manually send a test event using count_hits and then query the recent stats, verifying that the custom hit appeared correctly in the analytics summary.
The honest tradeoffs
Asking for all site data at once
Prompting your agent with a vague request like 'Tell me everything about my traffic.' This results in an unmanageable wall of text that mixes different metrics and fails to give you actionable answers.
Be precise. Instead, ask the agent to use get_stats_total for a specific date range, or run list_sites first to confirm which site you're talking about.
Mixing up general vs. path stats
Confusing overall traffic with page-specific behavior. You might ask the agent for 'all stats,' but fail to narrow it down, missing key insights about where users actually drop off.
If you need an overview by OS or browser, use get_stats_page. If you care about a specific URL like /checkout, use get_stats_hits_path.
Assuming the export is instant
Asking for a full data dump and immediately trying to download it. The process requires time, and your request will fail because the file hasn't been compiled yet.
First, run start_export to queue the job. Then, use get_export periodically until you get confirmation that the export is ready before calling download_export.
When It Fits, When It Doesn't
Use this MCP if your primary need is deep visibility into web traffic and visitor demographics while maintaining strict user privacy. It's perfect for data analysts who need to aggregate information (using tools like get_stats_hits and get_stats_page) or developers needing programmatic control (like using count_hits). Don't use it if you only need simple, real-time page views; in that case, a basic analytics widget might suffice. If your goal is to manage site infrastructure—creating new sites or updating settings—the tools like create_site and update_site handle those actions directly.
Questions you might have
How do I check total pageviews with get_stats_total? +
You give your agent a date range, and the tool calculates the combined count of all pageviews for that period. This is the fastest way to grasp overall traffic volume.
What's the difference between list_sites and get_site? +
list_sites gives you a master roster of every site connected to your account. get_site, however, pulls detailed configuration data for one specific site ID.
Can I track a custom event using count_hits? +
Yes. You can send hits or events directly from your code using the count_hits tool. This is ideal for tracking user actions that don't generate a standard pageview.
How do I download my data with download_export? +
You must first start the export job via start_export. Then, use get_export to monitor its status. Once confirmed complete, you call download_export.
How can I verify my API key or check my account details using get_me? +
The get_me tool retrieves your current user information, including the necessary API credentials. This confirms you're operating with the correct keys before running any analytics queries.
If I need to change my site’s domain or settings, which tool should I use? (update_site) +
You must use update_site when changing configurations for a registered property. This allows you to adjust tracking parameters or modify the domain without writing code changes.
How do I know if my background data export job is finished? (start_export and get_export) +
First, run start_export to queue your full dataset. Then, use get_export to check its status; it will provide the link once the file is ready for download.
I only want referral data for a specific page path, not overall hits. How do I get that? (get_stats_hits_path) +
Use get_stats_hits_path to filter the metrics down to just referral statistics for a single, specified page. This gives you deeper insight than general hit counts.
Can I see which browsers my visitors are using? +
Yes. Use the get_stats_page tool with the 'browsers' category to see a breakdown of visitor browser statistics for your chosen date range.
How do I export all my analytics data for backup? +
You can start a background export using start_export. Once processed, use get_export to check the status and download_export to retrieve the file.
Is it possible to track custom events from my server code? +
Absolutely. The count_hits tool allows you to send pageviews or custom events directly to GoatCounter from any backend or middleware.
We've already built the connector for GoatCounter. Just plug in your AI agents and start using Vinkius.
No hosting. No infrastructure. No complex setup.
All 14 tools are live and waiting.
You're up and running in seconds.
Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.
Built, hosted, and secured by Vinkius. You just connect and go.