osm-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OSM_MCP_DSN | Yes | Required libpq connection string for the PostGIS database. Use a read-only DB role. | |
| OSM_MCP_HOST | No | Host for HTTP/SSE transport (default 127.0.0.1). | 127.0.0.1 |
| OSM_MCP_PORT | No | Port for HTTP/SSE transport (default 8000). | 8000 |
| OSM_MCP_SRID | No | SRID of the 'way' geometry column (default 3857). | 3857 |
| OSM_MCP_MAX_ROWS | No | Row cap applied to result sets (default 200). | 200 |
| OSM_MCP_TRANSPORT | No | Transport type: stdio, streamable-http, http, or sse. Default is stdio. | stdio |
| OSM_MCP_STATEMENT_TIMEOUT_MS | No | Per-query statement timeout in milliseconds (default 5000). | 5000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| describe_schemaA | List available planet_osm_* tables, their tag columns, and geometry SRID. |
| list_categoriesC | Top values (with counts) of key OSM tags, to discover filters. |
| search_featuresA | Search OSM features by name (ILIKE) and/or tag filters, optional bbox. |
| find_nearbyB | Features within radius_m meters of (lat, lon), ordered by distance. |
| features_in_areaC | Features inside a bbox [min_lon,min_lat,max_lon,max_lat] or a named/osm_id polygon. |
| count_by_categoryB | Count features per value of a tag (default amenity), optionally within an area. |
| run_sqlC | Run a single read-only SELECT/WITH query against the OSM tables. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/a-tsitanov/osm_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server