mcpcost

method

How mcpcost measures

One open-source probe. The same steps for every server.

What we probe

The probe reads the official MCP registry. It uses the latest version of each server. It takes the first streamable-http remote. If the server has only an sse remote, it takes that one. Servers that ship only as a package on npm or PyPI are probed too: the package is installed in a container with the network on and no lifecycle scripts, then started with the network off and placeholder values for the environment variables the registry entry lists. “needs env”, “needs args” and “needs network” mean the server started but wants a real credential, an argument or a network. “crashed on start”, “install failed” and “no executable” are what they say. We decide by the line of the error output that names the exception: a module, a file or a name of the package that is missing, or a syntax error, is a crash; a key, a token or a variable that is not set is “needs env”, also when Python prints it as a traceback. mcp 2.0, the Python SDK of 28 July 2026, renamed FastMCP to MCPServer, so a PyPI package that asks for mcp with no upper bound gets 2.x from a plain install and stops at the import of mcp.server.fastmcp, the same as for a user who runs it with uvx. The probe installs such a package once more with --with 'mcp<2'. When it then lists its tools, the result is “needs mcp<2”, with those tools and their cost; otherwise the crash stands. An OCI image is pulled with the network on and started as docker run -i with the network off, no capabilities and only the package arguments of the entry; its runtime arguments are docker options, which the probe does not give an image. An MCPB bundle is downloaded, checked against the SHA-256 that the registry lists, unpacked and started as its manifest says, also with the network off. A bundle or an image that serves HTTP, and NuGet and Cargo packages, are not probed yet; their entries show as “not probed”. A package is probed once a week, and on the day after it is published or updated.

How we probe a server

  1. Connect with the official TypeScript SDK. The client name is mcpcost. We send no credentials, with one exception: a server whose owner stored credentials through mcpcost auth is probed with them, and its page says “measured with credentials”.
  2. Send initialize and notifications/initialized. Record the time to the initialize result, the protocol version, the server name and version, the capabilities and the length of the instructions.
  3. If the server has tools, call tools/list. Follow the pagination. Record the time and the tools.
  4. Do not open the standalone GET stream. The probe answers 405 to the SDK's GET. The probe needs no messages from the server. Some servers stop tools/list while that stream is open.
  5. Close the session.

Each request has a timeout of 15 seconds. We run one probe at a time against each host.

An entry can list several endpoints. We try them in order, streamable HTTP first, then SSE, and the first one that gives a valid answer counts. An endpoint can have placeholders that each user fills in, such as https://{tenant}.example.com/mcp. We fill a placeholder from the registry's default value, else from its first choice. When no endpoint can be filled, or the default points to the user's own machine, we do not call the URL: the result is “needs your URL”, not a failure.

Results

alive
initialize and tools/list were successful.
needs auth
HTTP 401 or 403. We record the WWW-Authenticate scheme when the server sends one. The server is reachable, but it does not talk to clients without credentials. We then read what the server publishes about getting in, never a token: the OAuth protected-resource metadata (RFC 9728, the URL from WWW-Authenticate or the well-known path) gives the authorization servers, the scopes and the publisher's guide; the first authorization server's metadata (RFC 8414, then OpenID discovery) says whether clients can register themselves (RFC 7591) and whether PKCE S256 is supported. The server page sums it up as one of four kinds: OAuth where clients register themselves, OAuth where the publisher issues the client id, a key or token from the publisher, or nothing published. Two to four small requests, 10 seconds each; the probe result does not depend on them.
paid (402)
HTTP 402 Payment Required.
newer protocol
The server answers with a protocol version that the current SDK does not support. The server is reachable.
not found
HTTP 404, 405 or 410 on the MCP endpoint.
not MCP
HTTP 200, but the response is not a valid MCP reply. Or the server returned a JSON-RPC error to initialize.
not probed
The registry entry has only an MCPB bundle, an OCI image, a NuGet or Cargo package, or nothing to connect to, and the probe does not run that yet. The entry is on the board, so the list holds the whole registry, but it is not in the counts of probed servers, the dataset or the evidence.
needs your URL
Every endpoint of the entry has a placeholder with no usable value, for example a tenant or a host of the user's own. We do not call it.
timeout, no DNS, TLS error, refused, server error, rate limited
Transport failures. We name each one after its cause.

One failed probe is not an outage: a timeout, a 429 or a 5xx can be a bad hour of the server or a fault of our own network. A server with no valid answer is no answer until it has failed on two calendar days in a row; from the third day it is down, and its page says since when. A package server is probed once a week, so it is down when it fails again at its next probe. A rate limit, HTTP 429 or a reply that says so, is never down: the server answered. A host with 200 entries or more gets one seventh of them probed a day, so the probe stays under the limits such hosts set; the other entries keep the result of their last probe. The re-check evidence for the registry follows the same rule: a dead cause counts as dead only after two days.

Token counts

A server page leads with one number: the exact Claude count when the run has it, else the estimate. The facts under it hold the other counts, and a server that needs auth can show the tool set of its publisher's open-source package instead (see below).

