AI 原生
茶葉 API 以 MCP 伺服器形式提供.
將 Claude Desktop、Cowork 或任何 MCP 用戶端連接至中國茶百科全書——72 種語言的茶品與專題文章,涵蓋沖泡、風土、化學、製作工序、經核實的地理標誌和多語言術語表——以及 b2btea.com 茶葉企業名錄。工具清單見下文;即時統計見 llms.txt.
端點 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 伺服器
- Install the runtime:
pip install "mcp[cli]" httpx - 儲存 server.py 到任意位置,並記下其絕對路徑。
- 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 / 終身版)。
公開的工具
茶葉百科
- search_tea
- get_tea
- get_tea_card
- preview_tea
- get_field
- list_teas
- compare_teas
- random_tea
- list_topics
- similar_teas
- semantic_search
- recommend_like
- ask_sommelier
- tea_map
參考資料
- glossary
- get_term
- find_places
- tea_families
- catalog_meta
- list_infusions
- get_infusion
企業名錄
- search_companies
- get_company
- company_facets
- companies_for_tea
get_tea returns Markdown for reading; get_tea_card returns the same card as JSON with every field. catalog_meta lists the section and field codes that get_field accepts. Summaries written by a model are marked as machine drafts.
企業名錄
同一伺服器還開放了 b2btea.com,這是一份全球茶葉企業名錄——工廠、批發商、進口商、出口商、茶館、市場和合作社——提供 15 種語言:英語、俄語、中文、德語、法語、西班牙語、義大利語、葡萄牙語、日語、韓語、土耳其語、阿拉伯語、波蘭語、荷蘭語和越南語。
search_companiesfilters by country, city, Chinese province, company type, tea, Chinese-tea focus and evidence level; each result links to its page on b2btea.com.get_companyreturns the card as published on b2btea.com: description, address, phone, website, contact form, teas linked to encyclopedia articles.company_facetscounts companies by country, type, tea and region;companies_for_teagoes from an encyclopedia article to the companies that deal in that tea. The directory tags companies by tea class and a few named teas, so for most articles it falls back to the class and says so inmatched.
What you will not find there: e-mail addresses, in any field. Entries come from open sources and do not claim that a company operates today; each carries its evidence level, from a website that answered a live check to a name a source mentioned. Without a key a search returns the first 10 results and no paging; company cards are always open. REST: /api/v2/companies, /api/v2/company/{slug}, /api/v2/companies/facets.
其他使用方式
同一份資料還提供普通的 REST API、 OpenAPI 規格(供 GPT Actions 使用)以及 llms.txt。您的方案和用量: 帳戶.