japan-utils-mcp
japan-utils-mcp
MCP server exposing Japan-specific utilities to AI agents (Claude, Cursor, Cline, Continue, etc.). Hand your agent the small bag of JP-specific functions every Japan-related task needs but no generic LLM gets right reliably:
🗓️ Era ↔ Western year —
令和8年↔2026🔤 Kanji → Hepburn romaji —
山田太郎→yamada tarou📮 Postal code lookup —
150-0001→東京都 渋谷区 神宮前🎌 National holiday calendar — is
2026-05-03a holiday? what about all of 2026?🅰️ Kana conversion — hiragana ↔ katakana ↔ half-width katakana
📏 Width normalization — full-width (全角) ↔ half-width (半角) for ASCII, digits, kana
👤 Name splitting —
山田太郎→ surname山田+ given太郎(statistical model)
Built on top of well-maintained Japanese libraries (jpholiday, posuto, pykakasi, jaconv, namedivider-python) — wrapped as MCP tools so any AI agent can call them without re-implementing reading rules, era arithmetic, postal data, or name-splitting heuristics.
Why this exists
Generic LLMs hallucinate on JP-specific data:
"What year is 令和8年?" — often wrong
"Convert 山田太郎 to romaji" — gets the surname wrong half the time
"What's the address for postal code 150-0001?" — fabricates plausible-looking nonsense
"Is May 3rd a Japanese holiday?" — guesses
This MCP gives them a deterministic answer.
Related MCP server: Edition Intelligence Platform
Tools
Tool | What it does |
|
|
|
|
| Mixed Japanese text → Hepburn romaji + hiragana reading |
| 7-digit JP postal code → prefecture / city / area, with kana readings |
| Date string → is it a national holiday? + Japanese name + weekday |
| Year → all national holidays for that year |
| hiragana ↔ katakana ↔ half-width katakana, any direction |
| Full-width ↔ half-width for ASCII, digits, kana (with per-category control) |
| Japanese full name → surname + given name (statistical model with confidence) |
All tools return structured JSON. See tool docstrings in src/japan_utils_mcp/server.py for full schemas and examples.
Installation
Run with uvx (no install — recommended)
uvx japan-utils-mcpThat's it. uvx (from uv) handles install + run in one shot, isolated from your global Python.
From source
git clone https://github.com/vivek081166/japan-utils-mcp.git
cd japan-utils-mcp
uv sync
uv run japan-utils-mcpConfiguration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"japan-utils": {
"command": "uvx",
"args": ["japan-utils-mcp"]
}
}
}Claude Code
claude mcp add japan-utils -- uvx japan-utils-mcpCursor / Cline / Continue
Same JSON snippet as Claude Desktop, in their respective MCP config files.
Examples
Once connected, ask your agent things like:
What year is 令和8年? →
era_to_western("令和8年")→2026
What's the address for postal code 150-0001? →
lookup_postal_code("150-0001")→東京都 渋谷区 神宮前
Convert 山田太郎 to romaji. →
kanji_to_romaji("山田太郎")→yamada tarou
Is May 3rd 2026 a Japanese holiday? →
is_holiday("2026-05-03")→憲法記念日(Constitution Memorial Day)
List all Japanese holidays in 2026. →
list_holidays(2026)→ 18 holidays with names and dates
Convert ヤマダタロウ to hiragana. →
convert_kana("ヤマダタロウ", "hiragana")→やまだたろう
Normalize ABC123 to half-width. →
normalize_width("ABC123", "to_half")→ABC123
Split 長谷川健太 into surname and given name. →
split_japanese_name("長谷川健太")→長谷川/健太
Caveats
Romaji of personal names uses the most common reading — proper nouns with unusual readings will be wrong. This is a fundamental limitation of any kanji-to-romaji conversion without disambiguation context.
Postal code dataset ships via the
posutolibrary, refreshed against Japan Post's monthly KEN_ALL. If you need ultra-fresh data, refreshposutoperiodically.Holidays covers national holidays (国民の祝日) only — not company-specific or regional observances.
Era conversion supports Meiji (明治) through Reiwa (令和). Earlier eras are not supported.
Development
git clone https://github.com/vivek081166/japan-utils-mcp.git
cd japan-utils-mcp
uv sync
uv run python -c "from japan_utils_mcp.server import era_to_western; print(era_to_western('令和8年'))"License
MIT
Maintenance
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides Japanese UX conventions as an MCP server to help AI generate correct Japanese UI elements like proper name order, furigana, phone formats, and polite language. It includes tools for form generation, validation, keigo suggestions, and cultural adaptation for developers building Japanese-facing products.Last updated697MIT
- AlicenseAqualityAmaintenanceJapan 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.Last updated31MIT
- Alicense-qualityBmaintenanceTorify gives AI agents the Japanese locale primitives that standard libraries lack — imperial era date conversion (wareki), qualified invoice number validation with NTA registry lookup, corporate number lookup (法人番号), postal code resolution, name romanization (Hepburn), and kanji-to-kana conversion via Yahoo! JLP. 31 endpoints total. No authentication required for MCP. Pay-per-call $0.02/call viaLast updatedMIT
- Alicense-qualityCmaintenanceEnables AI agents to query Japanese public data (laws, corporations, statistics) from official government APIs, returning normalized English metadata with source attribution.Last updatedMIT
Related MCP Connectors
39 Japanese locale APIs — wareki, NTA invoice, 法人番号, postal, romanization, kanji-kana (Workers AI).
60+ units, live FX, timezones, and date arithmetic for AI agents.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vivek081166/japan-utils-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server