
Geojp
io.github.55tarkun由 GitHub 账号 55tarkun 发布v0.1.0更新于 Oct 24, 2026
MCP server for Japan geodata: cadastral lot numbers (chiban) and reverse geocoding, for AI agents.
概览
Geojp 将日本地理数据 API 提供给 AI 助手:地号(chiban)查询,以及基于坐标或地址的日本地址地理编码。
- 可以做什么
- 根据经纬度查询所在的地籍地块,返回地号(chiban)、大字/字、市町村和测量精度等级。将坐标反查为最近的日本居住地址,包括都道府县、市町村、地区和邮编。将部分地址正向地理编码为最多 10 个候选地点。通过一次并行调用同时获取地址和地号,当坐标超出地号覆盖范围时仅返回地址。
- 适用场景
- 适用于日本房地产尽职调查、土地交易流程,或任何需要坐标背后地籍地号的任务,这类信息通常无法从通用地理编码服务获得。也适合助手在日本地址与坐标之间互相转换。
- 运行要求
- 可连接托管的远程端点,或用 Node.js 通过 npx 在本地运行 npm 包 geojp-mcp。需要 ReverseGeoJP/ChibanJP 的 API 密钥:本地使用时通过环境变量 GEOJP_API_KEY 提供,远程端点则使用 Authorization bearer 令牌。需要能访问上游 API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Geojp,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.55tarkun%2Fgeojp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"geojp": {
"type": "http",
"url": "https://mcp.reversegeojp.com/",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
geojp-mcp
An MCP (Model Context Protocol) server that exposes two Japan-specific geodata APIs as tools for AI agents (Claude Code, Claude Desktop, and other MCP clients):
- ChibanJP — coordinates → chiban (地番, the official cadastral lot number recorded at Japan's Legal Affairs Bureau). Chiban rarely maps predictably to a residential address (住居表示) and is not exposed by most general-purpose geocoders.
- ReverseGeoJP — coordinates ⇄ Japanese address (reverse geocoding / forward geocoding).
Why chiban?
Japan uses two independent addressing systems: the residential address (住居表示) that appears on maps and mail, and the chiban — the cadastral lot number used in property registries, land transactions, and legal documents. The two do not follow a predictable pattern, so converting between them requires a dedicated lookup against registry map data, not a lookup table.
Chiban matters for real estate due diligence, land transaction platforms, and any workflow that touches Japan's registry system — a growing need as foreign investment in Japanese real estate rises. Most global geocoding APIs do not source chiban directly from registry map data, which is why this exists as a standalone tool.
Tools
All tools share a single API key. Get one at reversegeojp.com.
Two ways to run it
The tool definitions live in src/tools.ts and are shared by both entry points:
- Local (stdio) —
src/index.ts. Your MCP client launches it as a child process on your machine. One user, one API key. - Remote (HTTP, Cloudflare Workers) —
src/worker.ts. Already deployed athttps://mcp.reversegeojp.com; anyone can connect with their own API key, no build step required.
Setup (local/stdio)
or, from source:
The server reads the API key from the GEOJP_API_KEY environment variable. You normally don't run it directly — your MCP client starts it as a subprocess (see below).
Register with Claude Code
--scope user makes it available across all projects on your machine (omit it to register for the current project only). Verify with claude mcp list.
Argument order matters: -e/--env accepts multiple values, so it will swallow subsequent arguments if placed before the server name. Keep the order: add, then the server name, then -e.
Or configure manually in .mcp.json / ~/.claude.json:
Register with Claude Desktop
Add the same block to the mcpServers section of claude_desktop_config.json, then restart Claude Desktop. Four tools (reverse_geocode, geocode, get_parcel, lookup_location) become available.
Setup (remote/HTTP)
Connect directly to the hosted server with your own API key — no install or build required:
Health check: GET https://mcp.reversegeojp.com/health.
Remote server design notes
- No bindings, stateless: the Worker holds no session state and uses no Durable Objects. Every call reads the API key from the
Authorizationheader and proxies straight through to the ReverseGeoJP/ChibanJP production APIs. This avoids the paid Workers plan that Durable Objects require, so it runs on the same free plan asreverse-geo-jp/chibanjpwith no added infrastructure cost (the more commonMcpAgentpattern fromagents-sdkassumes Durable Objects and a paid plan). - Web Standards transport: uses
@modelcontextprotocol/sdk'sWebStandardStreamableHTTPServerTransport, since the Node-onlyStreamableHTTPServerTransportdepends onhttp.IncomingMessage/ServerResponse, which don't exist in the Workers runtime. - Gotcha:
reversegeojp-client/chibanjp-clientdefault to holding a bare, unboundfetch(this.fetchImpl = options.fetch ?? fetch), which throws "Illegal invocation" on Cloudflare Workers. Fixed by passing an explicitly-boundfetchinto the client constructor options increateGeojpMcpServer()(seeboundFetchinsrc/tools.ts). Also fixed upstream ingeojp-api-clientsv0.1.1 (fetch.bind(globalThis));geojp-mcpdepends on that version, and keeps the localboundFetchas a harmless fallback.
Deploy / local dev
Smoke test (no API key required — wiring check only)
Starts the server with a dummy key and confirms the tool list loads and a real API call correctly returns an invalid_api_key error.
Why this exists
ReverseGeoJP/ChibanJP were already running as APIs meant to be called directly by developers reading the docs. This project exposes them as MCP tools so AI agents can discover and call them automatically — reusing the existing production infrastructure while building hands-on MCP/agent-integration experience.
License
MIT
来源:README.md,提交 a9ee994
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分