THE TEA · 开发者平台api.thetea.app
tea.support

AI 原生

The tea API 作为 MCP 服务器.

将 Claude Desktop、Cowork 或任意 MCP 客户端连接至中国茶百科全书——涵盖 450 种茶、72 种语言、冲泡、风土、化学、富集信息及 2,623 条术语表,以八个工具形式开放。

端点 server.py REST 文档

托管版 — 通过 URL 连接 无需安装

将任意支持远程(Streamable HTTP)服务器的 MCP 客户端指向:

https://api.thetea.app/mcp

Add an Authorization: Bearer tt_… header to use a paid key — free works without one (English only).

从 JSON 读取远程服务器的客户端:

{
  "mcpServers": {
    "thetea": {
      "url": "https://api.thetea.app/mcp",
      "headers": { "Authorization": "Bearer tt_your_key" }
    }
  }
}

Stdio-only clients (some Claude Desktop builds) can bridge with mcp-remote:

{
  "mcpServers": {
    "thetea": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.thetea.app/mcp",
               "--header", "Authorization: Bearer tt_your_key"]
    }
  }
}

备选方案 — 本地 Python 服务器

  1. Install the runtime: pip install "mcp[cli]" httpx
  2. 保存 server.py 并将其绝对路径记下。
  3. Add it to claude_desktop_config.json:
{
  "mcpServers": {
    "thetea": {
      "command": "python3",
      "args": ["/absolute/path/to/server.py"],
      "env": { "THETEA_KEY": "tt_your_paid_key" }
    }
  }
}

来自 定价页 解锁 7 种语言(Pro)或全部 72 种(Expert / Lifetime)。

开放工具

其他接入方式

同一套数据也是一个纯 REST API,一款 OpenAPI GPT Actions 规范,以及一个 llms.txt.