An MCP server for SQL Server that provides Extended Events session management, event capture and analysis, diagnostics, and basic database operations. It connects natively to SQL Server via Microsoft.Data.SqlClient and supports querying wait stats, deadlocks, blocking, and real-time event streams.
From the registry: SQL Server monitoring and diagnostics for AI agents using Extended Events. No ODBC drivers required.
$ docker --versionhttps://docs.docker.com/get-docker/$ dotnet --versionhttps://dotnet.microsoft.com/download/dotnet/9.0Please install the `sql-sentinel` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **SQL Server 2012+ with Extended Events** — SQL Server with appropriate permissions: GRANT ALTER ANY EVENT SESSION and GRANT VIEW SERVER STATE
Optional prerequisites:
- Docker — Docker required for the recommended installation method Run: `docker --version` (https://docs.docker.com/get-docker/)
- .NET 9 SDK (alternative install) — Required for dotnet global tool install Run: `dotnet --version` (https://dotnet.microsoft.com/download/dotnet/9.0)
Canonical MCP server config (stdio transport):
- command: `docker`
- args: ["run","-i","--rm","--network","host","-e","SQL_SENTINEL_CONNECTION_STRING=<connection_string>","ghcr.io/tkmawarire/sql-sentinel-mcp:latest"]
- required environment variables:
- `SQL_SENTINEL_CONNECTION_STRING`: SQL Server connection string (example: `Server=localhost;Database=master;User Id=sa;Password=<password>;TrustServerCertificate=true`)
Note: SQL Server monitoring MCP with 24 tools: Extended Events session management, deadlock detection, blocking analysis, wait stats, health checks, and database CRUD. Alternative install: dotnet tool install -g Neofenyx.SqlSentinel.Mcp then use command 'sql-sentinel-mcp'.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.SQL_SENTINEL_CONNECTION_STRINGrequiredSQL Server connection string used by all tools to connect to the databaseMCP server for interacting with the Supabase platform