Token Counter

Official registry Marketing and sales

Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http token-counter 'https://apished.com/mcp/v1/tokens'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "token-counter": {
            "type": "http",
            "url": "https://apished.com/mcp/v1/tokens"
        }
    }
}

Frequently asked questions

What is Token Counter?

Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.

How do I install Token Counter?

It runs as a remote server. In Claude Code: claude mcp add --transport http token-counter 'https://apished.com/mcp/v1/tokens'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Token Counter need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Who maintains Token Counter?

It is published by com.apished. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.