Queries LLM pricing and estimates token costs using a daily-verified dataset covering Chinese and global providers.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Llm Prices Cn.
The szp2005/llm-prices-cn MCP server makes structured LLM API pricing available to MCP-compatible agents. The underlying dataset tracks 44 models from providers including OpenAI, Anthropic, Google, DeepSeek, Alibaba, ByteDance, Baidu, Tencent, and MiniMax. Pricing is checked daily and includes both Chinese and global vendors.
Model records contain identifiers, display names, vendor and country information, billing currency, input and output prices per million tokens, optional cached-input prices, context-window limits, maximum output lengths, supported modalities, tags, knowledge cutoffs, and quality scores. Prices are represented in both USD and CNY, with an exchange rate recorded in the dataset.
The project provides two deployment paths. The hosted MCP endpoint at https://www.llmabacus.com/api/mcp/mcp lets agents query pricing remotely and estimate token costs without managing a local dataset. Its documented tools are query_model_price(model) and estimate_cost(text_or_tokens, model).
For local use, the server reads the bundled prices.json file and communicates over stdio. The local tool set includes list_llm_prices(vendor?, currency?) and estimate_cost(model_id, input_tokens, output_tokens, currency?). Because the local server reads its packaged data and does not need network access, it can be used offline after setup.
The repositoryβs sync_prices.py script rebuilds prices.json from the source application configuration. The generated file records the last update date, conversion rate, pricing unit, and model array.
To self-host the szp2005/llm-prices-cn MCP server with Docker, build the repository image and run it interactively so the MCP stdio connection remains available:
A non-Docker setup is also documented. Install the dependencies from requirements.txt, then start the server with python server.py:
No environment variables or API credentials are specified for the local server. To refresh the checked-in snapshot, run python3 sync_prices.py from the repository directory.
The documented MCP operations support these tasks:
The dataset is a pricing reference, not an API gateway or model execution service. The provided material does not describe tools for sending prompts to model providers. Pricing can change, so applications should account for the datasetβs update date and refresh process rather than treating values as permanent.
The dataset is licensed under CC-BY-4.0. Projects that reuse it must provide appropriate attribution and link back to https://llmabacus.com. The documentation does not specify authentication requirements for the hosted endpoint or identify particular MCP desktop clients.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/szp2005-llm-prices-cn)<a href="https://allmcps.com/mcp/szp2005-llm-prices-cn"><img src="https://allmcps.com/api/badge/szp2005-llm-prices-cn?style=directory" alt="Llm Prices Cn on AllMCPs" /></a>