Skip to main content
Glama

MCP SQL Server

by JubinSaniei

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SQL_PORTNoSQL Server port1433
SQL_USERNoSQL Server usernamesa
LOG_LEVELNoLog level for pino logger (e.g., 'fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent')info
SQL_SERVERNoSQL Server hostname or IPlocalhost
SQL_ENCRYPTNoEnable encryption (set to 'false' to disable)true
SQL_DATABASENoDefault database name to connect tomaster
SQL_PASSWORDYesSQL Server password
SQL_POOL_MAXNoMax connections in pool10
SQL_POOL_MINNoMin connections in pool0
MCP_SERVER_NAMENoName of the MCP serverMSSQL Server
SQL_MAX_RETRIESNoMax number of retries for initial connection attempts3
MCP_SERVER_VERSIONNoVersion of the MCP server1.0.0
SQL_MAX_RETRY_DELAYNoMaximum delay (ms) for connection retries (uses exponential backoff)30000
SQL_REQUEST_TIMEOUTNoRequest timeout for queries (ms)30000
SQL_SCHEMA_CACHE_TTLNoTime-To-Live for schema cache (ms)300000
SQL_ALLOWED_DATABASESNoComma-separated list of databases the server is allowed to access. If empty, access is less restricted (relies on DB user permissions).
SQL_POOL_IDLE_TIMEOUTNoIdle timeout for connections in pool (ms)30000
SQL_TRUST_SERVER_CERTNoTrust server certificate (set to 'false' to disable)true
SQL_CONNECTION_TIMEOUTNoConnection timeout (ms)30000
SQL_INITIAL_RETRY_DELAYNoInitial delay (ms) before retrying a failed connection1000

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/JubinSaniei/mcp-mssql'

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