Analytics for AI Agents That Read Your Traffic
AI agents are getting good at real work, but they can only act on data they can reach, and most analytics tools were never built for an agent to query. YourTraffic ships a native MCP server, so an agent can read your traffic directly.
What the MCP server does
MCP is the standard way to give an AI agent tools and data. Point an agent at your YourTraffic instance and it can pull visitor counts, top pages, sources and trends on demand, instead of you copying numbers into a prompt.
Setting it up
Add the MCP server to your agent client, for example Claude, and sign in once through OAuth to approve access. No API key is pasted into a config file. The agent gets read access to your stats and nothing else, and you can revoke it whenever you want.
What it looks like in use
You ask which pages gained traffic this week, or whether yesterday's launch moved anything, and the agent answers from live data. Paired with your other tools it can go further, drafting a traffic summary or flagging a sudden drop without you opening a dashboard.
A plain REST API too
If you would rather build directly, the same data is available over a documented REST API with a Bearer token. The MCP server is the agent-friendly layer on top of it.
Self-host YourTraffic for free or use the cloud. Add a site, drop one script tag and your traffic is ready for you and your agents.