Skip to main content
Glama
README.md
# ZeroAi MCP

在 Cursor、Claude、Cline 里查询 [ZeroAi](https://zeroai.si) 商城的 AI 会员与 CDK 商品、库存和购买链接。只读,不下单,也不付款。

质保订阅,不保封号。

ZeroAi 是独立的第三方商店。本服务只查询公开商品信息,并给出 `https://zeroai.si/product/{id}`,由你自己在网站完成购买。价格字段来自商店接口,本说明不标价。目录只包含会员与 CDK 商品。

仓库:https://github.com/shaodianzuo-code/zeroai-mcp

## English

Read-only MCP for the [ZeroAi](https://zeroai.si) storefront. Browse AI membership and CDK products, check stock, and get a purchase link. It does not place orders or take payment.

质保订阅,不保封号。 Subscription warranty applies; account bans are not covered.

ZeroAi is an independent third-party store. The server only reads the public catalog and returns `https://zeroai.si/product/{id}` so you can buy on the site yourself. Price fields are passed through from the store API. This document does not quote them. The catalog is limited to membership and CDK products.

Repository: https://github.com/shaodianzuo-code/zeroai-mcp

## 工具 / Tools

| 工具 | 作用 |
| --- | --- |
| `list_categories` | 列出可浏览的商品分类。无参数。 |
| `search_products` | 按关键词、分类、排序分页搜索会员与 CDK 商品。 |
| `get_product` | 按正整数商品 ID 读取说明、规格、库存和购买链接。不返回评价。 |
| `check_stock` | 按商品 ID 查询库存,可再指定 `sku_id`。库存待确认时会直接写明。 |
| `get_purchase_guide` | 说明如何在网站自行下单。可选 `product_id`,用于附上该商品链接。 |
| `get_announcement` | 读取站点公告的公开文本。 |

搜索结果里的库存来自商品列表。核对某一件时用 `check_stock`,它读取商品详情。

Search results use the list endpoint's stock. `check_stock` reads the product detail.

`search_products` 参数:

| 字段 | 必填 | 说明 |
| --- | --- | --- |
| `keyword` | 否 | 关键词,例如 `ChatGPT Plus`、`Grok` |
| `category_id` | 否 | 分类 ID,来自 `list_categories` |
| `sort` | 否 | `default`、`newest`、`sales`、`price_asc`、`price_desc` |
| `page` | 否 | 页码,从 1 开始,默认 1 |
| `page_size` | 否 | 默认 10,最大 20 |

商品 ID 必须是数字。购买链接只用 `https://zeroai.si/product/{id}`。

成功结果都带有 `disclaimer`:质保订阅,不保封号。

## 安装 / Install

需要 Node.js 20 或更新版本。不需要 API Key。`dist/` 已提交,从 GitHub 安装时不用再构建。

Node.js 20 or newer. No API key. `dist/` is committed, so a GitHub install does not need a build step.

可选环境变量:

| 变量 | 默认值 |
| --- | --- |
| `ZEROAI_API_BASE` | `https://zeroai.si/api/v1/storefront` |
| `ZEROAI_SITE_ORIGIN` | `https://zeroai.si` |

请求使用 `User-Agent: ZeroAi-MCP/0.1.0 (+https://github.com/shaodianzuo-code/zeroai-mcp)`,超时 15 秒,失败再试一次,并把成功响应缓存约 45 秒。

### 从 GitHub 运行 / Run from GitHub

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "npx",
      "args": ["-y", "github:shaodianzuo-code/zeroai-mcp"]
    }
  }
}
```

### 本地 node / Local node

```bash
git clone https://github.com/shaodianzuo-code/zeroai-mcp.git
cd zeroai-mcp
npm install --omit=dev
```

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/zeroai-mcp/dist/index.js"]
    }
  }
}
```

把 `/ABSOLUTE/PATH` 换成你机器上的实际路径。

### Claude Desktop

配置文件:

- macOS:`~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows:`%APPDATA%\Claude\claude_desktop_config.json`
- Linux:`~/.config/Claude/claude_desktop_config.json`

从 GitHub 运行:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "npx",
      "args": ["-y", "github:shaodianzuo-code/zeroai-mcp"]
    }
  }
}
```

本地 node:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/zeroai-mcp/dist/index.js"]
    }
  }
}
```

### Cursor

项目或用户配置:`.cursor/mcp.json`,或 Cursor Settings → MCP。

从 GitHub 运行:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "npx",
      "args": ["-y", "github:shaodianzuo-code/zeroai-mcp"]
    }
  }
}
```

