libregistry
Registry
Models
Docker
IAM
MCP
Docs
Sign in with Google
MCP Servers
/
development
/ Tiktoken MCP
Tiktoken MCP
JSON →
none
★ 1
development
Count tokens using OpenAI's tiktoken library.
github ↗
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
auth
none
Resources
github
https://github.com/adbertram/tiktoken-mcp ↗
Tiktoken MCP — MCP Server · libregistry