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

AI 原生

茶 API 以 MCP 伺服器形式.

將 Claude Desktop、Cowork 或任何 MCP 用戶端連接至中國茶百科全書——橫跨 72 種語言嘅 450 款茶葉,涵蓋沖泡、風土、化學、增潤同 2,623 個詞彙表,以八個工具呈現。

Endpoint 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.