io.github.lazymac2x/ai-token-counter
repo:https://github.com/lazymac2x/ai-token-counter-api
Cloudflare Workers MCP server: ai-token-counter
- transport:
- remote
- credential class:
- open
Owner verification
Not yet verified. Verifying proves you control this server and is free, permanently — it never changes a published score.
Start verification →Tools
- count_tokensshallow
Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).
- estimate_costshallow
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_pricingshallow
Get input/output pricing per 1M tokens for a specific AI model.
- list_modelsshallow
List all supported AI models with their pricing and context windows.
Embed this server’s score
Tool count and median score across every tool in this server’s corpus — honest in a way a single cherry-picked tool’s badge wouldn’t be.
[](https://vouch.tools/servers/0c59c7e7-e3d5-48ba-bdac-8f65c9fd4b0e)