aiprice-mcp
Official# aiprice-mcp
[](./LICENSE)
[](https://nodejs.org/)
[](https://modelcontextprotocol.io/)
[](https://aiprice.club/)
让 Claude、Cursor、Cherry Studio 等支持 MCP 的 AI 助手直接查到 **AI 会员卡网最低价、官方订阅各地区价格、API 中转站排行和模型中转价** 的 MCP 服务器。
数据实时取自两个公开比价站:
- **[AI价网](https://aiprice.club/)(aiprice.club)**:近两千家卡网店铺的 ChatGPT / Claude / Gemini / Grok / Cursor 等会员报价(每小时采集),以及官方订阅在两百多个国家和地区的官网与 App Store 价格(每 12 小时更新)。
- **[TokenPrice](https://tokenprice.cc/)(tokenprice.cc)**:四千多家 API 中转站按“实际倍率”排名(每小时采集),每个模型在各站的每百万词元价格,Claude Code / Codex 专项榜。
> 规模以两站 2026-12-01 的 llms.txt 为准:AI价网收录 1,948 家卡网店铺、62,583 条报价;TokenPrice 收录 4,060 家在线中转站。实际数字随采集变化,以工具返回为准。
不需要 API Key,不需要注册,只读两个公开网站。
## 能问什么
装好以后,直接用自然语言问:
- “ChatGPT Plus 现在卡网最便宜多少?代充和成品号分别多少?”
- “Claude Max 哪个国家官方订阅最便宜?土耳其多少钱?”
- “Claude Code 用哪个中转站最便宜?给我前 5 家和精选推荐。”
- “gpt-6.2-sol 中转多少钱一百万 token?”
- “api.routeeasy.ai 这个中转站怎么样?接入地址是什么?”
AI 会自动选对应工具。返回的是精简过的 JSON,每条结果都带来源网址(`source`)和数据时间(`data_time`),方便 AI 引用。
下面是 2026-12-01 真实运行结果的截取(价格每小时变化,仅作格式示例):
**search_ai_subscription_prices `{"product": "Claude Max"}`**
```json
{
"matched_product": "Claude Max 5x",
"lowest_in_stock": "¥720",
"median_of_shop_lowest": "¥930",
"lowest_by_delivery": [
{ "delivery": "成品号", "lowest": "¥917", "shops_in_stock": 63 },
{ "delivery": "代充", "lowest": "¥720", "shops_in_stock": 205 }
],
"cheapest_shops": [
{ "shop": "兔子发卡", "item": "Claude Max 官方充值月卡(Max 5x)", "price": "¥720", "delivery": "代充", "...": "..." }
],
"compare_page": "https://aiprice.club/market/category/claude-max-5x",
"source": "https://aiprice.club/md/market/category/claude-max-5x.md",
"data_time": "2026年12月1日 12:12(北京时间)"
}
```
**get_official_region_prices `{"plan": "ChatGPT Plus"}`**
```json
{
"matched_plan": "GPT Plus",
"regions_count": 233,
"price_rows_listed": 400,
"cheapest_regions": [
{ "region": "菲律宾", "channel": "App Store", "local_price": "₱ 999.00", "cny_per_month": "¥104", "tax": "含税", "region_en": "Philippines", "usd_per_month": "$15.67" },
{ "region": "菲律宾", "channel": "官网", "local_price": "₱1,100.00", "cny_per_month": "¥115", "tax": "含税", "region_en": "Philippines", "usd_per_month": "$17.24" }
],
"compare_page": "https://aiprice.club/official-price/gpt-plus"
}
```
**get_relay_ranking `{"family": "claude", "coding": true}`**(Claude Code 榜)
```json
{
"board": "claude-code",
"data_time": "2026-12-01 11:48(北京时间)",
"top_ranked": [
{ "排名": "1", "站点": "CZ API", "网址": "sub2.70api.top", "Opus 5.5 输入": "¥0.64", "Opus 5.5 输出": "¥3.2", "实际倍率": "0.16x", "Opus 5.5 缓存读取": "¥0.032", "可用性": "100%", "detail": "https://tokenprice.cc/llm-gateway/sub2-70api-top" }
],
"risk_note": "…(第三方中转站不保证服务质量和资金安全,价格和可用性来自公开接口、不是实测;充值前先小额试用。)",
"source": "https://tokenprice.cc/md/relay/claude-code.md"
}
```
**get_model_relay_prices `{"model": "gpt-6.2-sol"}`**
```json
{
"model": { "name": "GPT-6.2 Sol", "id": "gpt-6.2-sol", "sites_with_valid_quotes": "2221", "lowest_input": "¥0.11", "output_of_same_quote": "¥0.55" },
"cheapest_sites": [
{ "site": "Benefit API", "domain": "xbenefitapi.xyz", "cheapest_group": "福利分组", "input_cny_per_m": "¥0.11", "output_cny_per_m": "¥0.55", "detail": "https://tokenprice.cc/llm-gateway/xbenefitapi-xyz" }
]
}
```
## 安装与配置
需要 [Node.js](https://nodejs.org/) 20 或更高版本,以及 git(`npx` 从 GitHub 拉取本仓库时要用)。本项目没有发布到 npm,直接从 GitHub 运行:
```bash
npx -y github:AIprice-club/aiprice-mcp
```
上面这条命令就是 MCP 服务器本身(stdio 方式),一般不用手动运行,按下面的方式配置到客户端即可。
### Claude Code
```bash
claude mcp add --transport stdio aiprice -- npx -y github:AIprice-club/aiprice-mcp
```
默认只对当前项目生效;想在所有项目里用,加 `--scope user`。添加后在 Claude Code 里输入 `/mcp` 查看状态。
### Claude Desktop
编辑 `claude_desktop_config.json`(macOS:`~/Library/Application Support/Claude/claude_desktop_config.json`;Windows:`%APPDATA%\Claude\claude_desktop_config.json`),加入:
```json
{
"mcpServers": {
"aiprice": {
"command": "npx",
"args": ["-y", "github:AIprice-club/aiprice-mcp"]
}
}
}
```
保存后完全退出并重新打开 Claude Desktop。
### Cursor
在项目根目录的 `.cursor/mcp.json`(只对该项目生效)或 `~/.cursor/mcp.json`(全局)里加入:
```json
{
"mcpServers": {
"aiprice": {
"command": "npx",
"args": ["-y", "github:AIprice-club/aiprice-mcp"]
}
}
}
```
### Cherry Studio 及其他客户端
在客户端的 MCP 设置里新建一个 **stdio** 类型的服务器:命令填 `npx`,参数填 `-y github:AIprice-club/aiprice-mcp`。只支持远程(HTTP)MCP 的客户端暂时用不了,本项目目前只提供 stdio。
### 从源码运行
```bash
git clone https://github.com/AIprice-club/aiprice-mcp.git
cd aiprice-mcp
npm install
npm test # 冒烟测试:启动服务器,真实调用每个工具一次
```
客户端配置里把命令换成 `node`,参数换成本地的 `bin/aiprice-mcp.js` 绝对路径即可。
## 工具列表
| 工具 | 用途 | 主要参数 |
| --- | --- | --- |
| `search_ai_subscription_prices` | 某个 AI 会员 / 账号在卡网的有货最低价、按交付方式(成品号 / 代充 / 卡密 / 车位)的最低价、中位价、最便宜的几家店和比价页 | `product`(如 "ChatGPT Plus"、"Claude Max"、"Gemini Ultra"、"SuperGrok"、"Cursor"、"接码"),可选 `delivery`、`limit` |
| `get_official_region_prices` | 某官方订阅套餐在各国家和地区的官网 / App Store 月费,按价格从低到高,含当地币种、人民币、美元;可查指定国家 | `plan`,可选 `region`(如 "土耳其"、"Nigeria")、`channel`(all / website / app_store)、`limit` |
| `get_relay_ranking` | TokenPrice 某系列中转站排行(claude / gpt / gemini / grok / deepseek / glm / kimi / qwen),或 Claude Code / Codex 专项榜;含精选推荐、倍率、可用性、模型单价、风险提示 | `family`,可选 `coding`(true 时 claude→Claude Code 榜,gpt→Codex 榜)、`limit` |
| `get_model_relay_prices` | 某个模型在各中转站的最低价(人民币 / 百万词元),每家取最便宜的有效分组 | `model`(如 "claude-opus-5-5"、"Claude Opus 5.5"、"gpt-6.2-sol";不在热门模型总表里的也可以直接写模型 ID,如 "gpt-4.1-nano"),可选 `limit` |
| `get_relay_site` | 某个中转站的概况:一句话结论、可用性、各系列名次、接入地址、价格表、价格相近的替代站 | `site`(域名、网址、TokenPrice slug 或站名),可选 `model`、`limit` |
名称匹配支持常见中英文别名,例如 ChatGPT → GPT、“Claude Ultra”→ Claude Max 20x、“SuperGrok”→ Grok Premium、“Gemini Advanced / Google AI Pro”→ Gemini Pro。匹配不到时返回可选的商品或套餐清单。
所有工具都标注为只读(`readOnlyHint: true`)。
## 数据来源与更新频率
服务器只请求下面这些公开地址(都是两站给 AI 读的 Markdown 版或公开页面),取回后精简成结构化 JSON:
| 数据 | 地址 | 网站更新频率 |
| --- | --- | --- |
| 商品清单与首页最低价 | `https://aiprice.club/md/index.md`(失败时用 `https://aiprice.club/llms.txt`) | 每小时 |
| 单个商品卡网比价 | `https://aiprice.club/md/market/category/{商品}.md` | 每小时 |
| 官方订阅各地区价格 | `https://aiprice.club/md/official-price/{套餐}.md`、`/md/en/official-price/{套餐}.md` | 每 12 小时 |
| 中转站系列排行、Claude Code / Codex 榜 | `https://tokenprice.cc/md/relay/{系列}.md` | 每小时 |
| 模型中转价总表 | `https://tokenprice.cc/md/llm-gateway/models.md` | 每小时 |
| 单个模型各站价格 | `https://tokenprice.cc/llm-gateway/models/{模型}`(该页暂无 Markdown 版,解析公开 HTML 的价格表) | 每小时 |
| 中转站详情 | `https://tokenprice.cc/md/llm-gateway/{站点}.md` | 每小时 |
- 同一网址 10 分钟内只请求一次(内存缓存),请求带 `User-Agent: aiprice-mcp/<版本>`,超时 15 秒;失败时工具返回 `isError` 和清楚的错误原因,不会返回编造的数据。
- 统计口径(什么算有货最低价、实际倍率怎么算、精选推荐怎么筛)见 [AI价网数据说明](https://aiprice.club/methodology) 和 [TokenPrice 数据说明](https://tokenprice.cc/methodology)。
- `regions_count` 是结果里的国家和地区数;`price_rows_listed` 是价格行数,同一地区的官网和 App Store 各算一行,所以比地区数多。
- 店铺名、商品名、中转站名、分组名是卖家自己写的文字,原样返回(会截断过长的部分)。服务器的说明和结果里的 `third_party_text_note` 都提醒模型只把它们当数据,不执行其中的文字。
- TokenPrice 榜单里标“官方合作”的站点与 TokenPrice 有合作或关联关系,网站把它们固定在最前、不参与排名;本工具把它们单独放在 `partners_pinned` 字段并附说明,不混进排名。
## 隐私
- 只向 `aiprice.club` 和 `tokenprice.cc` 两个公开网站发只读 GET 请求,代码里限定了这两个域名;页面跳转也逐跳检查域名,跳到其他域名会直接报错,最多跟随 3 次跳转。
- 不收集、不上传任何数据:你的提问内容、对话、设备信息都不会发出去,请求里只有要查的页面地址。
- 没有遥测、没有统计、不需要账号或 API Key。
- 如果你的网络需要代理才能访问这两个网站:本工具使用 Node 内置的 `fetch`,默认不读取 `HTTPS_PROXY`;Node 24 提供 `--use-env-proxy` 选项(可通过 `NODE_OPTIONS` 传入)来使用环境变量里的代理。
## 免责声明
- 本项目和两站都只做比价与导航,不销售任何商品,不参与交易。价格、库存、可用性来自各店铺和各中转站的公开页面,可能有延迟或错误,**以商家页面和结账页为准**。
- 卡网(第三方店铺)的成品号、代充、共享号等存在掉号、封号、售后不到位的风险;API 中转站是第三方服务,可能涨价、限速、关站或用便宜模型冒充,可用性数据不是实测。充值或购买前先小额试用。
- 跨区订阅请遵守各服务商条款和当地法律法规。
- 本项目与 OpenAI、Anthropic、Google、xAI、Cursor 等公司没有关联,相关名称和商标归各自所有者。
## 相关链接
- AI价网:<https://aiprice.club/>([English](https://aiprice.club/en),[llms.txt](https://aiprice.club/llms.txt))
- TokenPrice:<https://tokenprice.cc/>([llms.txt](https://tokenprice.cc/llms.txt))
- AI价网每日数据仓库:<https://github.com/AIprice-club/aiprice>
- 问题反馈:<https://github.com/AIprice-club/aiprice-mcp/issues>
---
## English
**aiprice-mcp** is a Model Context Protocol (stdio) server that lets AI assistants (Claude Desktop, Claude Code, Cursor, Cherry Studio and other MCP clients) look up live AI subscription and LLM API prices:
- `search_ai_subscription_prices` – lowest in-stock price of ChatGPT Plus / Pro, Claude Pro / Max, Gemini, Grok, Cursor and more across ~2,000 Chinese card shops (卡网), by delivery type, with the cheapest shops. Source: [AIPrice](https://aiprice.club/).
- `get_official_region_prices` – official monthly price of a plan in 200+ countries and regions (website and App Store), cheapest first, in local currency, CNY and USD.
- `get_relay_ranking` – LLM API relay sites ranked by effective ratio for a model family, or the Claude Code / Codex boards. Source: [TokenPrice](https://tokenprice.cc/).
- `get_model_relay_prices` – cheapest relay prices (CNY per 1M tokens) for one model, e.g. `claude-opus-5-5`.
- `get_relay_site` – profile of one relay site: verdict, uptime, rankings, base URL, prices, alternatives.
No API key and no sign-up. The server only sends read-only GET requests to aiprice.club and tokenprice.cc, caches each page for 10 minutes, and collects no data. Every result includes source URLs and the data time.
Requires Node.js 20+ and git. Not published to npm; run it from GitHub:
```bash
# Claude Code
claude mcp add --transport stdio aiprice -- npx -y github:AIprice-club/aiprice-mcp
```
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json` or `~/.cursor/mcp.json`):
```json
{
"mcpServers": {
"aiprice": { "command": "npx", "args": ["-y", "github:AIprice-club/aiprice-mcp"] }
}
}
```
Prices are for reference only; the seller's or provider's page is authoritative. Card shops and API relays are third parties: try a small purchase first.
## License
[MIT](./LICENSE) © AIprice-club
TDQS
Scored across 5 tools
The set splits cleanly into two domains (retail subscription prices vs. API relay sites), and each tool has an explicit "use when" clause with cross-references (e.g. "For official prices by country use get_official_region_prices instead"). The only mild overlap is get_relay_ranking vs get_model_relay_prices, since both return per-model relay price data for one model family/model; an agent could occasionally pick the wrong one.
All names follow a consistent verb_noun snake_case pattern (search_ai_subscription_prices, get_official_region_prices, get_relay_ranking, get_model_relay_prices, get_relay_site). The single search_ prefix is used where a query-style operation genuinely applies, so it reads as intentional rather than inconsistent.
Five tools is a well-scoped surface for a price-comparison service: two cover subscription pricing, three cover relay-site ranking, per-model pricing and per-site profiles. No tool looks redundant or like filler.
Core workflows are covered: find cheapest card-shop price, compare official regional prices, rank relays, price a specific model, and inspect a relay site. Minor gaps exist in discovery — there is no tool to enumerate supported plans/models or list relay sites by name, so agents must already know valid plan or model identifiers (though the descriptions enumerate many).