ai-token-counter
io.github.lazymac2x/ai-token-counter
MCP server OK 4 tools
Cloudflare Workers MCP server: ai-token-counter
Technical sheet
- Author
- lazymac2x (registry namespace)
- Repository
- github.com/lazymac2x/ai-token-counter-api
- Site
- —
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://api.lazy-mac.com/ai-token-counter/mcp Streamable HTTP
- Tools
- 4
- Categories
- Cloud and infrastructure
- Comparisons
- MCP servers for Cloudflare
- Last updated
- 16 May 2026
- Published
- 16 May 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 3 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)<a href="https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter"><img src="https://latlas.dev/badge/statut/mcp/io.github.lazymac2x/ai-token-counter.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)<a href="https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter"><img src="https://latlas.dev/badge/fiche/io.github.lazymac2x/ai-token-counter.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://api.lazy-mac.com/ai-token-counter/mcp
- Last result
- OK 28 Nov 2026, 09:56
- Response time
- 373 ms (initialize + tools/list)
- Protocol version
- 2024-11-05
- Announced name
- ai-token-counter 2.0.0
- Tools
- 4
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:56 | OK | 373 ms | 4 |
Exposed tools (4, from tools/list, 28 Nov 2026)
count_tokens
Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | no | Model ID, e.g. gpt-4o, claude-sonnet-4. Defaults to gpt-4o. |
| text | string | no | Plain text to count tokens for. |
| messages | array<object> | no | Chat messages array in OpenAI/Anthropic format. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | yes | Model ID, e.g. gpt-4o, claude-opus-4, gemini-2.0-flash. |
| input_tokens | integer | no | Number of input tokens. |
| output_tokens | integer | no | Number of output tokens. |
| text | string | no | Text to tokenize for input (if input_tokens not given). |
| requests_per_day | number | no | If given, adds daily/monthly/yearly cost projection. |
get_model_pricing
Get input/output pricing per 1M tokens for a specific AI model.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | yes | Model ID, e.g. gpt-4o, claude-haiku-3, llama-3-70b. |
list_models
List all supported AI models with their pricing and context windows.
No parameters.
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://api.lazy-mac.com/ai-token-counter/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http ai-token-counter https://api.lazy-mac.com/ai-token-counter/mcpCustomize > Connectors > + Add > Add custom connector ; Name : ai-token-counter ; URL : https://api.lazy-mac.com/ai-token-counter/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : ai-token-counter ; Server URL : https://api.lazy-mac.com/ai-token-counter/mcp ; Create as a plugin{
"mcpServers": {
"ai-token-counter": {
"url": "https://api.lazy-mac.com/ai-token-counter/mcp"
}
}
}{
"mcpServers": {
"ai-token-counter": {
"type": "http",
"url": "https://api.lazy-mac.com/ai-token-counter/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"ai-token-counter": {
"url": "https://api.lazy-mac.com/ai-token-counter/mcp"
}
}
}{
"mcpServers": {
"ai-token-counter": {
"httpUrl": "https://api.lazy-mac.com/ai-token-counter/mcp"
}
}
}[mcp_servers.ai-token-counter]
url = "https://api.lazy-mac.com/ai-token-counter/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
ai-token-counter · L’Atlas · Tested on
[ai-token-counter — L’Atlas](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.