OSM PostgreSQL Server
MCP-OSM: MCP 向け OpenStreetMap 統合
このパッケージは、MCP 用の OpenStreetMap 統合を提供し、ユーザーが MCP インターフェースを通じてマップ データを照会および視覚化できるようにします。

特徴
LeafletとOpenStreetMapを使用したWebベースの地図ビューア
サーバー送信イベント (SSE) によるサーバーとクライアント間の通信
マップ制御用の MCP ツール (マーカー、ポリゴンの追加、ビューの設定、ビューの取得)
OpenStreetMapデータ用のPostgreSQL/PostGISクエリインターフェース
Related MCP server: Google Maps Platform MCP Server
インストール
これは私のclaude_desktop_config.jsonです:
{
"mcpServers": {
"OSM PostgreSQL Server": {
"command": "/Users/wiseman/.local/bin/uv",
"args": [
"run",
"--env-file",
".env",
"--with",
"mcp[cli]",
"--with",
"psycopg2",
"--with-editable",
"/Users/wiseman/src/mcp-osm",
"--directory",
"/Users/wiseman/src/mcp-osm",
"mcp",
"run",
"mcp.py"
]
}
}
}MCP サーバーが起動すると、マップ インターフェイスを持つhttp://localhost:8889/の Web サーバーも起動します。
環境変数
MCP を構成するには、次の環境変数を使用できます。
FLASK_HOST- Flaskサーバーのホスト(デフォルト: 127.0.0.1)FLASK_PORT- Flaskサーバーのポート(デフォルト: 8889)PGHOST- PostgreSQLホスト(デフォルト: localhost)PGPORT- PostgreSQLポート(デフォルト: 5432)PGDB- PostgreSQLデータベース名(デフォルト: osm)PGUSER- PostgreSQLユーザー名(デフォルト: postgres)PGPASSWORD- PostgreSQLパスワード(デフォルト: postgres)
MCPツール
次の MCP ツールが利用可能です。
get_map_view- 現在のマップビューを取得するset_map_view- マップビューを特定の座標または境界に設定するset_map_title- マップの右下に表示されるタイトルを設定しますadd_map_marker- 特定の座標にマーカーを追加するadd_map_line- 座標セットで定義された線を追加するadd_map_polygon- 座標セットで定義されたポリゴンを追加するquery_osm_postgres- OpenStreetMapデータベースに対してSQLクエリを実行する
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Unofficial Nominatim MCP — wraps OpenStreetMap Nominatim geocoding API (free, no auth)
Unofficial OpenTripMap MCP — wraps the OpenTripMap Places API (dev.opentripmap.org)
OpenStreetMap Overpass MCP — programmatic queries against the OSM database
Unofficial Geoapify MCP — wraps the Geoapify Location Platform (geoapify.com)
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides access to Google Maps API functionality including places search, geocoding, directions, distance matrix, elevation data, and static map generation through the MCP interface.81MIT
- AlicenseNot gradedqualityDmaintenanceProvides MCP tools for Google Maps services including directions, geocoding, distance matrix, and places search.13Apache 2.0
- AlicenseNot gradedqualityAmaintenanceGeocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data via MCP.737 npm9Apache 2.0
- AlicenseAqualityDmaintenanceMCP server providing structured access to OpenStreetMap data through Overpass and Nominatim APIs, enabling geocoding, nearby place searches, element queries, and tag counting without API keys.7MIT