Claude
The exact count from the Anthropic count_tokens endpoint, model claude-opus-5-5, tool names as the server publishes them. We send one request with the server's tools and a small marker tool, and one request with the marker tool only. The difference is what the server's tools cost. The tool-use system prompt is in both requests, so it falls out. The endpoint is free and calls no model.
Gemini
The same method against the Gemini countTokens endpoint, model gemini-3.8-flash, with each tool sent as a function declaration with its JSON Schema as it is (parametersJsonSchema). Present on a server page once a run had a Gemini key. The endpoint is free and calls no model.
Claude Code
The same count with the prefix mcp__<server>__ on each tool name, as Claude Code sends it. The server part is the last segment of the registry name. In your own config it is the key you chose, so your number can differ by a few tokens.
o200k
An estimate. We serialize each tool as compact JSON with name, description and input_schema and count with the o200k_base tokenizer. It is the same estimate for every server and it needs no API key. The exact Claude count is about 1.9 times this estimate at the median, because Claude renders the schemas in its own format and tokenizes prose in its own way.

“Of a 200k context window” divides the Claude count by 200 000. A request with tools also carries a tool-use system prompt one time: 286 tokens for Claude Opus 5.5. We do not add it to any server. Claude Code defers MCP tool definitions by default (tool search) and loads a tool's definition when it needs it; the count is then the ceiling, not what every turn pays.

We count a server again only when its tool definitions change. The date next to the Claude count is the date of that count. Some servers publish a schema the endpoint refuses, for example a top-level oneOf or two tools with the same name; they show the estimate and the reason. These servers show the estimate and the reason.

Same tool set

We hash the sorted tool names and their schema sizes. Servers with the same hash serve the same tools. This shows bulk publishers that register one server under many names.

Live check

/check probes one server on demand. It uses the same steps and a timeout of 10 seconds. The Worker does the network part and asks count_tokens for the exact Claude count. Your browser counts the o200k estimate, because the Worker has a small CPU budget. We keep a result for ten minutes. A URL that is already in the registry opens its page.

Servers that need auth

A server that answers 401 or 402 is reachable but gives no tool list. Two things fill the gap. The owner of the board can store credentials for a server with mcpcost auth (the MCP OAuth flow or a header); the daily probe then uses them and the page says “measured with credentials”. For the rest, the tool definitions do not depend on the token: when the registry entry names a public repository with a package on npm or PyPI, the package is started in the container like any package server, and the page shows its tool set with the note “from the publisher's package”.

Outside the registry

A URL that is not in the registry can be tracked from /check. The daily probe then measures it with the registry servers, under the name url/<host>/<path>, with a page, a badge, a feed and alerts like any other server.

Some official servers of known vendors are not in the registry. The probe also reads two public catalogs under the MIT license once a day: Docker's MCP Catalog and awesome-remote-mcp-servers. Each remote endpoint in them that no registry entry has, under either transport path (/mcp or /sse), gets a page under the same url/ name, with a link to the catalog. These servers, and the ones tracked from /check, are in the list and the search, but not in the statistics, the changes, the report, the dataset or the re-check evidence: those are about the official registry.

The remotes of a registry entry are ways to reach one server: a transport, a region. A few publishers list a set of servers in one entry instead; com.cloudflare.mcp/mcp lists 15. When the remotes of an entry are three or more servers (by host and path, with /mcp and /sse of one host as one server), the first keeps the entry's name, and each of the others gets a page of its own under its url/ name, with a link to the entry. The probe tries a second remote of the same server only, never another server under the entry's name. Regional copies of one server are split by this rule too; their pages say so. The statistics and the evidence keep one row per entry.

Second attempts

A server that times out but answered in the previous run gets a second, slower attempt at the end of the run, so a fault on our side does not show as an outage. A package server that exits asking for a variable is started once more with that variable set to a placeholder. A package server that does not start with placeholders gets up to two more starts. The first is without the variables that its entry does not require: a placeholder in an optional variable, where the server expects a URL or a number, can stop it. The second puts a value of the expected kind into the variables that stay: the publisher's own example from the entry, a default that the description names, a number, a URL or a path. The container has no network at start, so such a URL is never called. A value that the entry fixes for every user is always set as it is.

Machine access

Each server has JSON at /api/s/<name>.json. The list is at /api/servers.json. The live probe is at /api/check.json?url=…. The run summary is at /api/summary.json. The board is also an MCP server: https://mcpcost.ulehla.dev/mcp over Streamable HTTP, no auth. Its tools are lookup_server, search_servers, check_server and registry_summary. /llms.txt lists all of this. The newest run as re-check evidence for the registry, in the row shape agreed in registry issue #1715, is at /data/mcpcost-evidence-latest.json.gz. It changes after each daily run, and /data/mcpcost-evidence-latest.index.json gives its run date, number of rows and size.

Being a good guest

Each request carries the User-Agent mcpcost/<version> (+https://github.com/ondraulehla/mcpcost). The probe runs one time each day. It sends no tool calls. It makes at most three requests to each server, six when the first attempt timed out and the server answered the day before. To exclude a server, open an issue with its registry name.

Run it yourself

git clone https://github.com/ondraulehla/mcpcost
cd mcpcost && npm install
npm run probe -- --sample 200 --per-host 2