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 | 
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
| No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
| No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| No tools | |