About ai-token-counter
Cloudflare Workers MCP server: ai-token-counter
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api.lazy-mac.com/ai-token-counter/mcpclaude mcp add --transport http lazymac2x-ai-token-counter https://api.lazy-mac.com/ai-token-counter/mcp{"mcpServers":{"lazymac2x-ai-token-counter":{"type":"http","url":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}Open in Cursor{"servers":{"lazymac2x-ai-token-counter":{"type":"http","url":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}Open in VS Code{"mcpServers":{"lazymac2x-ai-token-counter":{"type":"http","url":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}{"mcpServers":{"lazymac2x-ai-token-counter":{"serverUrl":"https://api.lazy-mac.com/ai-token-counter/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
4| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | No | Plain text to count tokens for. |
| model | string | No | Model ID, e.g. gpt-4o, claude-sonnet-4. Defaults to gpt-4o. |
| messages | array | No | Chat messages array in OpenAI/Anthropic format. |
Details
From the project READMEai-token-counter-api
Cloudflare Workers MCP server: ai-token-counter. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/ai-token-counter
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.