geojp

v0.1.0
io.github.55tarkun/geojp Checked 3 days ago Published 3 months ago

MCP server for Japan geodata: cadastral lot numbers (chiban) and reverse geocoding, for AI agents.

Values you need

VariableWhat it is
GEOJP_API_KEYrequired secret API key for ReverseGeoJP/ChibanJP, obtained at https://reversegeojp.com

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add geojp -e 'GEOJP_API_KEY=<GEOJP_API_KEY>' -- npx -y geojp-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "geojp": {
      "args": [
        "-y",
        "geojp-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GEOJP_API_KEY": "<GEOJP_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "geojp": {
      "args": [
        "-y",
        "geojp-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GEOJP_API_KEY": "<GEOJP_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GEOJP_API_KEY",
      "id": "geojp-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "geojp": {
      "args": [
        "-y",
        "geojp-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GEOJP_API_KEY": "${input:geojp-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.geojp]
command = "npx"
args = ["-y", "geojp-mcp@0.1.0"]
env = { "GEOJP_API_KEY" = "<GEOJP_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http geojp https://mcp.reversegeojp.com --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "geojp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.reversegeojp.com",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "geojp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.reversegeojp.com"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "geojp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.reversegeojp.com"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.geojp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.reversegeojp.com", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: GEOJP_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: reverse_geocode, geocode, get_parcel, lookup_location.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json