ai-token-counter
io.github.lazymac2x/ai-token-counter
Serveur MCP OK 4 outils
Cloudflare Workers MCP server: ai-token-counter
Fiche technique
- Auteur
- lazymac2x (espace de noms du registre)
- Dépôt
- github.com/lazymac2x/ai-token-counter-api
- Site
- —
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://api.lazy-mac.com/ai-token-counter/mcp Streamable HTTP
- Outils
- 4
- Catégories
- Cloud et infrastructure
- Comparatifs
- Serveurs MCP pour Cloudflare
- Dernière mise à jour
- 16 mai 2026
- Publication
- 16 mai 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 3 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.lazymac2x/ai-token-counter)<a href="https://latlas.dev/mcp/io.github.lazymac2x/ai-token-counter"><img src="https://latlas.dev/badge/statut/mcp/io.github.lazymac2x/ai-token-counter.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.lazymac2x/ai-token-counter)<a href="https://latlas.dev/mcp/io.github.lazymac2x/ai-token-counter"><img src="https://latlas.dev/badge/fiche/io.github.lazymac2x/ai-token-counter.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://api.lazy-mac.com/ai-token-counter/mcp
- Dernier résultat
- OK 28 nov. 2026, 09:56
- Temps de réponse
- 373 ms (initialize + tools/list)
- Version du protocole
- 2024-11-05
- Nom annoncé
- ai-token-counter 2.0.0
- Outils
- 4
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:56 | OK | 373 ms | 4 |
Outils exposés (4, réponse à 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).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| model | string | non | Model ID, e.g. gpt-4o, claude-sonnet-4. Defaults to gpt-4o. |
| text | string | non | Plain text to count tokens for. |
| messages | array<object> | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| model | string | oui | Model ID, e.g. gpt-4o, claude-opus-4, gemini-2.0-flash. |
| input_tokens | integer | non | Number of input tokens. |
| output_tokens | integer | non | Number of output tokens. |
| text | string | non | Text to tokenize for input (if input_tokens not given). |
| requests_per_day | number | non | If given, adds daily/monthly/yearly cost projection. |
get_model_pricing
Get input/output pricing per 1M tokens for a specific AI model.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| model | string | oui | 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.
Aucun paramètre.
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://api.lazy-mac.com/ai-token-counter/mcp. Formats repris de la documentation de chaque client.
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"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
ai-token-counter · L’Atlas · Test du
[ai-token-counter — L’Atlas](https://latlas.dev/mcp/io.github.lazymac2x/ai-token-counter)Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.