
wiseman/osm-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
wiseman/osm-mcp는 https://github.com/wiseman/osm-mcp.]에서 수입된 MCP 서버 후보입니다
개요
wiseman/osm-mcp는 https://github.com/wiseman/osm-mcp.]에서 수입된 MCP 서버 후보입니다
개요(AI 번역)
이 패키지는 MCP를 위한 OpenStreetMap 통합을 제공하여 사용자를 쿼리할 수 있습니다. MCP 인터페이스를 통해 맵 데이터를 시각화합니다.
특징
- Leaflet 및 OpenStreetMap을 이용한 웹 기반 맵 뷰어
- Server-to-client 통신(SSE)
- 지도 통제를 위한 MCP 공구 (마커, 다각형, 조정 전망, 전망)
- OpenStreetMap 데이터를 위한 PostgreSQL/PostGIS 쿼리 인터페이스
설치
이것은 내 claude_desktop_config.json:
MCP 서버가 웹 서버를 시작하면 http://localhost:8889/ 지도 인터페이스가 있다.
환경 변수
다음과 같은 환경 변수는 MCP를 구성하는 데 사용될 수 있습니다.
FLASK_HOST- 플라스크 서버 호스트 (기본값: 127.0.0.1)FLASK_PORT- 플라스크 서버 포트 (과태: 8889)PGHOST- PostgreSQL 호스트 (기본: localhost)PGPORT- PostgreSQL 포트 (기본값: 5432)PGDB- PostgreSQL 데이터베이스 이름 (기본값: osm)PGUSER- PostgreSQL 사용자 이름 (과태: postgres)PGPASSWORD- PostgreSQL 암호 (기본값: postgres)
MCP 도구
다음 MCP 도구는 다음과 같습니다.
get_map_view- 현재 맵 보기
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
MCP-OSM: OpenStreetMap Integration for MCP
This package provides OpenStreetMap integration for MCP, allowing users to query and visualize map data through an MCP interface.
Features
- Web-based map viewer using Leaflet and OpenStreetMap
- Server-to-client communication via Server-Sent Events (SSE)
- MCP tools for map control (adding markers, polygons, setting view, getting view)
- PostgreSQL/PostGIS query interface for OpenStreetMap data
Installation
This is my 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"
]
}
}
}
When the MCP server starts it also starts a web server at http://localhost:8889/ that has the map interface.
Environment Variables
The following environment variables can be used to configure the MCP:
FLASK_HOST- Host for the Flask server (default: 127.0.0.1)FLASK_PORT- Port for the Flask server (default: 8889)PGHOST- PostgreSQL host (default: localhost)PGPORT- PostgreSQL port (default: 5432)PGDB- PostgreSQL database name (default: osm)PGUSER- PostgreSQL username (default: postgres)PGPASSWORD- PostgreSQL password (default: postgres)
MCP Tools
The following MCP tools are available:
get_map_view- Get the current map viewset_map_view- Set the map view to specific coordinates or boundsset_map_title- Set the title displayed at the bottom right of the mapadd_map_marker- Add a marker at specific coordinatesadd_map_line- Add a line defined by a set of coordinatesadd_map_polygon- Add a polygon defined by a set of coordinatesquery_osm_postgres- Execute a SQL query against the OpenStreetMap database
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"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"
]
}
}
}