Skip to main content
Glama
mlsloynaz

mcp-sqlserver

by mlsloynaz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MSSQL_PORTNoThe SQL Server port. Defaults to 9123.9123
MSSQL_USERNoThe SQL login username. Required unless using Windows Integrated authentication.
MSSQL_CLIENTNoClient key under 'clients' (e.g. a specific database name) used when loading configuration from a connections map file.
MSSQL_DOMAINNoThe NTLM domain for domain\user authentication.
MSSQL_SERVERNoThe SQL Server host address (e.g. 192.168.100.65).
MSSQL_ENCRYPTNoWhether to use encryption for the connection ('true' or 'false').false
MSSQL_DATABASENoThe database name to connect to. Defaults to 'master'.master
MSSQL_PASSWORDNoThe SQL login password. Required unless using Windows Integrated authentication.
MSSQL_TRUST_CERTNoSet to 'true' to trust self-signed or development certificates.
MSSQL_CONFIG_PATHNoPath to the JSON connections file. Defaults to 'connections.json' in the current working directory.
MSSQL_ENVIRONMENTNoEnvironment key (e.g. staging, prod) used when loading configuration from a connections map file.
MSSQL_WINDOWS_INTEGRATEDNoSet to 'true' to use the current Windows OS user for authentication (requires msnodesqlv8).
MSSQL_TRUST_SERVER_CERTIFICATENoAlternative environment variable to 'MSSQL_TRUST_CERT'; set to 'true' to trust the server certificate.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
query

Execute a read-only SQL query (SELECT) against the configured SQL Server database.

list_tables

List tables in the current database, optionally filtered by schema.

describe_table

Return column names and types for a table.

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

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