Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OSM_MCP_DSNYesRequired libpq connection string for the PostGIS database. Use a read-only DB role.
OSM_MCP_HOSTNoHost for HTTP/SSE transport (default 127.0.0.1).127.0.0.1
OSM_MCP_PORTNoPort for HTTP/SSE transport (default 8000).8000
OSM_MCP_SRIDNoSRID of the 'way' geometry column (default 3857).3857
OSM_MCP_MAX_ROWSNoRow cap applied to result sets (default 200).200
OSM_MCP_TRANSPORTNoTransport type: stdio, streamable-http, http, or sse. Default is stdio.stdio
OSM_MCP_STATEMENT_TIMEOUT_MSNoPer-query statement timeout in milliseconds (default 5000).5000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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