本地 node:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/zeroai-mcp/dist/index.js"]
    }
  }
}
```

### Cline

VS Code 里的 Cline MCP 设置,通常写入 `cline_mcp_settings.json`。

从 GitHub 运行:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "npx",
      "args": ["-y", "github:shaodianzuo-code/zeroai-mcp"]
    }
  }
}
```

本地 node:

```json
{
  "mcpServers": {
    "zeroai": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/zeroai-mcp/dist/index.js"]
    }
  }
}
```

## 远程 HTTP / Remote HTTP

同一套 6 个只读工具也可以走 Streamable HTTP,地址是 `https://zeroai-mcp.zeroai-store.workers.dev/mcp`。不需要 API Key。

The same six read-only tools are available over Streamable HTTP at `https://zeroai-mcp.zeroai-store.workers.dev/mcp`. No API key.

### Cursor

```json
{
  "mcpServers": {
    "zeroai": {
      "url": "https://zeroai-mcp.zeroai-store.workers.dev/mcp"
    }
  }
}
```

### Claude

```json
{
  "mcpServers": {
    "zeroai": {
      "url": "https://zeroai-mcp.zeroai-store.workers.dev/mcp"
    }
  }
}
```

部署时:

1. 准备 Cloudflare 账号,以及带 Workers Scripts 编辑权限的 API 令牌。也可以用交互登录代替令牌。
2. 在仓库根目录执行:

```bash
npx wrangler login
# 或者导出 CLOUDFLARE_API_TOKEN 和 CLOUDFLARE_ACCOUNT_ID
npx wrangler deploy
```

3. 部署完成后,客户端地址是 `https://zeroai-mcp.<你的子域>.workers.dev/mcp`。当前地址是 `https://zeroai-mcp.zeroai-store.workers.dev/mcp`。
4. 不需要 API Key。只有在你想改默认商店地址时,才在 `wrangler.toml` 里取消 `ZEROAI_API_BASE` 和 `ZEROAI_SITE_ORIGIN` 的注释。
5. `server.json` 的 `remotes` 已经写上这个地址。

部署前可以先检查打包,这一步不需要令牌:

```bash
npx wrangler deploy --dry-run --outdir dist-worker
```

## 示例提示 / Example prompts

- 列出 ZeroAi 的商品分类
- 搜索 Grok 的 CDK
- 查看商品 27 的说明和购买链接
- 商品 27 的库存是什么状态
- 我想自己在网站上买商品 27,步骤是什么
- ZeroAi 现在的公告是什么

English:

- List the ZeroAi categories
- Search CDK products for Grok
- Show product 27 and its purchase link
- What is the stock status for product 27
- How do I buy product 27 on the website myself
- What is the current ZeroAi announcement

## 开发 / Develop

```bash
npm install
npm test
npm run smoke
```

`npm test` 覆盖过滤、库存文案和公告清理。`npm run smoke` 会启动 stdio 服务,并对线上商店调用每个工具。

根目录的 `Dockerfile` 用已提交的 `dist/` 启动 stdio 服务,供收录站做自动检查。

The root `Dockerfile` starts the committed `dist/` over stdio for directory health checks.

## 收录 / Registry

`server.json` 按官方 MCP Registry 的 `2025-12-11` schema 编写。

- 名称:`io.github.shaodianzuo-code/zeroai`
- npm 包名:`zeroai-mcp`(`package.json` 的 `mcpName` 与 `server.json` 的 `name` 一致)
- 仓库:https://github.com/shaodianzuo-code/zeroai-mcp
- 传输:stdio,以及 Streamable HTTP `https://zeroai-mcp.zeroai-store.workers.dev/mcp`。

建议的 GitHub Topics:`e-commerce`、`catalog`、`storefront`、`chatgpt`、`claude`、`grok`。

## 许可 / License

MIT。见 [LICENSE](LICENSE)。

TDQS

A3.8/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a distinct primary target (categories, search, product detail, stock, guide, announcements), but check_stock overlaps with get_product since the latter also returns stock, and list_categories vs search_products both serve browsing. Descriptions do clarify the boundaries (e.g. stock is per-SKU and may not match real-time availability), so misselection is unlikely but possible.

Naming Consistency5/5

All six names follow a clean verb_noun snake_case pattern: check_stock, list_categories, search_products, get_product, get_purchase_guide, get_announcement. The only variation is check_ vs get_, which is a deliberate and readable semantic distinction rather than an inconsistency.

Tool Count5/5

Six read-only tools is well-scoped for a storefront browsing/inspection server, with no redundant or filler entries. Each tool maps to a distinct aspect of the catalog surface.

Completeness4/5

The surface covers the full read-only browse lifecycle: categories, search, product detail, stock check, purchase guidance, and announcements. Purchase, payment, and reviews are explicitly excluded by design, so the only real gap is SKU-level enumeration for a product beyond the optional SKU parameter on check_stock.