Tiktoken MCP
JSON →Count tokens using OpenAI's tiktoken library.
Install
npx tiktoken-mcp Tools · 4
- count_tokens Count the number of tokens in a given text using a specified encoding
- encode_text Encode text into token IDs using a specified encoding
- decode_tokens Decode token IDs back into text using a specified encoding
- list_encodings List all available tokenizer encodings
Links
★ 1 GitHub stars