What is MsSqlMCP?
MsSqlMCP is an MCP Server for SQL Server database schema inspection and read-only query execution. It provides safe, validated SELECT-only SQL access and schema discovery for use with MCP clients like VS Code Copilot and Claude Desktop.
How to use MsSqlMCP?
Configure the SQL Server connection string in appsettings.json, then run dotnet run for console mode. For HTTP transport, use dotnet run -- --http-only. The server supports both stdio and HTTP/SSE protocols for integration with MCP clients.
Key features of MsSqlMCP
- Read-only access: blocks all data modification statements.
- Schema discovery: tables, columns, relationships, stored procedures.
- Safe SQL execution: only SELECT queries allowed.
- Dual transport: stdio and HTTP/SSE protocols.
- Windows Service support for production deployments.
- Compatible with VS Code Copilot and Claude Desktop.
Use cases of MsSqlMCP
- Inspect database schema from AI-powered code editors.
- Execute read-only queries safely through chat interfaces.
- Integrate SQL Server data with MCP-compatible automation tools.
- Deploy as a Windows Service for enterprise database monitoring.
Comments