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>
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://api.yourtraffic.dev/v1/stats \ -d site=yourtraffic.dev \ -d period=7d \ -d 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",
"headers": { "Authorization": "Bearer yt_live_…" }
}
}
}