A Model Context Protocol server that gives Claude deep visibility into SQL Server. Query your databases, diagnose performance problems, inspect locks and transactions, and explore schema — all through natural language.
{
"mcpServers": {
"sql-server-mcp": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol server that gives Claude deep visibility into SQL Server. Query your databases, diagnose performance problems, inspect locks and transactions, and explore schema — all through natural language.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 0 days ago.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for SQL Server MCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol server that gives Claude deep visibility into SQL Server. Query your databases, diagnose performance problems, inspect locks and transactions, and explore schema — all through natural language.
Built with .NET 8 and Microsoft.Data.SqlClient. Communicates over stdio so it works with Claude Desktop, Claude Code, and any MCP-compatible client.
CREATE INDEX statements, find unused indexes, measure fragmentation with rebuild/reorganize recommendations| Tool | Description |
|---|---|
| execute_query | Execute T-SQL and return results as JSON. SELECT returns rows; DML returns rows affected. |
| get_estimated_plan | Return the XML execution plan without running the query (SET SHOWPLAN_XML ON). Safe for production — no locks, no data read. |
| get_actual_plan | Execute a query and capture the actual runtime XML plan alongside results (SET STATISTICS XML ON). |
| Tool | Description |
|---|---|
| get_running_queries | List executing requests with elapsed time, wait type, blocking session, CPU, logical reads, full SQL text, current statement, and live query plan XML. |
| get_session_detail | Full detail for a single session: isolation level, open transactions, memory, tempdb usage, connection info, and current SQL. |
| kill_session | Kill a session (SPID) or check rollback progress with WITH STATUSONLY. |
| Tool | Description |
|---|---|
| get_locks | All current locks with resource type, mode, status, and owning session info. Filter by database. |
| get_blocking_chains | Recursive blocking hierarchy showing root blockers and all dependent blocked sessions with chain_path (e.g. 52 -> 67 -> 91). |
| Tool | Description |
|---|---|
| get_open_transactions | All open transactions with age, isolation level, log bytes used, and current SQL. Filter by minimum age. |
| get_transaction_locks | All locks held by a specific transaction ID. |
| Tool | Description |
|---|---|
| list_databases | All online databases with size, state, recovery model, and compatibility level. |
| list_tables | Tables in a database with estimated row counts and space usage. |
| get_table_schema | Full table schema: columns with types/defaults/nullability, PK and unique constraints, and foreign keys. |
| list_indexes | Indexes on a table or all tables, with key columns, included columns, and properties. |
| list_stored_procs | Stored procedures with execution count, last run time, and cumulative CPU from the plan cache. |
| list_views | Views, flagging which are indexed (materialized). |
| get_object_definition | Source T-SQL for a stored procedure, view, function, or trigger. |
| Tool | Description |
|---|---|
| get_missing_indexes | Missing index recommendations from DMVs, ranked by impact score, with ready-to-run CREATE INDEX statements. |
| get_index_usage_stats | Per-index seeks, scans, lookups, and updates since last restart. Find unused indexes wasting