tokencost-mcp-server MCP Server

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

Local serverstdioMIT

What is the tokencost-mcp-server MCP Server?

tokencost-mcp-server is an MCP project maintained in the ankit-aglawe/tokencost-mcp-server repository. The maintainer describes its purpose as “An MCP (Model Context Protocol) server that provides real-time LLM token pricing data for 60+ AI models across 15 providers”. Read the project documentation for the complete scope.

Installation

The documented npm package is tokencost-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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 MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.