THE TEA · 開發者平台api.thetea.app
tea.support

AI 原生

The Tea API 作為 MCP 伺服器.

將 Claude Desktop、Cowork 或任何 MCP 用戶端連接至中國茶百科 — 橫跨 72 種語言的 450 款茶、沖泡、風土、化學、擴充與 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.