TokenTally by Harlo
Count tokens (o200k/cl100k), truncate to a budget, chunk text for RAG and estimate LLM cost.
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).
claude mcp add --transport http tokentally-by-harlo 'https://tokentally.mike-tusa.workers.dev/mcp' --header 'Authorization: <Optional. '\''Bearer <key>'\'' for higher limits. Works without a key.>'
{
"mcpServers": {
"tokentally-by-harlo": {
"type": "http",
"url": "https://tokentally.mike-tusa.workers.dev/mcp",
"headers": {
"Authorization": "<Optional. 'Bearer <key>' for higher limits. Works without a key.>"
}
}
}
}
Frequently asked questions
What is TokenTally by Harlo?
Count tokens (o200k/cl100k), truncate to a budget, chunk text for RAG and estimate LLM cost.
How do I install TokenTally by Harlo?
It runs as a remote server. In Claude Code: claude mcp add --transport http tokentally-by-harlo 'https://tokentally.mike-tusa.workers.dev/mcp' --header 'Authorization: <Optional. '\''Bearer <key>'\'' for higher limits. Works without a key.>'. For other clients, paste the JSON configuration from this page into their MCP settings.
Does TokenTally by Harlo need an API key?
Yes. It expects Authorization, which you set in its configuration.
Who maintains TokenTally by Harlo?
It is published by dev.workers.mike-tusa.tokentally. 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.