- RAW DATA
- JSON FORMAT
- ANALYSIS
- HUMAN
Short answer
How can I get my GoatCounter data into my AI?
Your AI uses the GoatCounter MCP to trigger exports and download the resulting files. You'll get clean CSV or JSON files ready for your own analysis. Here is what you can do with that data.
Data export outcomes
Where your data lands.
The results of your AI's export requests.
RAW DATA
Clean CSV files
The AI pulls specific visitor or page metrics into a CSV format. You can then upload these directly to a spreadsheet.
JSON FORMAT
Structured JSON exports
If you're doing programmatic work, your agent can grab JSON files. This makes it easy to feed data into other scripts.
ANALYSIS
Deep data insights
Once the data is pulled, your AI can summarize trends or find anomalies in the numbers. It handles the heavy lifting of reading the files.
HUMAN
Manual verification
You decide which timeframes or metrics are worth exporting. The AI won't make decisions about what data is important without you.
The workflow
What your AI does when the export is requested.
The AI handles the communication with GoatCounter so you don't have to click through menus.
Trigger the export
Your agent tells GoatCounter to prepare a specific data set based on your request.
start_exportCheck status
The AI monitors the progress to ensure the data set is ready for retrieval.
get_exportFetch the file
Once the export is finished, the AI grabs the actual file content.
download_exportProcess data
The AI reads the downloaded file to answer your specific questions about the metrics.
download_export
Try it
Copy these to start.
Use these prompts to kick off your first data export.
Starting points
Swap out the bracketed info for your actual site name or specific date ranges.
GoatCounter Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_oy2DrhzX8CLr7ssLTemEJTw8bZJBNGBfBFNMjKur/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — GoatCounter capabilities are ready to use.
{
"mcpServers": {
"goatcounter-mcp": {
"url": "https://edge.vinkius.com/vk_preview_oy2DrhzX8CLr7ssLTemEJTw8bZJBNGBfBFNMjKur/mcp"
}
}
}Start an export for my website 'example.com' for the last 30 days.
Get the JSON export for my site 'blog.io' and summarize the top 5 pages.
Download the CSV export for 'shop.com' showing visitor counts from last week.
Check if the export for 'dev.net' is ready so I can analyze the traffic spikes.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect GoatCounter once, then ask.
Click the link to connect your account. Your credentials stay encrypted, and you can start asking for data immediately.
Connect GoatCounter to your AIFAQ
How the export task behaves
- 01
Can the AI change my GoatCounter settings?
No. The AI only has tools to start, get, and download exports. It cannot modify your account configuration.
- 02
What file formats can I get?
The AI can retrieve data in both CSV and JSON formats depending on what you ask for.
- 03
Can the AI delete my analytics data?
No. There are no tools provided to delete or modify existing data in GoatCounter.
- 04
Does the AI decide which data to export?
No. You must specify the site, the timeframe, or the metrics you want in your prompt.
- 05
Can I use this with Claude?
Yes, as long as you are using an MCP-compatible client like Claude Desktop.
More questions about GoatCounter? The Connector page answers them. See everything the GoatCounter Connector can do
Connect GoatCounter to Claude, Cursor, ChatGPT & more
