MCP 서버

Token Counter

com.apished/token-counter
개발자 도구 공개 · 연결 가능 MCP 2025-11-25

이 MCP로 할 수 있는 일

Counts text tokens using OpenAI-compatible model or encoding tokenizers.

tokens_count
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.
입력 스키마
{'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}
출력 스키마
{'type': 'object', 'required': ['tokens'], 'properties': {'tokens': {'type': 'integer'}, 'encoding': {'type': 'string'}}, 'additionalProperties': False}
추가됨
tokens_count
2026년 9월 17일 12:33 PM