Mssql

•
1
•

Query, inspect, and troubleshoot Microsoft SQL Server instances from MCP clients.

This tool serves as a Microsoft SQL Server MCP (Model Context Protocol) server, enabling AI agents and MCP clients like Cursor, Claude Code, and Codex to query, inspect, and troubleshoot any SQL Server instance. It establishes connections via ODBC, dynamically eliciting and caching per-caller credentials in server memory with an idle TTL, ensuring no passwords are ever logged or persisted to disk. It provides a robust set of tools for managing SQL Server sessions, executing SQL statements with output in table, JSON, or CSV formats, and generating estimated or actual Showplan XML execution plans.

主な機能

01Provide permission-scoped access to SQL Server instances based on the caller's login
021 GitHub stars
03Execute SQL queries with results available in table, JSON, or CSV formats
04Ensure zero sensitive secrets on disk by storing credentials in server memory with an idle TTL
05Securely manage SQL Server sessions with dynamic, per-caller credential elicitation
06Generate estimated or actual Showplan XML execution plans for SQL queries

ユースケース

01Identify and resolve database blocking issues on SQL Server instances
02Discover database objects like large tables or stored procedures referencing specific tables
03Analyze SQL query execution plans and suggest potential index improvements