Measure one server now
measure_serverConnect to an MCP server by URL or launch a local command to report its protocol version, tool count, and context-token cost, helping assess unregistered or local servers.
Instructions
Measures one MCP server now: connects to a remote URL, or starts a local command and stops it after tools/list, then reports the result, the protocol version, the tool count and the context-token cost of the tool definitions (o200k_base estimate; the exact Claude count when ANTHROPIC_API_KEY is set). Use it for a server that is not in the official registry, or for a local command; for a registry server prefer lookup_server, which answers from the daily board without a connection. Sends no credentials: a server that needs them comes back with status "auth", not an error. 15 s timeout per request. Give url or command, not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Remote endpoint to connect to, https://…/mcp (Streamable HTTP) or an …/sse URL. Use this or command. | |
| window | No | Context window in tokens for shareOfWindow; default 200000 (Claude) | |
| command | No | Local server command with its arguments, started with stdio and stopped after tools/list, for example "npx -y @modelcontextprotocol/server-filesystem /tmp". Use this or url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | The first line of the failure, when status is not ok | |
| status | No | ok (answered initialize and tools/list), auth (needs credentials), payment (402), not_found, protocol_error (not MCP), timeout, dns, tls, refused, server_error, rate_limited, newer_protocol, or for a local command: install_failed, no_bin, needs_env, needs_args, needs_network, crashed | |
| target | No | The url or command that was measured | |
| topTools | No | The ten most expensive tools: name and o200k_base tokens | |
| latencyMs | No | initialize and toolsList, milliseconds | |
| toolCount | No | How many tools tools/list returned | |
| serverInfo | No | name, version and title the server reports in initialize | |
| claudeError | No | Why the Anthropic endpoint refused to count, for example a schema it does not accept | |
| claudeTokens | No | Exact count from the Anthropic count_tokens endpoint, names as published; only with ANTHROPIC_API_KEY | |
| shareOfWindow | No | Percent of the context window the tool definitions take, exact when claudeTokens is present, else the estimate | |
| protocolVersion | No | The MCP protocol version the server negotiated | |
| toolsTokensEstimate | No | o200k_base tokens over the compact JSON of every tool definition; the exact Claude count is about 1.9 times this at the median | |
| claudeTokensClaudeCode | No | The same with the Claude Code prefix mcp__<server>__ on each tool name |