Back to Home
jdlemes icon

MsSqlMCP

Verified Safe

by jdlemes

Overview

Provides an MCP Server for SQL Server database schema inspection and safe, read-only query execution to AI clients.

Installation

Run Command
dotnet run

Security Notes

The project places a strong emphasis on security by implementing a ReadOnlySqlQueryValidator that blocks 27 common keywords associated with DML, DDL, DCL, and execution commands (e.g., INSERT, UPDATE, DELETE, DROP, EXEC). This validation is backed by 42 dedicated security tests. Connection strings are externalized in 'appsettings.json', preventing hardcoded secrets directly in the codebase. As long as the 'appsettings.json' is securely managed on the host, the application itself is designed to prevent malicious SQL operations.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassLow
Avg Tokens250
Stars4
Forks0
Last Update2025-11-28

Tags

SQL ServerDatabaseSchema InspectionRead-OnlyMCP Protocol.NET