Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCPSQL_HOSTNoDatabase server host.
MCPSQL_PORTNoDatabase server port.
MCPSQL_DB_TYPENoEngine type (e.g., mssql).
AZURE_CLIENT_IDNoAzure client ID for service principal auth.
AZURE_TENANT_IDNoAzure tenant ID for service principal auth.
MCPSQL_DATABASENoDatabase name.
MCPSQL_MAX_ROWSNoRow cap for queries (default 1000).1000
MCPSQL_PASSWORDNoSQL Server login password (for sql_password auth).
MCPSQL_USERNAMENoSQL Server login username (for sql_password auth).
MCPSQL_AUTH_METHODNoAuthentication method (sql_password, windows, azure_ad).
MCPSQL_CONNECTIONSNoJSON mapping of connection names to ODBC strings (for map backend).
MCPSQL_ODBC_DRIVERNoODBC driver name (default 'ODBC Driver 18 for SQL Server').ODBC Driver 18 for SQL Server
AZURE_CLIENT_SECRETNoAzure client secret for service principal auth.
MCPSQL_KEYVAULT_URLNoAzure Key Vault URL for resolving connections (for keyvault backend).
MCPSQL_AZURE_AUTH_MODENoAzure AD token acquisition mode (default, service_principal, managed_identity).
MCPSQL_CONNECTION_BACKENDNoConnection backend: static, map, keyvault.static
MCPSQL_CONNECTION_ALLOWLISTNoComma-separated list of allowed connection names.
MCPSQL_CONNECTION_CACHE_TTLNoCache TTL for resolved connections in seconds.

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

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/benamaraissam/mcp-sql'

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