Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
Install
Run one of the commands below, then add the client config underneath.
https://apished.com/mcp/v1/tokensClient configuration
Paste into Claude Desktop, Cursor (mcp.json), VS Code or any MCP client, then restart the client.
{
"mcpServers": {
"token-counter": {
"url": "https://apished.com/mcp/v1/tokens"
}
}
}About this server
Token Counter is listed in the AI & Machine Learning category of the MCPNav directory. It is distributed as Streamable HTTP and can be loaded by any client that speaks the Model Context Protocol.
Typical uses include giving your assistant scoped access to the corresponding service so it can answer questions and take actions with real data instead of guessing. Always review what a server can access before you enable it — see our MCP security guide.
Frequently asked questions
What is the Token Counter MCP server?+
Token Counter is an MCP server by apished. Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
How do I install Token Counter?+
Install it with: https://apished.com/mcp/v1/tokens. Then add the JSON config to your client's MCP settings and restart the client.
Is Token Counter free to use?+
The MCP server itself is free to install. Any third-party API it calls (such as a search or maps API) may require its own key and billing.
Which clients support Token Counter?+
Any MCP-compatible client can use it, including Claude Desktop, Cursor, VS Code, Windsurf and custom agents.