mcp-sqlserver
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MSSQL_PORT | No | The SQL Server port. Defaults to 9123. | 9123 |
| MSSQL_USER | No | The SQL login username. Required unless using Windows Integrated authentication. | |
| MSSQL_CLIENT | No | Client key under 'clients' (e.g. a specific database name) used when loading configuration from a connections map file. | |
| MSSQL_DOMAIN | No | The NTLM domain for domain\user authentication. | |
| MSSQL_SERVER | No | The SQL Server host address (e.g. 192.168.100.65). | |
| MSSQL_ENCRYPT | No | Whether to use encryption for the connection ('true' or 'false'). | false |
| MSSQL_DATABASE | No | The database name to connect to. Defaults to 'master'. | master |
| MSSQL_PASSWORD | No | The SQL login password. Required unless using Windows Integrated authentication. | |
| MSSQL_TRUST_CERT | No | Set to 'true' to trust self-signed or development certificates. | |
| MSSQL_CONFIG_PATH | No | Path to the JSON connections file. Defaults to 'connections.json' in the current working directory. | |
| MSSQL_ENVIRONMENT | No | Environment key (e.g. staging, prod) used when loading configuration from a connections map file. | |
| MSSQL_WINDOWS_INTEGRATED | No | Set to 'true' to use the current Windows OS user for authentication (requires msnodesqlv8). | |
| MSSQL_TRUST_SERVER_CERTIFICATE | No | Alternative environment variable to 'MSSQL_TRUST_CERT'; set to 'true' to trust the server certificate. |
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
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| queryA | Execute a read-only SQL query (SELECT) against the configured SQL Server database. |
| list_tablesA | List tables in the current database, optionally filtered by schema. |
| describe_tableB | Return column names and types for a table. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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