MCP MS SQL Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_TYPE | Yes | Database type, must be 'mssql' | |
| MSSQL_PORT | No | SQL Server port, default 1433 | |
| MSSQL_USER | Yes | Database username | |
| MSSQL_SERVER | Yes | SQL Server address, e.g. tcp:your-server.database.windows.net | |
| MSSQL_ENCRYPT | No | Encrypt connection, default true | |
| QUERY_TIMEOUT | No | Query timeout in milliseconds, default 30000 | |
| MSSQL_DATABASE | Yes | Database name | |
| MSSQL_PASSWORD | Yes | Database password | |
| CONNECTION_POOL_MAX | No | Maximum connection pool size, default 10 | |
| CONNECTION_POOL_MIN | No | Minimum connection pool size, default 1 | |
| ALLOW_DELETE_OPERATION | No | Allow delete operations, default false | |
| ALLOW_INSERT_OPERATION | No | Allow insert operations, default false | |
| ALLOW_UPDATE_OPERATION | No | Allow update operations, default false | |
| ALLOW_WRITE_OPERATIONS | No | Allow write operations globally, default false | |
| MSSQL_TRUST_SERVER_CERTIFICATE | No | Trust server certificate, default true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sql_queryC | Execute a SQL query on the MS SQL Server database |
| get_database_infoA | Get information about the database server and available databases |
| show_tablesB | Show all tables in the current database |
| describe_tableC | Get detailed information about a table's structure |
| show_indexesC | Show indexes for a table or all tables |
| generate_analysis_notebookC | Generate a Jupyter notebook with Python code to analyze SQL query results |
| generate_visualizationB | Generate visualizations (bar, scatter, pie, line, heatmap, table) from SQL query results |
| generate_powerbi_visualizationC | Generate Power BI compatible data and visualization metadata |
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
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/SerenaHangSinclair/mcp-mssql-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server