MCP Servers / development / Tiktoken MCP

Tiktoken MCP

JSON →
none1development

Count tokens using OpenAI's tiktoken library.

Install
How to run this server
[ { "cmd": "npx tiktoken-mcp", "imports": [] } ]
server path: tiktoken-mcp
Tools
What this server exposes
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
Configuration
Environment & auth
authnone
Resources
Tiktoken MCP — MCP Server · libregistry