Source: https://measuremy.site/guides/analytics-mcp-server

[measuremy.site](https://measuremy.site/) / [Guides](https://measuremy.site/guides)

# A website analytics MCP server: ask your agent about your traffic

The Model Context Protocol (MCP) lets a coding agent call tools on a server. An analytics MCP server turns your traffic into tools the agent can call, so instead of opening a dashboard you ask "why did traffic jump on Tuesday?" and the agent fetches the numbers itself.

## What the agent can do

- **Read traffic:** overview with change against the previous period, time series, top sources, pages, countries, browsers and systems.
- **Answer questions about visits:** count pageviews or events and visitors for any mix of country, browser, system, source, page and event, grouped by day, hour or any of those.
- **Explain spikes:** find traffic jumps and rank the sources, pages and events behind each one.
- **Follow visitors through steps:** create and read funnels to see where people drop off.
- **Plan and measure marketing:** channels ranked by conversions, ranked growth actions, tracked links for everything it publishes, and results per campaign.

## Connect it in two minutes

With measuremy.site the fastest route is one sentence. Your agent reads the setup instructions, opens a sign-in page in your browser where you enter your email and domain, adds the script to your project and connects itself.

Paste this into Claude Code, Cursor or Codex

`Add measuremy.site analytics to this project: connect the measuremy.site MCP server at https://a.measuremy.site/mcp for all my projects (claude mcp add --scope user; it signs in with OAuth, no key, and one sign-in covers every site), then tell me how to sign in. Details: measuremy.site/llms.txt`

To connect by hand in Claude Code, add the server once for all your projects. It signs in through your browser the first time it is used, so no key is pasted anywhere, and one sign-in covers every site in your account:

```
claude mcp add --scope user --transport http measuremysite https://a.measuremy.site/mcp
```

Cursor and Codex use a short config file instead. The [agent guide](https://measuremy.site/docs/mcp) has each one.

## Questions that work well

- "How many iOS visitors from the US came last week, and where do my Firefox users live?"
- "Which channel actually brings signups?"
- "Where do visitors drop off between the homepage and signup?"
- "I'm posting on Reddit tomorrow. Write the post and give me a tracked link."

## What it can and can't do

Each read key is scoped to one site. The agent can read analytics and create tracked links, annotations, funnels and a public dashboard when you ask. It can't change your account or billing, and it never sees IP addresses or browser identification strings, because they aren't stored.

### Try it on your site

30-day free trial, no card. Plans from $9/month. Paste one sentence into your coding agent, or add one script tag yourself.

[Start free trial](https://measuremy.site/login) [See the live demo](https://measuremy.site/share/measuremy.site)

Add measuremy.site analytics to this project: connect the measuremy.site MCP server at https://a.measuremy.site/mcp for all my projects (claude mcp add --scope user; it signs in with OAuth, no key, and one sign-in covers every site), then tell me how to sign in. Details: measuremy.site/llms.txt

## Free tools

- [Free UTM link builder](https://measuremy.site/tools/utm-link-builder): Add utm_source, medium and campaign to any link.
- [Link shortener with click tracking](https://measuremy.site/tools/link-shortener): Short links with a click count by day and country.
- [Analytics tag checker](https://measuremy.site/tools/analytics-tag-checker): Which analytics and pixels a site runs, plus duplicate and broken tags.

[All free tools](https://measuremy.site/tools)

## More guides

- [Add website analytics to your project with Claude Code](https://measuremy.site/guides/claude-code-analytics)
- [Find out why your website traffic spiked](https://measuremy.site/guides/find-why-traffic-spiked)
- [Track clicks and find where visitors drop off, without writing code](https://measuremy.site/guides/funnels-and-click-tracking)
- [Cookieless analytics: how it works, and what you give up](https://measuremy.site/guides/cookieless-analytics)
- [A simpler Google Analytics alternative for developers](https://measuremy.site/guides/google-analytics-alternative)
- [How to add analytics to your Next.js site](https://measuremy.site/guides/add-analytics-to-nextjs)
- [How to add analytics to your Astro site](https://measuremy.site/guides/add-analytics-to-astro)
- [How to add analytics to your Vite, React or Vue site](https://measuremy.site/guides/add-analytics-to-vite-react)
- [How to add analytics to your SvelteKit site](https://measuremy.site/guides/add-analytics-to-sveltekit)
- [How to add analytics to your Hugo site](https://measuremy.site/guides/add-analytics-to-hugo)
- [How to add analytics to your Docusaurus site](https://measuremy.site/guides/add-analytics-to-docusaurus)
- [How to add analytics to your WordPress site](https://measuremy.site/guides/add-analytics-to-wordpress)
