SQL Server MCP
v3.3.0MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_connections
List all available SQL Server connections grouped by connectionGroup
reload_connections
Reload connections from connections.json file without restarting the MCP server. Closes existing connection pools and loads new configuration.
query
Execute a SQL query on the database
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name to use |
sql * | string | SQL query to execute |
format | string | Output format (default json). csv is far more compact for wide or long results: the first line is a JSON header with metadata, then the rows as CSV. |
maxRows | integer | Maximum rows to return across all result sets (default 1000, max 10000). When the cap is hit the query is cancelled on the server and the response starts with truncated: true. A truncated result is in… |
get_schema
Get database schema information for specific tables
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name to use |
table | string | Table name (optional, returns all if not specified) |
get_indexes
Get index information for a table
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name to use |
table * | string | Table name |
get_execution_plan
Get execution plan for a query
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name to use |
sql * | string | SQL query to analyze |
get_stored_procedure
Get stored procedure definition
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name to use |
name * | string | Stored procedure name |