Skip to main content
Glama

Server Details

Cloudflare Workers MCP server: ai-token-counter

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2024-11-05
URL
Repository
lazymac2x/ai-token-counter-api
GitHub Stars
0
ChatGPT
–
Claude
–

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a distinct purpose: counting tokens, estimating cost, retrieving pricing, and listing models. No overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: count_tokens, estimate_cost, get_model_pricing, list_models. Clear and predictable.

Tool Count5/5

Four tools are well-scoped for a token counting and cost estimation server, covering the core needs without bloat.

Completeness4/5

The surface supports counting, cost estimation, pricing lookup, and model discovery. A minor gap is lack of batch token counting across multiple files, but core workflows are covered.

Available Tools

4 tools
count_tokensBInspect

Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).

Inputs: text, model, messages.

estimate_costAInspect

Estimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.

Inputs: model (required), text, input_tokens, output_tokens, +1 more.

get_model_pricingBInspect

Get input/output pricing per 1M tokens for a specific AI model.

Inputs: model (required).

list_modelsAInspect

List all supported AI models with their pricing and context windows.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.