mcpbeat

AI Token Counter MCP Server

io.github.lazymac2x/ai-token-counter
answering

AI Token Counter is answering right now. Last checked 4 min ago. It exposes 4 tools. Last commit 17 May 2026.

Cloudflare Workers MCP server: ai-token-counter

Uptime history 39 hours of history
39 hours agonow
100.0%
Uptime 24h
91 of 91 checks
4
Tools
read from the server
145 ms
Response time
average over 24h
0
Stars
last commit 17 May 2026

Connect this server

Endpoint below is the one we actually reach during checks — not the one copied from a README. Last verified 4 min ago.

run in your terminal
claude mcp add ai-token-counter --transport http https://api.lazy-mac.com/ai-token-counter/mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}
~/.codex/config.toml
[mcp_servers.ai-token-counter]
url = "https://api.lazy-mac.com/ai-token-counter/mcp"
.cursor/mcp.json
{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}

Available tools 4

Read directly from the server with tools/list, grouped by what they act on. If a tool disappears, we record the date.

count
count_tokens
Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).
estimate
estimate_cost
Estimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.
model
get_model_pricing
Get input/output pricing per 1M tokens for a specific AI model.
models
list_models
List all supported AI models with their pricing and context windows.

Endpoints

URLTransportStateLatencyChecked
https://api.lazy-mac.com/ai-token-counter/mcp streamable-http answering 61 ms 4 min ago

AI Token Counter — questions

Answers built from our own checks of this server.

What can AI Token Counter do?
It exposes 4 tools, read directly from the server on our last check. Among them: count_tokens, estimate_cost, get_model_pricing, list_models. The full list with descriptions is on this page — we take it from the server itself via tools/list, not from a README. How MCP servers expose tools in the first place →
Is AI Token Counter working right now?
We send a real MCP handshake every 15 minutes. Over the last 24 hours 91 of 91 checks got a reply (100.0%), average response time 145 ms. The bar chart above shows every period we have measured.
How do I connect AI Token Counter?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It is a remote server, so there is nothing to install — the client connects to the address.
Does AI Token Counter need an API key?
No. AI Token Counter completed a full MCP handshake with us as an anonymous client and listed its tools without asking for anything. All 4 of them are readable on this page. This is what we observed, not what the docs claim.
How fast is AI Token Counter?
It answers our handshake in 145 ms on average, which is faster than 74% of all working MCP servers we measure. The comparison comes from our own checks across the whole registry, every 15 minutes.
Is AI Token Counter open source?
Yes — 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.