jp-postal-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jp-postal-mcp-server〒100-0001の住所を教えて"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jp-postal-mcp-server
日本郵便の公式データを正規化して同梱した、完全オフライン・APIキー不要・読み取り専用の郵便番号⇔住所MCPサーバー。
Japanese postal code ⇄ address lookup with bundled official data — fully offline, no API key.
特徴
完全オフライン: 日本郵便の公式データ(約12万件)を圧縮同梱。外部APIを呼ばない。住所データを外部に送らない
APIキー不要・課金なし: 導入して即動く
読み取り専用: 検索するだけ。ファイルもネットワークも書き換えない
正規化の透明性: 「以下に掲載がない場合」「○○一円」などの特殊レコードをフラグとして構造化。括弧注記(「1〜19丁目」等)は展開せず
note/noteTypeとして保持し、解釈はLLMに委ねる
性能(実測)
指標 | 目標 | 実測(Node 22) |
起動(ロード+索引構築) | 500ms以下 | 246ms |
メモリ(heapUsed) | 60MB以下 | 37.1MB |
郵便番号lookup | — | 0.03µs/回 |
住所部分一致(全件走査) | — | 26ms |
素朴実装(全レコードを文字列で保持)では112MBだったものを、文字列テーブル化により1/3に圧縮しています。 測定条件: Linux x64 / Node 22 の単一実行での代表値。テストでは環境差を考慮した緩めの閾値(起動1500ms・60MB)をCIで常時検証しています。
Related MCP server: Japan Area Code MCP Server
ツール
lookup_zipcode
郵便番号から住所を検索。7桁は完全一致、3〜6桁は前方一致。
入力の揺れを吸収:
060-0000/〒100−0001/ 全角数字 / 長音記号「1つの郵便番号に複数町域」「1つの町域に複数郵便番号」の曖昧性を公式フラグとして透過
search_address
住所の文字列(漢字またはカナの部分一致)から郵便番号を検索。都道府県・市区町村・町域のいずれにもマッチ。
共通の引数と返却形式
どちらのツールも
limit(返却件数の上限、既定50・最大200)を受け付けます返却は次の形のJSONです。
totalは全ヒット数、returnedは実際に返した件数で、打ち切りの有無はこの2つの比較で分かります
{
"normalizedZipcode": "5220317", // lookup_zipcodeのみ。正規化後の番号
"matchType": "exact", // lookup_zipcodeのみ。exact(7桁) / prefix(3〜6桁)
"total": 1, // 全ヒット件数
"returned": 1, // 返却件数(limitで打ち切られた場合はtotalより小さい)
"records": [ ... ], // 下記「返却レコードの読み方」参照
"dataVersion": "2607" // 同梱データの版数(鮮度の確認はここ)
}セットアップをAIに任せる
Claude Desktop に以下を貼り付けてください。
jp-postal-mcp-server をセットアップしてください。
https://github.com/h-kazuki-pixel/jp-postal-mcp-server の README を読む
私の claude_desktop_config.json に必要な設定を追記する
設定後、動作確認としてツールを1回実行して結果を見せる
私は非エンジニアです。実行するコマンドは1つずつ提示してください。
手動セットアップ
git clone https://github.com/h-kazuki-pixel/jp-postal-mcp-server.git
cd jp-postal-mcp-server
npm ci
npm run buildclaude_desktop_config.json に追記:
{
"mcpServers": {
"jp-postal": {
"command": "node",
"args": ["/absolute/path/to/jp-postal-mcp-server/dist/index.js"]
}
}
}macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json(argsのパスはC:\\path\\to\\...形式)
1分お試し
サーバーを立てずに動作を確認できます。リポジトリ直下で:
printf '%s\n%s\n%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"lookup_zipcode","arguments":{"zipcode":"522-0317"}}}' \
| node dist/index.js 2>/dev/null | tail -1期待される出力(抜粋):
{"zipcode":"5220317","prefecture":"滋賀県","city":"犬上郡多賀町","town":"一円","townKana":"イチエン", ...}滋賀県犬上郡多賀町「一円」は実在の地名です。「○○一円(=全域)」という注記表現と紛らわしいため、本サーバーの境界値テストとして固定しています。
使わない方がいい場合
単発の住所確認だけなら本MCPは不要です(Web検索で足ります)
番地・号レベルの住所正規化や実在検証が必要な場合は対象外です(公式データの粒度が町域までのため)
常に最新データが必須の場合は注意してください(同梱データは月次更新の公式データに基づく。鮮度は
dataVersionで確認できます)
返却レコードの読み方
{
"zipcode": "0600000",
"prefecture": "北海道",
"city": "札幌市中央区",
"town": "", // catchAllの場合は空
"note": null, // 括弧注記(例: "1〜19丁目")
"noteType": null, // chome-range / banchi / enumeration / enumeration-with-exclusion / building-floor / other / word
"catchAll": true, // 「以下に掲載がない場合」
"directNumbering": false, // 「○○の次に番地がくる場合」
"wholeArea": false, // 「○○一円」(町域全域)
"oneZipManyTowns": false, // 1つの郵便番号が2以上の町域を表す(公式フラグ)
"oneTownManyZips": false // 1つの町域が2以上の郵便番号で表される(公式フラグ)
}データについて
出典: 日本郵便「住所の郵便番号(1レコード1行、UTF-8形式)」 https://www.post.japanpost.jp/service/search/zipcode/download/utf-zip.html
データ版数: 2607(2026年7月31日更新分) / 取得日: 2026-08-08 / 124,513件
日本郵便は郵便番号データについて「著作権を主張しません。自由に配布していただいて結構です」と公表しており、本リポジトリはこれに基づいてデータを同梱しています
正規化ロジックは公式の「郵便番号データの説明」の仕様記述のみを根拠にした独自実装です。既存の郵便番号ライブラリのコードは参照していません
データの再現(ビルドパイプライン)
同梱データ data/compiled.json.gz は、公式CSVから誰でも再生成できます:
# 公式サイトから utf_ken_all.zip をダウンロードし、解凍したCSVを raw/ に置く
JP_POSTAL_DATA_VERSION=2607 npm run build:dataパイプラインは4段構成です:
検証: 列数15・郵便番号7桁・JIS5桁・括弧均衡を全件検査
正規化: 特殊レコード3種のフラグ化・括弧注記の構造化(展開はしない)
圧縮: 文字列テーブル化(17.5MB → 1.6MB)
照合: 元CSVと圧縮データの全件突合(可逆性の保証)
実装上の発見(公式データの実測より)
丁目範囲の記号は波ダッシュ「〜」(U+301C)。全角チルダ「~」(U+FF5E)は全124,513件中0件
兵庫県明石市「和坂」は同一郵便番号(673-0012)で読みが2つ(カニガサカ/ワサカ)ある正当な重複レコード
滋賀県犬上郡多賀町「一円」(522-0317)は実在地名。「○○一円」の機械除去はこの1件を壊してはならない
テスト
npm test41件(パイプライン20件 + 検索・性能・一次データ照合21件)。fixtureは公式CSVからの無改変の機械抽出で、公式CSVを raw/ に置いた環境では圧縮データとの全件突合も実行されます。CI は ubuntu-latest / windows-latest × Node 20 / 22 の4本立てです。
ライセンス
MIT
This server cannot be installed
Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceProvides Japanese postal code to address lookup functionality that can be integrated with AI assistants and other MCP clients.3MIT
- AlicenseAqualityDmaintenanceProvides access to Japanese statistical standard area codes (標準地域コード) from official government data, enabling users to list and search area codes by prefecture or municipality name.2Apache 2.0
- FlicenseBqualityDmaintenanceEnables searching Japanese addresses by 7-digit zip code using the zipcloud API.1

jpzip MCP serverofficial
AlicenseAqualityDmaintenanceEnables to look up Japanese postal codes, convert zipcodes to addresses, search addresses by query, and list cities in a prefecture using the jpzip dataset.46MIT
Related MCP Connectors
39 Japanese locale APIs — wareki, NTA invoice, 法人番号, postal, romanization, kanji-kana (Workers AI).
French address quality, geocoding & routing from official data (BAN, INSEE, OpenStreetMap).
Hungarian postcode lookup + validation - 3,484 codes, sub-10ms lookups, bulk address endpoint.
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/h-kazuki-pixel/jp-postal-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server