mcpcost is an open-source monitoring tool centered on MCP (Model Context Protocol) server health and token cost. It probes remote servers in the official MCP registry daily, recording whether servers respond to initialize and tools/list requests, response latency, negotiated protocol version, authentication requirements and methods, whether payment is required (HTTP 402), number of tools, and tokens consumed by tool definitions.
Main capabilities include: an online dashboard showing server survival rate, token cost percentiles, statistics categorized by reason, protocol versions, authentication schemes, transport methods, largest publishers, etc.; support for full-text search, filtering, sorting, and server comparison; each server has a separate page showing status, latency, protocol, capabilities, most expensive tools, history, badges, and email alerts. It also provides a JSON API for agents and scripts, as well as an unauthenticated MCP server (Streamable HTTP) containing tools such as lookup_server, search_servers, compare_servers, check_server, registry_summary.
Usage: the command-line tool mcpcost can start configured servers like a client, list tools and print the token cost for each server and total; supports OAuth authentication flow, with credentials stored in ~/.mcpcost/credentials.json. GitHub Action can generate a server cost table in CI and fail when over-budget servers are added in a PR. The Claude Code plugin provides the /mcpcost:measure skill and dashboard MCP server.
Applicable scenarios: developers assessing MCP servers' context window usage, setting token budgets, monitoring server availability, comparing tool costs across different servers. Limitations: network access required; some servers require authentication to measure; accurate token counting relies on the Anthropic count_tokens endpoint (free), and by default uses o200k_base estimation; about 5% of server schemas are rejected by the endpoint and only estimated values are displayed.