Tokencost MCP Server

MCP server for LLM token pricing data — query, compare, and estimate costs for 60+ AI models from OpenAI, Anthropic, Google, Meta, and more

Local serverstdio

What is the Tokencost MCP Server?

MCP server for LLM token pricing data — query, compare, and estimate costs for 60+ AI models from OpenAI, Anthropic, Google, Meta, and more

What the server does

An MCP (Model Context Protocol) server that provides real-time LLM token pricing data for 60+ AI models across 15 providers.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
tokencost_get_model_pricingGet pricing for a specific model
tokencost_compare_modelsSide-by-side pricing comparison
tokencost_estimate_costCalculate cost for given token counts
tokencost_find_cheapestFind cheapest models with filters
tokencost_list_modelsList all available models
tokencost_list_providersList all providers with pricing ranges

How to install the Tokencost MCP Server

{
  "mcpServers": {
    "tokencost": {
      "command": "npx",
      "args": ["-y", "tokencost-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use Tokencost to tokencost get model pricing.”
  • “Use Tokencost to tokencost compare models.”
  • “Use Tokencost to tokencost estimate cost.”

Frequently asked questions

MCP server for LLM token pricing data — query, compare, and estimate costs for 60+ AI models from OpenAI, Anthropic, Google, Meta, and more Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.