作为 MCP 服务接入你的 Agent
本站在 /api/mcp 上实现了 JSON-RPC 2.0,
支持 initialize / tools/list / tools/call 三个方法,提供
list_models、compare_models、find_cheapest、find_best_value、get_benchmarks 五个工具。
任何支持 HTTP MCP 的客户端都可直连。
mcp.json 配置片段
{
"mcpServers": {
"aiprice": {
"url": "https://aiprice.store/api/mcp",
"transport": "http"
}
}
}
直接调一次 tools/call
curl -X POST "https://aiprice.store/api/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"find_cheapest",
"arguments":{"input_tokens_millions":20,"output_tokens_millions":8,
"min_context":200000,"top":3}
}}'
工具参数:
list_models(vendor / cn_only / tier / sort / limit)、
compare_models(input_tokens_millions / output_tokens_millions / cache_hit_rate / cn_only)、
find_cheapest(用量 + monthly_budget_usd / min_context / cn_only / top)、
find_best_value(pareto_only / min_intelligence / cn_only / limit)、
get_benchmarks(model_id / include_tasks / sort)。完整 schema 见
/api/mcp。