Skip to main content
Glama

OSM PostgreSQL Server

by wiseman

MCP-OSM: MCP 向け OpenStreetMap 統合

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

特徴

  • LeafletとOpenStreetMapを使用したWebベースの地図ビューア
  • サーバー送信イベント (SSE) によるサーバーとクライアント間の通信
  • マップ制御用の MCP ツール (マーカー、ポリゴンの追加、ビューの設定、ビューの取得)
  • OpenStreetMapデータ用のPostgreSQL/PostGISクエリインターフェース

インストール

これは私の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クエリを実行する
-
security - not tested
-
license - not tested
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP に OpenStreetMap の統合を提供し、マーカーやポリゴンを追加したり、マップ ビューを制御したりするツールを使用して、ユーザーがマップ データを照会および視覚化できるようにします。

  1. 特徴
    1. インストール
      1. 環境変数
      2. MCPツール

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
      Last updated -
      39
      28
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that creates a virtual traveling environment on Google Maps, allowing users to guide an avatar on journeys with photo reports and SNS integration.
      Last updated -
      2
      14
      12
      TypeScript
      MIT License
      • Linux
      • Apple
    • -
      security
      -
      license
      -
      quality
      Provides access to Google Maps API functionality including geocoding, place search, direction routing, and distance calculations through a structured MCP interface.
      Last updated -
      JavaScript
      MIT License
    • -
      security
      F
      license
      -
      quality
      An MCP-based project that integrates Zhipu AI and Tencent Map APIs to provide weather queries, geocoding, and web search functionality through both command-line and web interfaces.
      Last updated -
      2
      Python

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/wiseman/osm-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server