# MCP analytics

> See how AI assistants use your own MCP server: which tools Claude, ChatGPT and Cursor call, which fail, how long they take and who stops at sign-in. Live, beside your traffic.

Source: https://status.mettr.app/features/mcp-analytics

## Traffic that never loads a page

When people reach your product through Claude, ChatGPT or Cursor, they never see a page of yours: no page view, no referrer, nothing in your analytics. Your MCP server is a front door of its own, and it deserves the same view as your site. mettr counts every call the moment it is made:

- **Which tools** are called, and which never are.
- **Which assistants** call them: Claude, ChatGPT, Cursor, Claude Code, VS Code and the rest, named as people know them.
- **How each call ended**: ok, a tool's own error, a protocol error, a refusal, a rate limit.
- **How long** each tool takes, at the 75th percentile.
- **Who stops at sign-in**: the 401 that sends a client to OAuth is counted too, so a connector that never gets past it shows.

## One line in your server

Add mettr's middleware to your MCP server and every call is an event:

```php
Mcp::web('/mcp', AppServer::class)->middleware(['mettr.mcp', 'auth:api']);
```

The same in [Node.js](/docs/node) for `@modelcontextprotocol/sdk` or any fetch handler, [Next.js](/docs/nextjs) route handlers, [Python](/docs/python) for FastMCP or any ASGI app, [Ruby](/docs/ruby) for Rack and Rails, [Go](/docs/go) for any `http.Handler`, [PHP](/docs/php) with any server, and in [WordPress](/docs/wordpress) the MCP Adapter with nothing to set up. [How to set it up](/docs/mcp-analytics).

## On the same screen as everything else

Calls land in the live feed as they happen, and the MCP panels go on your canvas: calls, users, errors and time, each against the usual, calls by client over time, and top lists of tools, clients, outcomes, failing tools and slow ones. They are ordinary panels, so you filter them, build your own from the same events, set an [alert](/features/alerts) on tool errors, or ask your own assistant about them through [mettr's MCP server](/features/mcp).

## What it never sends

- What a call carried or what came back: only the name of the tool, resource or prompt.
- A failed call's message, unless you ask for it, cut to 200 characters.
- The client's address or user agent: they are the assistant's servers', not the person's. A call counts as your signed-in user's, and is never mistaken for a bot or counted as someone online.

MCP analytics comes with the [Pro plan](/pricing). Calls are kept on every plan, so they are there the day you upgrade.
