Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IDNoInstance identifier to suffix tool names (for multi-instance)
DSNNoDatabase connection string (e.g., postgres://user:password@localhost:5432/dbname?sslmode=disable)
PORTNoHTTP server port (only applicable when using --transport=http)8080
DB_HOSTNoDatabase server hostname (not needed for SQLite)
DB_NAMENoDatabase name or SQLite file path
DB_PORTNoDatabase server port (uses default if omitted, not needed for SQLite)
DB_TYPENoDatabase type: postgres, mysql, mariadb, sqlserver, sqlite
DB_USERNoDatabase username (not needed for SQLite)
SSH_KEYNoPath to SSH private key file
READONLYNoRestrict SQL execution to read-only operationsfalse
SSH_HOSTNoSSH server hostname for tunnel connection
SSH_PORTNoSSH server port22
SSH_USERNoSSH username
TRANSPORTNoTransport mode: stdio or httpstdio
DB_PASSWORDNoDatabase password (not needed for SQLite)
SSH_PASSWORDNoSSH password (for password authentication)
SSH_PASSPHRASENoPassphrase for SSH private key

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/OrionPotter/dbhub'

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