geo-mcp

geo-mcp

A geospatial MCP server providing weather, geocoding, timezone, and nearby places tools via free APIs, requiring no API keys.

Category
访问服务器

README

🌍 geo-mcp

Connect Claude or any MCP client to live location intelligence — weather, geocoding, timezone, and nearby places — using only free open APIs.

Live demo on RenderSwagger docsGitHub repo


What it does

geo-mcp exposes a lightweight MCP surface for real-world geospatial queries. It provides:

  • geocode_address — address to latitude/longitude
  • reverse_geocode_coords — location to human-readable address
  • current_weather — live weather data for any city
  • location_timezone — timezone and local time for coordinates
  • places_nearby — nearby points of interest from OpenStreetMap

Built for developers, open source, and fast integration with modern tools.

Tool Description API Used
geocode_address Address → lat/lon Nominatim (OSM)
reverse_geocode_coords lat/lon → address Nominatim (OSM)
current_weather Live weather for any city Open-Meteo
location_timezone Timezone + local time timeapi.io
places_nearby POIs within a radius Overpass (OSM)

All APIs are free and open — no signup, no keys, no rate-limit surprises for personal use.


Quick start

git clone https://github.com/fjollei/geo-mcp
cd geo-mcp
pip install -r requirements.txt
python server.py

Run with Docker

docker build -t geo-mcp .
docker run -p 8000:8000 geo-mcp

Live demo

Live geo-mcp on Render

Deploy as an HTTP service

This repo now includes app.py, a lightweight HTTP wrapper around the same adapter logic used by the MCP server. It is useful for Render and other container hosts.

  • Health check: /healthz
  • Swagger UI: /docs
  • OpenAPI JSON: /openapi.json
  • Reverse proxy docs: /redoc
  • Geocode: /geocode?address=...
  • Reverse geocode: /reverse-geocode?lat=...&lon=...
  • Weather: /weather?city=...
  • Timezone: /timezone?lat=...&lon=...
  • Nearby places: /places?lat=...&lon=...&category=...&radius_m=...

Connect to Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "geo-mcp": {
      "command": "python",
      "args": ["/absolute/path/to/geo-mcp/server.py"]
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop — you'll see the 🔨 tools icon appear.


Example prompts

Once connected, try these in Claude:

What's the weather like in Tokyo right now?
Find me hospitals within 500m of the Eiffel Tower.
What time is it right now in lat 35.6762, lon 139.6503?
Geocode "1600 Pennsylvania Ave NW, Washington DC"

Project structure

geo-mcp/
├── server.py              # FastMCP server + tool definitions
├── adapters/
│   ├── geocoding.py       # Nominatim geocoder
│   ├── weather.py         # Open-Meteo weather
│   ├── timezone.py        # timeapi.io timezone
│   └── places.py          # Overpass POI search
├── requirements.txt
├── Dockerfile
└── claude_desktop_config.json

Tool reference

geocode_address(address: str)

{
  "display_name": "Paris, Île-de-France, France",
  "lat": 48.8566,
  "lon": 2.3522,
  "type": "city"
}

current_weather(city: str)

{
  "city": "London",
  "temperature_c": 14.2,
  "feels_like_c": 12.8,
  "humidity_pct": 76,
  "wind_speed_kmh": 18.4,
  "condition": "Partly cloudy",
  "precipitation_mm": 0.0
}

places_nearby(lat, lon, category, radius_m)

Supported categories: restaurant, cafe, hospital, pharmacy, school, supermarket, park, hotel, bank, gas_station

{
  "category": "cafe",
  "count": 8,
  "places": [
    { "name": "Monmouth Coffee", "lat": 51.513, "lon": -0.122, "opening_hours": "Mo-Fr 07:30-18:00" }
  ]
}

Why this project

Built to demonstrate the multi-adapter MCP pattern — the same architecture used in production fleet/telematics MCP servers. Each adapter is:

  • Independently testable
  • Easily swappable (swap Nominatim for Google Maps, Open-Meteo for OpenWeather, etc.)
  • Async-first with httpx
  • Typed with clear return schemas

This maps directly to real-world MCP server jobs that require connecting multiple vendor APIs under a unified tool layer.


Extending it

Want to add a new data source? Create adapters/yourapi.py:

import httpx

async def your_tool(param: str) -> dict:
    async with httpx.AsyncClient() as client:
        r = await client.get("https://api.example.com/...", timeout=10)
        r.raise_for_status()
        return r.json()

Then register it in server.py:

from adapters.yourapi import your_tool

@mcp.tool()
async def exposed_tool_name(param: str) -> dict:
    """Tool description shown to the AI."""
    return await your_tool(param)

Tech stack


License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选