Edition Intelligence Platform
Japan Operations OS for AI agents — 14 knowledge domains covering regulations, protocols, calendar, travel, food culture, language, disaster safety, daily life, and persistent memory. 31 MCP tools via REST + Streamable HTTP.
README
EDITION Intelligence Platform
The missing infrastructure for AI agents operating in Japan.
Memory API + Regulation Check API + Procedural Knowledge + MCP Server — purpose-built for Japanese business context.
The Problem
AI agents working with Japanese businesses hit walls that generic tools can't solve:
- Keigo (敬語): A sentence like "ワインをお持ちすれば喜ばれるかと存じます" hides the subject, uses layered honorifics, and expresses uncertainty — generic NLP treats this as noise
- Implicit agreements: Japanese business communication rarely states things directly
- Regulatory maze: 10+ industries with overlapping national/prefectural regulations, most documentation only in Japanese
- No persistent context: Agents forget everything between sessions
What This Does
1. Memory API — Japanese-aware persistent memory
Store episodes, auto-extract structured facts with keigo analysis, social hierarchy detection, and confidence scoring.
Input: "佐藤部長にはワインをお持ちすれば喜ばれるかと存じます"
Output:
Subject: 佐藤 (役職: 部長)
Predicate: 好む
Object: ワイン
Keigo: Level 2 (尊敬語)
Hierarchy: superior
Confidence: 0.7 (推測 — not stated as fact)
Tense: present
Three-layer architecture:
- Episodes — raw conversation logs
- Facts — structured knowledge (auto-extracted via LLM)
- Context — summarized state per entity/topic
2. Regulation API — 10 industries + tourist rules
Pre-built regulatory database covering:
- EC sites, Real estate, Staffing, Food service, Construction
- Healthcare, Finance, Transport, Education, Accommodation
- Tourist categories: Visa, Tax-free, Transit, Medical, Manners
All 10 industries include step-by-step procedural guides (65 total steps) — covering what to do, how, where, required documents, costs, timelines, and common pitfalls.
curl -X POST /api/v1/regulation/check \
-d '{"industry": "food_service", "query": "What licenses do I need to open a restaurant in Tokyo?"}'
3. MCP Server — 8 tools for Claude, Cursor, etc.
| Tool | Description |
|---|---|
memory_store |
Store episode + auto-extract facts |
memory_recall |
Semantic search across episodes |
memory_facts |
List structured facts |
memory_context |
Get context summary |
memory_extract |
Extract facts from text |
regulation_check |
Check regulations by industry |
regulation_industries |
List covered industries |
regulation_tourist |
Tourist regulation lookup |
Quick Start
Backend
git clone https://github.com/hiroshic9-png/edition.git
cd edition
python3 -m venv venv && source venv/bin/activate
pip install fastapi 'uvicorn[standard]' pydantic sqlalchemy aiosqlite chromadb python-dotenv google-genai
# Set your LLM key (any one of these)
echo 'GEMINI_API_KEY=your_key' > .env
# or ANTHROPIC_API_KEY or OPENAI_API_KEY
python -m uvicorn backend.api.main:app --reload
# → http://localhost:8000/docs
MCP Server (for Claude Desktop / Cursor)
cd mcp-server && npm install && npm run build && npm start
Add to claude_desktop_config.json:
{
"mcpServers": {
"edition": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"],
"env": {
"EDITION_API_URL": "http://localhost:8000",
"EDITION_API_KEY": "your_api_key"
}
}
}
}
API Endpoints
Memory
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/memory/episodes |
Store episode (set auto_extract=true for auto fact extraction) |
| POST | /api/v1/memory/episodes/search |
Semantic search |
| POST | /api/v1/memory/facts |
Add fact |
| GET | /api/v1/memory/facts |
List facts |
| GET | /api/v1/memory/context |
Context summary |
| POST | /api/v1/memory/extract |
Extract facts from text |
Regulation
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/regulation/check |
Check regulations (10 industries + LLM RAG) |
| GET | /api/v1/regulation/industries |
List industries |
| GET | /api/v1/regulation/tourist |
Tourist categories |
Tech Stack
| Layer | Technology |
|---|---|
| API | FastAPI (Python) |
| Memory Store | SQLite + ChromaDB (vector search) |
| MCP | TypeScript SDK v1.29 |
| LLM | Gemini / Claude / GPT (fact extraction + RAG) |
Why Not Mem0 / Letta / Zep?
Those are excellent general-purpose memory tools. But they don't:
- Parse Japanese keigo levels (丁寧語 / 尊敬語 / 謙譲語)
- Detect implicit social hierarchy from honorific patterns
- Score confidence based on Japanese speech patterns (断定 vs 推測 vs 伝聞)
- Include a Japanese regulatory database
This project exists because Japanese business context is structurally different, and agents need purpose-built infrastructure to navigate it.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。