Japan Food DB

dev.toriigate由 toriigate.dev 發布官方發布者v0.2.0更新於 Nov 2, 2026

Resolve Japanese food names to nutrition facts. All 2,538 foods from Japan's official tables.

已驗證Streamable HTTP可網頁執行位置與生活資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,將日本食品名稱解析為依據日本官方食品成分表的每 100 公克營養資料。

可以做什麼
  • 依名稱搜尋日本食品(含模糊或口語化寫法),回傳候選項目及每 100 公克營養、來源與免責聲明
  • 依搜尋回傳的食品 ID 查詢每 100 公克的營養成分
  • 資料來自日本標準食品成分表,涵蓋 USDA 與 Open Food Facts 可能未收錄的食品
適用情境
當助理需要回答日本料理、食材或包裝食品的熱量與營養問題,並希望取得有來源的數值而非猜測時適用。
執行需求
需要遠端 Streamable HTTP 端點;免費額度無需 API 金鑰,但有速率限制。未宣告任何環境變數或請求標頭。
安裝前請注意
回傳值僅供參考,明確不適用於醫療、過敏等關鍵決策。免費額度有速率限制,營運方會記錄探索、連線與呼叫事件以供計量。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Japan Food DB,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.toriigate%2Ffood-db/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "japan-food-db": {
      "type": "http",
      "url": "https://toriigate.dev/mcp/food-db"
    }
  }
}

README

⛩️ Torii Gate

Japanese data tools for AI agents.

Japan has a wealth of clean, public, factual data — food composition tables, corporate registries, laws, land prices. Almost none of it is usable by AI agents: no clean APIs, Japanese-only interfaces, Excel files behind web forms. Meanwhile, agents worldwide get asked to do Japanese tasks every day.

Torii Gate is the gateway: each dataset becomes a remote MCP server that any agent can discover, connect to, and call.

Tools

ToolDescriptionEndpoint
Japan Food DBResolve Japanese food names (fuzzy/colloquial forms included) to nutrition facts per 100g, based on the official Standard Tables of Food Composition in Japan. Covers foods USDA and Open Food Facts don't./mcp/food-db

More tools are on the way — corporate registry lookup, invoice registration checks, subsidy search. The platform is manifest-driven: adding a tool is one directory and one registry line.

Connect from an MCP client

Add the remote server to your client (Claude Code example):

sh
claude mcp add --transport http japan-food-db https://toriigate.dev/mcp/food-db

Then ask things like "「セブンのサラダチキン」的な鶏むね肉のカロリーは?" — the agent calls search_food / get_nutrition and gets factual data with sources attached.

No API key is needed for the free tier (rate-limited).

Run it yourself

sh
npm installnpm run dev        # local dev server on :8787npm run typecheck

Smoke test:

sh
curl http://localhost:8787/llms.txtcurl -X POST http://localhost:8787/mcp/food-db \  -H 'Content-Type: application/json' \  -H 'Accept: application/json, text/event-stream' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_food","arguments":{"query":"ごはん"}}}'

Architecture

  • Cloudflare Workers + Hono + MCP SDK (Streamable HTTP, stateless)
  • Manifest-driven: each tool lives in src/tools/<name>/ and declares its MCP tools, pricing, and data sources in a manifest. llms.txt and MCP Registry server.json records are generated from manifests — never hand-written.
  • Funnel metering built in: discovery → connect → call events are recorded for every tool.
  • Budget-guarded by design: runs on the Workers free plan, whose hard request cap fails closed instead of billing.

Data principles

  1. Records hold facts only — names, numbers, source URL, retrieval date. No copyrighted text or images.
  2. Public/government data forms the base layer; every record carries its source and license.
  3. Every response includes a disclaimer: reference values only, never for medical, allergy, or other critical decisions.
  4. Takedown requests are honored immediately.

Full datasets are imported at deploy time and are not part of this repository.

The experiment

This platform is built and operated almost entirely by AI agents — planning, code, registry publishing, monitoring, and weekly funnel reports — with a human in the loop only for publish/kill approvals and a budget review. It is an open experiment in whether an AI-operated business unit can find real agent-to-agent demand. Funnel numbers and decisions will be published as we go.

License

MIT

來源:README.md,提交 7d1e09b

工具

2

search_food

Search Japanese foods

Search Japanese foods by name (Japanese or romaji-free text). Returns candidates with nutrition per 100g, source, and disclaimer.

輸入參數limitquery必填

get_nutrition

Get nutrition facts by food ID

Get nutrition facts per 100g for a food ID returned by search_food.

輸入參數id必填

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分