streamable-httpMITupdated 2mo ago
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.
What can you do with Japan Food DB?
ā©ļø 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
| Tool | Description | Endpoint |
|---|---|---|
| Japan Food DB | Resolve 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):
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
npm install
npm run dev # local dev server on :8787
npm run typecheck
Smoke test:
curl http://localhost:8787/llms.txt
curl -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.txtand MCP Registryserver.jsonrecords 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
- Records hold facts only ā names, numbers, source URL, retrieval date. No copyrighted text or images.
- Public/government data forms the base layer; every record carries its source and license.
- Every response includes a disclaimer: reference values only, never for medical, allergy, or other critical decisions.
- 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
Install
Add Japan Food DB to your client. Pick the one you use.
claude mcp add --transport http japan-food-db https://toriigate.dev/mcp/food-dbcodex mcp add japan-food-db --url https://toriigate.dev/mcp/food-db{
"mcpServers": {
"japan-food-db": {
"url": "https://toriigate.dev/mcp/food-db"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"japan-food-db": {
"type": "http",
"url": "https://toriigate.dev/mcp/food-db"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"japan-food-db": {
"url": "https://toriigate.dev/mcp/food-db"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"japan-food-db": {
"serverUrl": "https://toriigate.dev/mcp/food-db"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance16/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 61 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint ā no local install
Version history
| Versions | Published |
|---|---|
| 0.2.0Latest | Jul 1, 2026 |