L'Atlas / MCP servers / ai-token-counter
MCP server

ai-token-counter

io.github.lazymac2x/ai-token-counter

MCP server OK 4 tools

Get a review See pricing

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

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.lazymac2x/ai-token-counter.svg?lang=en)](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)
HTML
<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

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.lazymac2x/ai-token-counter.svg?lang=en)](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)
HTML
<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

DateResultResponseTools
28 Nov 2026, 09:56OK373 ms4

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).

ParameterTypeRequiredDescription
modelstringnoModel ID, e.g. gpt-4o, claude-sonnet-4. Defaults to gpt-4o.
textstringnoPlain text to count tokens for.
messagesarray<object>noChat 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.

ParameterTypeRequiredDescription
modelstringyesModel ID, e.g. gpt-4o, claude-opus-4, gemini-2.0-flash.
input_tokensintegernoNumber of input tokens.
output_tokensintegernoNumber of output tokens.
textstringnoText to tokenize for input (if input_tokens not given).
requests_per_daynumbernoIf given, adds daily/monthly/yearly cost projection.

get_model_pricing

Get input/output pricing per 1M tokens for a specific AI model.

ParameterTypeRequiredDescription
modelstringyesModel 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.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://api.lazy-mac.com/ai-token-counter/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http ai-token-counter https://api.lazy-mac.com/ai-token-counter/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : ai-token-counter ; URL : https://api.lazy-mac.com/ai-token-counter/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.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
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "ai-token-counter": {
      "type": "http",
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "ai-token-counter": {
      "url": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "ai-token-counter": {
      "httpUrl": "https://api.lazy-mac.com/ai-token-counter/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[ai-token-counter — L’Atlas](https://latlas.dev/en/mcp/io.github.lazymac2x/ai-token-counter)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.