ai-api-cost-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AI_API_COST_MCP_OFFLINE | No | Set to 1 to skip the request to the public rates file at https://aisaaswithmustafa.com/tools/ai-api-pricing.json and use only the bundled rates. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modelsA | List the OpenAI, Anthropic Claude and Google Gemini models this server knows, with current standard rates in USD per 1 million input, cached input and output tokens, promotional end dates and official pricing sources. |
| estimate_costA | Estimate the monthly AI API bill for one model and a SaaS workload: token costs (uncached input, cached input, output), cost per request, total cost with other variable and fixed costs, revenue, gross profit, gross margin, break-even price per user and break-even users. Start from a use_case preset and override any number. |
| compare_modelsA | Run the same SaaS workload against every known OpenAI, Claude and Gemini model (or one provider) and rank them by monthly AI API cost, with cost per request, total monthly cost and gross margin. Token cost only: it does not judge output quality or latency. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool targets a clearly distinct operation: list_models is a read-only catalog lookup, estimate_cost computes one model against one workload, and compare_models iterates all models to rank costs. Descriptions explicitly delimit scope (compare_models even notes it is token-cost only), so an agent can select correctly without confusion.
All three names follow a strict snake_case verb_noun pattern with verbs whose semantics match the operation (list for enumeration, estimate for computation, compare for ranking). No style mixing or vague verbs like process/run.
Three tools is on the lean side but each earns its place in a narrow pricing/estimation domain, with no redundancy. A small addition such as fetching a single model's details or refreshing rates would round it out, but nothing is superfluous.
The surface covers the core lifecycle for this domain: discover models with rates, price a single-model workload, and compare across providers. Minor gaps exist — no tool to update or add custom rates, no per-model detail lookup, and no output-quality/latency dimension — but agents can work around these by overriding cost inputs in estimate_cost.