# MCP analytics

See which AI agents call your MCP server, which tools they use, where calls fail and what each agent was trying to do, from one wrapper around your transport. Notra records every request your server answers.

[Start for free](https://app.usenotra.com/signup) or [book a call](https://www.usenotra.com/contact.md?ntr=4kbicuZkfxHNxnZH).

## Every tool, every client

Each request shows up with its tool, client, status and latency, so you see what agents use and what they skip.

- **Calls and errors per tool:** How often agents call each tool and how often it fails. Open a tool to see what agents call before and after it.
- **Tools no agent calls:** Tools your server lists in tools/list that no agent called. Rename them, rewrite the description or remove them.
- **Who connects:** Claude Code, Cursor, ChatGPT and every other client, from the name each one sends when it connects.

## What agents were trying to do

Turn on context parameters and agents say why they call a tool. When an intent lands on the wrong tool, you see it here.

## One wrapper around your transport

Works with stdio, Streamable HTTP and SSE. Your tool handlers stay as they are.

```typescript
import { trackMcpTransport } from "@usenotra/sdk/mcp";

await server.connect(
  trackMcpTransport(new StdioServerTransport(), {
    token: process.env.NOTRA_GEO_TOKEN ?? "",
  })
);
```

Tool arguments and results stay on your server unless you turn them on:

- **contextParameters:** Agents send their intent and model.
- **captureArguments:** Records tool arguments, with secrets redacted.
- **captureResponses:** Records tool results, with secrets redacted.
- **identify:** Names the user an agent acts for.
- **beforeSend:** Edits or drops an event before it's sent.

## How it works

### 1. Install the SDK

Add @usenotra/sdk to your MCP server and set your project token as NOTRA_GEO_TOKEN.

### 2. Wrap the transport

Pass the transport you already create through trackMcpTransport before server.connect.

### 3. Call a tool

Connect an agent and call a tool. The MCP server tab fills in once the first request arrives.

## Frequently asked questions

### Which transports does it work with?

stdio, Streamable HTTP, SSE and any other transport that exposes send and onmessage. Over HTTP each Mcp-Session-Id is one session; on stdio each connection is.

### Do tool arguments and results leave my server?

Only if you turn on captureArguments or captureResponses. Keys such as token or password are redacted and long strings are clipped before anything is sent.

### Does it work on serverless?

Yes. The tracker buffers events for up to a second and sends them in batches. On a serverless runtime, pass waitUntil to trackMcpTransport or await flushMcpEvents() before the function returns, so the last events aren't lost.

### Can I leave some requests out?

ping is skipped by default, and excludeMethods sets which methods are skipped. To drop a single event, return null from beforeSend.

### How does it count toward my plan?

Every recorded request counts toward the same monthly event allowance as agent traffic and page views. Free workspaces share 1 million events a month across them. Notra keeps individual requests for 90 days. See the [MCP analytics docs](https://www.usenotra.com/docs/analytics/mcp-analytics?ntr=4kbicuZkfxHNxnZH).

## More from Notra

- [Autopilot](https://www.usenotra.com/features/autopilot.md?ntr=4kbicuZkfxHNxnZH): Name a goal and Autopilot opens draft pull requests every day.
- [AI Crawler Logs](https://www.usenotra.com/features/ai-crawler-logs.md?ntr=4kbicuZkfxHNxnZH): See which AI crawlers visit your site and which pages they read.
- [Sites](https://www.usenotra.com/features/sites.md?ntr=4kbicuZkfxHNxnZH): Host your blog and changelog from MDX, on your own domain.
- [Personas](https://www.usenotra.com/features/personas.md?ntr=4kbicuZkfxHNxnZH): Track your AI visibility separately for each of your buyers.
- [Conversations](https://www.usenotra.com/features/conversations.md?ntr=4kbicuZkfxHNxnZH): Replay multi-turn buying conversations on every engine and see where you rank after each follow-up.
- [Free AI visibility scan](https://www.usenotra.com/features/free-scan.md?ntr=4kbicuZkfxHNxnZH): Find out for free whether ChatGPT and Google AI Overviews recommend you or a competitor.
- [Marketing assets](https://www.usenotra.com/features/marketing/assets.md?ntr=4kbicuZkfxHNxnZH): Turn merged pull requests into on-brand visuals with editable layers, ready for Paper or Figma.
- [All features](https://www.usenotra.com/features.md?ntr=4kbicuZkfxHNxnZH)

Use Notra inside your AI assistant: [ChatGPT](https://www.usenotra.com/mcp/chatgpt.md?ntr=4kbicuZkfxHNxnZH), [Claude](https://www.usenotra.com/mcp/claude.md?ntr=4kbicuZkfxHNxnZH), [Grok](https://www.usenotra.com/mcp/grok.md?ntr=4kbicuZkfxHNxnZH), [OpenClaw](https://www.usenotra.com/mcp/openclaw.md?ntr=4kbicuZkfxHNxnZH), [Claude Code](https://www.usenotra.com/mcp/claude-code.md?ntr=4kbicuZkfxHNxnZH), [Cursor](https://www.usenotra.com/mcp/cursor.md?ntr=4kbicuZkfxHNxnZH).
