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