MCP server
Ai Token Counter
io.github.lazymac2x/ai-token-counter
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
Cloudflare Workers MCP server: ai-token-counter
Working at last checkAbout 467 tokens per request once connected4 tools
https://api.lazy-mac.com/ai-token-counter/mcp
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Working at last check
- Tools
- 4
- Token cost
- About 467 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http ai-token-counter https://api.lazy-mac.com/ai-token-counter/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.ai-token-counter] url = "https://api.lazy-mac.com/ai-token-counter/mcp"
Gemini CLI
{"mcpServers":{"ai-token-counter":{"httpUrl":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}
Cursor
{"mcpServers":{"ai-token-counter":{"url":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}
VS Code
{"servers":{"ai-token-counter":{"type":"http","url":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}
Antigravity
agy mcp add ai-token-counter https://api.lazy-mac.com/ai-token-counter/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"ai-token-counter","server_url":"https://api.lazy-mac.com/ai-token-counter/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"ai-token-counter","server_url":"https://api.lazy-mac.com/ai-token-counter/mcp"}
Tools
count_tokens~144 tokens
Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).estimate_cost~200 tokens
Estimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.get_model_pricing~78 tokens
Get input/output pricing per 1M tokens for a specific AI model.list_models~45 tokens
List all supported AI models with their pricing and context windows.
Browse
Related MCP servers
- Ai Rate Limit Tracker
Cloudflare Workers MCP server: ai-rate-limit-tracker - Ai Prompt Optimizer
Cloudflare Workers MCP server: ai-prompt-optimizer - Ai Cost Optimizer
Cloudflare Workers MCP server: ai-cost-optimizer - Agent Workflow Engine
Cloudflare Workers MCP server: agent-workflow-engine - Embedding Search
Cloudflare Workers MCP server: embedding-search - Ai Eval
Cloudflare Workers MCP server: ai-eval - Api Response Cost Analyzer
Cloudflare Workers MCP server: api-response-cost-analyzer - Cloudflare
Cloudflare MCP servers
Badge for your README
[](https://aptlynx.net/servers/io.github.lazymac2x/ai-token-counter)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents