YourTraffic is the open-source, cookie-free analytics platform. Unlimited projects, a clean API, and native MCP support. Self-host it or run it in the cloud.
<script defer src="https://yourtraffic.dev/script.js"></script>
Real ways people use YourTraffic, from agencies with many client sites to indie hackers and teams giving AI agents access to their traffic.
Self-host YourTraffic for free under the MIT license, or let us run it for you. Same product, unlimited projects, no dark patterns.
Every metric is available over a small REST API. One endpoint, scoped API keys, JSON out.
curl "https://yourtraffic.dev/api/v1/stats?period=7d&group=day" \ -H "Authorization: Bearer yt_live_…"
siteProject domain to query.
period7d, 30d, 12mo, or from…to dates.
groupBucket results by day, week or month.
byBreak down by page, referrer, country, browser or device.
{
"site": "yourtraffic.dev",
"period": "7d",
"totals": { "visitors": 48213, "pageviews": 126004 },
"series": [
{ "date": "2026-06-29", "visitors": 6120, "pageviews": 15980 },
{ "date": "2026-06-30", "visitors": 6584, "pageviews": 17240 }
]
}
An llms.txt is published for AI tools too.
YourTraffic ships a hosted MCP server at yourtraffic.dev/mcp. Point any MCP client at it and ask about your traffic in plain language.
{
"mcpServers": {
"yourtraffic": {
"url": "https://yourtraffic.dev/mcp"
}
}
}
No api key to paste. The server uses OAuth, so your client opens a browser once for you to sign in and approve access.