Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLNoDatabase connection URL. Use postgresql://readonly:secret@localhost:5432/gis for PostGIS, or oracle://USER:PASS@host:1521/service_name for Oracle Spatial.
MAPSQL_LAYERSNoComma-separated table/layer patterns to expose, e.g. schema.table, schema.*, or table.
MAPSQL_BACKENDNoForce the backend. Valid values are postgis or oracle. Default: detected from the DATABASE_URL scheme, or Oracle when only MAPSQL_ORACLE_DSN is set.auto
MAPSQL_BASEMAPNoBasemap setting: osm, none, or a tile URL template containing {z}/{x}/{y}. Use none for fully offline operation. Maps rendered with the OSM basemap carry attribution.osm
MAPSQL_SCHEMASNoComma-separated schema allowlist. For Oracle, these are owners. Example: public,osm or GIS.
MAPSQL_MAX_ROWSNoHard row cap. The server never materialises a larger result.5000
MAPSQL_LOG_LEVELNoLog level. Logs go to stderr only.WARNING
MAPSQL_OPEN_MAPSNoOpen each rendered map in the default viewer. Useful for clients that do not display tool images. Equivalent to --open-maps.off
MAPSQL_ORACLE_DSNNoOracle DSN / TNS descriptor or Easy Connect string, used as an alternative to DATABASE_URL for Oracle Spatial. The DSN overrides the host part of an oracle:// URL.
MAPSQL_OUTPUT_DIRNoDirectory where render_map saves PNG/HTML output and the tile cache.~/mapsql-mcp-output
MAPSQL_ALLOW_WRITENoEnable the execute_sql tool for writes. PostGIS only. Equivalent to --allow-write.off
MAPSQL_ORACLE_USERNoOracle Spatial username. Used with MAPSQL_ORACLE_DSN and MAPSQL_ORACLE_PASSWORD; overrides the user in an oracle:// URL.
MAPSQL_DEFAULT_LIMITNoDefault limit used when a query does not specify a limit.100
MAPSQL_ORACLE_PASSWORDNoOracle Spatial password. Used with MAPSQL_ORACLE_DSN and MAPSQL_ORACLE_USER; overrides the password in an oracle:// URL.
MAPSQL_ORACLE_WALLET_DIRNoOracle mTLS wallet directory. Only needed for mutual-TLS (wallet) connections, e.g. Autonomous Database with mTLS required.
MAPSQL_STATEMENT_TIMEOUT_MSNoPer-query timeout in milliseconds.15000
MAPSQL_ORACLE_WALLET_PASSWORDNoOracle mTLS wallet password. Only needed for mutual-TLS (wallet) connections.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources