This .NET-based Model Context Protocol (MCP) server provides AI assistants with secure, read-only interaction capabilities for SQL Server databases. It ensures data integrity and prevents unauthorized modifications through advanced AST-level query validation, eliminating vulnerabilities from common bypass techniques. Beyond basic data retrieval, the server offers extensive tooling for schema understanding, ER diagram generation, query plan analysis, and integrates optional, robust DBA diagnostic kits for deeper insights into database performance and health.
主要功能
010 GitHub stars
02Read-only by design with AST-based query validation to prevent write operations and injections.
03Supports multiple named SQL Server connections for comprehensive database access.
04Integrates optional DBA diagnostic toolkits like First Responder Kit, DarlingData, and sp_WhoIsActive.
05Generates PlantUML ER diagrams and Markdown table documentation with smart cardinality detection.
06Analyzes query performance with estimated or actual XML execution plans.
使用案例
01Enabling AI to assist with SQL Server database schema understanding, documentation, and ER diagram generation.
02Allowing AI to perform performance diagnostics and troubleshooting using integrated DBA tools like `sp_blitz` and `sp_whoisactive`.
03Providing AI assistants with secure, read-only access to SQL Server data for information retrieval.