Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Counts tokens under an OpenAI-compatible (tiktoken) encoding. Provide exactly one of model (e.g. "gpt-4o") or encoding ("o200k_base" or "cl100k_base"). No Claude/Anthropic tokenizer.
e.g. gpt-4o; exactly one of model/encoding
o200k_base or cl100k_base; exactly one of model/encoding
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Counts tokens under an OpenAI-compatible (tiktoken) encoding. Provide exactly one of model (e.g. "gpt-4o") or encoding ("o200k_base" or "cl100k_base"). No Claude/Anthropic tokenizer.
| Argument | Type | Description |
|---|---|---|
| text* | string | |
| model | string | e.g. gpt-4o; exactly one of model/encoding |
| encoding | string | o200k_base or cl100k_base; exactly one of model/encoding |
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string"
},
"model": {
"type": "string",
"description": "e.g. gpt-4o; exactly one of model/encoding"
},
"encoding": {
"type": "string",
"description": "o200k_base or cl100k_base; exactly one of model/encoding"
}
},
"additionalProperties": false
}