MCP SQL Server
by JubinSaniei
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SQL_PORT | No | SQL Server port | 1433 |
| SQL_USER | No | SQL Server username | sa |
| LOG_LEVEL | No | Log level for pino logger (e.g., 'fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent') | info |
| SQL_SERVER | No | SQL Server hostname or IP | localhost |
| SQL_ENCRYPT | No | Enable encryption (set to 'false' to disable) | true |
| SQL_DATABASE | No | Default database name to connect to | master |
| SQL_PASSWORD | Yes | SQL Server password | |
| SQL_POOL_MAX | No | Max connections in pool | 10 |
| SQL_POOL_MIN | No | Min connections in pool | 0 |
| MCP_SERVER_NAME | No | Name of the MCP server | MSSQL Server |
| SQL_MAX_RETRIES | No | Max number of retries for initial connection attempts | 3 |
| MCP_SERVER_VERSION | No | Version of the MCP server | 1.0.0 |
| SQL_MAX_RETRY_DELAY | No | Maximum delay (ms) for connection retries (uses exponential backoff) | 30000 |
| SQL_REQUEST_TIMEOUT | No | Request timeout for queries (ms) | 30000 |
| SQL_SCHEMA_CACHE_TTL | No | Time-To-Live for schema cache (ms) | 300000 |
| SQL_ALLOWED_DATABASES | No | Comma-separated list of databases the server is allowed to access. If empty, access is less restricted (relies on DB user permissions). | |
| SQL_POOL_IDLE_TIMEOUT | No | Idle timeout for connections in pool (ms) | 30000 |
| SQL_TRUST_SERVER_CERT | No | Trust server certificate (set to 'false' to disable) | true |
| SQL_CONNECTION_TIMEOUT | No | Connection timeout (ms) | 30000 |
| SQL_INITIAL_RETRY_DELAY | No | Initial delay (ms) before retrying a failed connection | 1000 |
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
| Name | Description |
|---|---|
No tools | |
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/JubinSaniei/mcp-mssql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server