ai-token-counter

Cloudflare Workers MCP server: ai-token-counter

Community: Submitted by a user or imported; check the owner before granting accessOnlineNo sign-inGlobalFreeRead-only

What it can do

    What data it sees

    Do you need an account

    No: the server works without sign-in

    Cloudflare Workers MCP server: ai-token-counter

    Server tool list (4)

    Raw names from tools/list. Only developers need these.

    count_tokensCount tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).
    estimate_costEstimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.
    get_model_pricingGet input/output pricing per 1M tokens for a specific AI model.
    list_modelsList all supported AI models with their pricing and context windows.