Skip to content

Count the users of your MCP server

Most AI agents don’t tell an MCP server who is using it. To count your MCP server’s users, MCP Tower identifies people from every signal the traffic carries, links the rest by likelihood, and estimates what it can’t count. That is why the Users and Sessions cards and the Users, approximate chart are marked approximate, and why a user figure comes with a range.

To get firmer numbers, see Getting firmer numbers.

Two kinds of signal identify a person for certain. MCP Tower never merges two different values of either into one person.

  • A verified sign-in. When your server uses OAuth and the access token is a JWT, the middleware checks the token against your authorization server’s published keys and reads its subject, the user’s id at your authorization server.
  • ChatGPT’s user id. ChatGPT sends an opaque id per user with each tool call.

Other signals are evidence: they make it likely, not certain, that two sessions belong to the same person.

  • The network address, when the agent runs on the user’s own machine, such as Claude Code or Cursor. Addresses that belong to an agent’s cloud, such as ChatGPT’s or Anthropic’s servers, are never used: many people share them.
  • The browser, when a person opens a tracked link or a widget loads in their browser: its address and user agent together.
  • Everything else about a session: the subject of a token MCP Tower couldn’t verify, the location, the client and its version, the language, the tools called, and when.

The token itself is never stored. The sign-in subject, the network address key and the browser key are kept as one-way keyed hashes, different for each MCP server, so they can’t be reversed or matched across servers. See Privacy and data.

A session is one person’s run of calls to your server with no long pause. MCP Tower groups calls by the strongest thread it finds, in this order:

  1. ChatGPT’s conversation id.
  2. The MCP session id the client sends.
  3. The person’s sign-in or ChatGPT user id.
  4. The agent and the network address, for an agent on the user’s own machine.

It then cuts each thread where the pause between two calls is longer than usual for that agent. The cut is learned from the traffic of each agent: between 2 minutes and 4 hours, and 30 minutes until there is enough data. If two different people appear under one thread, it is split between them.

Widget events and link clicks join the session of the tool call that produced them, whenever they arrive, and never make it longer. A call with no thread at all is counted as a call, but not as a session.

A user is a group of sessions MCP Tower believes belong to one person.

  • Sessions with the same sign-in or ChatGPT user id are always one user.
  • Other sessions are compared in pairs on the evidence above. Pairs likely enough to be the same person are joined. A model fitted from recorded traffic weighs each signal, and common values count for less, so an office network doesn’t join everyone in the office.
  • Sessions that no signal links to anyone are not counted as users. They go into the estimate.

How likely is “likely enough”? MCP Tower counts users at three thresholds: strict, usual and loose. The cards and charts show the usual one, and the Users card’s details give the range, for example “Between 1,180 and 1,420 users”. A wide range means many people were found by linking rather than by an id.

The Users, approximate chart stacks people by how they were identified:

SourceMeaning
Signed inIdentified by a verified sign-in.
ChatGPT userIdentified by ChatGPT’s user id.
LinkedFound by linking sessions on evidence, without an id.

A person counts in each source they appear in, so a bar can be taller than its distinct users, and adding up days or weeks doesn’t give the range’s users: the Users card does.

Some calls carry nothing to link: the main case is Claude on a server without OAuth, widgets or link tracking, since Claude sends no user id and calls from Anthropic’s cloud. For these, MCP Tower estimates how many people made them, from how many calls a person of the same agent makes on average across identified traffic. The estimate shows as ”+ ~N estimated” on the Users card and as a dashed line on the chart, with a 90% interval in the details. It is never added to the count.

  • Use OAuth with JWT access tokens: signed-in users are counted exactly.
  • Return widgets, and keep Track links on: a widget that loads or a link a person opens brings their browser, the only signal Claude traffic can have.

With Signed in selected in the filter bar, users and sessions keep only those identified by a verified sign-in, and Anonymous keeps the rest. A server whose tokens are opaque, rather than JWTs, never has signed-in users, even when every call carries a token. For tool calls, the same filter looks only at whether a call carried an Authorization header.

MCP Tower groups new calls into sessions and users every 30 minutes, so users lag tool calls by up to 30 minutes. The Users and Sessions cards and the users chart say when they were last updated, and show “Not available yet” until the first run for your server. Every call counts, whatever its result.

Each session takes its agent from its calls. The users chart has no country map: sessions from an agent’s cloud have no country of their own.