Skip to main content
Glama
MSSQL Read-Only MCP Server for Claude Code

MSSQL Read-Only MCP Server for Claude Code

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SQLSERVER_HOSTYesServer hostname.localhost
SQLSERVER_PORTNoServer port.1433
SQLSERVER_USERNoSQL Server username (required for SQL auth; also used by aad-password).
SQLSERVER_ENCRYPTNoEnable TLS encryption.true
SQLSERVER_DATABASENoDefault database.master
SQLSERVER_MAX_ROWSNoMax rows per query (up to 10,000).1000
SQLSERVER_PASSWORDNoSQL Server password (required for SQL auth; also used by aad-password).
SQLSERVER_AUTH_MODENoAuth method: sql, aad-default, aad-password, aad-service-principal.sql
SQLSERVER_CLIENT_IDNoAzure AD application (client) ID.
SQLSERVER_TENANT_IDNoAzure AD tenant ID.
SQLSERVER_TRUST_CERTNoTrust server certificate (set false for Azure SQL).true
SQLSERVER_CLIENT_SECRETNoAzure AD client secret (required for service principal).
SQLSERVER_REQUEST_TIMEOUTNoQuery timeout in ms.60000
SQLSERVER_SCHEMA_CACHE_PATHNoOverride schema cache file path.
SQLSERVER_CONNECTION_TIMEOUTNoConnection timeout in ms.30000
SQLSERVER_DOMAIN_SOURCE_PATHNoPath to C# project root with EF configurations.

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