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 分