SQL Server MCP

v3.3.0
io.github.cvelasquez/mcp-sqlserver Checked 43 minutes ago Published 1 month ago

MCP 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

ParameterTypeDescription
connection *stringConnection name to use
sql *stringSQL query to execute
formatstringOutput 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.
maxRowsintegerMaximum 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

ParameterTypeDescription
connection *stringConnection name to use
tablestringTable name (optional, returns all if not specified)

get_indexes

Get index information for a table

ParameterTypeDescription
connection *stringConnection name to use
table *stringTable name

get_execution_plan

Get execution plan for a query

ParameterTypeDescription
connection *stringConnection name to use
sql *stringSQL query to analyze

get_stored_procedure

Get stored procedure definition

ParameterTypeDescription
connection *stringConnection name to use
name *stringStored procedure name