Connector guide1-minute read4 MCP toolsEnglish · Deutsch · Italiano

如何将 Nominatim (OpenStreetMap) 连接到 Gemini — 通过 MCP

Free, no-auth geocoding using OpenStreetMap's Nominatim service. Forward + reverse geocoding + place lookup + search. 4 tools.

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Nominatim (OpenStreetMap)

MCP connector

Nominatim (OpenStreetMap)

Free, no-auth geocoding using OpenStreetMap's Nominatim service. Forward + reverse geocoding + place lookup + search. 4 tools.

Tools

4

Region

INTL

Category

maps

Authentication

Public API

Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

No install? Use cloud.anythingmcp.com directly.

Sign in, install the Nominatim (OpenStreetMap) in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

TL;DR

Free, no-auth geocoding using OpenStreetMap's Nominatim service. Forward + reverse geocoding + place lookup + search. 4 tools.

💡 无需安装? 直接使用 cloud.anythingmcp.com 登录、点击 Connectors → Nominatim (OpenStreetMap)、粘贴凭证、生成 MCP API key — 完成。无 Docker、无 git clone、无本地服务器。

Nominatim (OpenStreetMap) + Gemini

Free, no-auth geocoding using OpenStreetMap's Nominatim service. Forward + reverse geocoding + place lookup + search. 4 tools.

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

(none — public API)

步骤 1 — 获取凭证

org).

Setup: NO API KEY REQUIRED. Just install the connector. The base URL is https://nominatim.openstreetmap.org.

HOWEVER — usage policy you MUST respect (otherwise you'll get banned):

  1. Max 1 request per second per IP. The connector does NOT throttle for you — your agent must self-limit. For bulk usage, run a self-hosted Nominatim or use a paid Nominatim host.
  2. User-Agent header REQUIRED — every request must identify you. The connector pins User-Agent: AnythingMCP (https://anythingmcp.com) automatically.
  3. No heavy bulk geocoding — if you need >100 requests/hour, switch to MapTiler / OpenCage / Mapbox / Google.

步骤 2 — 安装 adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

步骤 3 — 在 Gemini 中添加连接器

Gemini CLI 从 ~/.gemini/settings.json (Windows: %APPDATA%\gemini\settings.json) 读取 MCP 服务器。添加:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. 从 AnythingMCP 获取你的 MCP API key
  2. 保存文件并重启 gemini
  3. 在 Gemini CLI 中运行 /mcpNominatim (OpenStreetMap) 应显示为可用。
  4. Vertex AI Studio: 将 https://cloud.anythingmcp.com/mcp 传入请求的 tools 数组,使用相同的 Bearer 头。

可用工具

ToolWhat it does
nominatim_searchForward geocode (free-text address → coordinates + structured address)
nominatim_reverseReverse geocode (coordinates → address)
nominatim_lookupLook up known OSM IDs (N1234, W5678, R9012 for nodes/ways/relations)
nominatim_statusService status check

FAQ

Gemini 1.5 Pro 或 2.x 支持 MCP 吗? 支持 — Gemini CLI ≥ 0.4 与 Vertex AI tools API 均接受带 Bearer 头的 MCP httpUrl 连接器。

下一步

这份指南对您有帮助吗?

Ready to ship

Your Nominatim agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

相关指南