INDIVIDUAL MCP TOOL
estimate_cost
估算一段文本或指定 token 数在某个大模型上的**输入侧**调用成本,以人民币 ¥ 计价。text_or_tokens 支持两种模式:传自然语言文本时自动估算 token 数(中文按字符、英文按词分别计),传纯数字字符串时直接作为已知 token 数使用。返回:所用估算方法、token 数、按原价计的输入成本;若该模型提供缓存输入价,另给出缓存命中成本、相对原价的节省百分比与倍数差价;末尾附该模型的输入 / 输出 / 缓存输入单价(每百万 tokens)。⚠️ 本工具只计算输入成本,不含输出 token 费用——要估算完整往返成本,需另取输出单价自行相加。
LIVE ENDPOINT
https://llmabacus.com/api/mcp
Connect to this endpoint to inspect the live schema for estimate_cost and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Inferred read-only · medium confidence · heuristic, not a guarantee.
- A tool name, description or schema mentions credentials.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.llmabacus]
url = "https://llmabacus.com/api/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"llmabacus": {
"type": "http",
"url": "https://llmabacus.com/api/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: llmabacus
Remote MCP URL: https://llmabacus.com/api/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"llmabacus": {
"url": "https://llmabacus.com/api/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"llmabacus": {
"type": "http",
"url": "https://llmabacus.com/api/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "llmabacus",
"transport": "streamable-http",
"url": "https://llmabacus.com/api/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
query_model_price— 查询指定大模型(如 GPT-5, Claude, DeepSeek)的最新 API 输入、输出和缓存输入单价(单位:每百万 tokens)。