
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

MsSqlMCP is a Model Context Protocol server that exposes SQL Server schema discovery and read-only SELECT query tools to MCP clients over stdio and HTTP/SSE.
MsSqlMCP: an MCP server for SQL Server inspection is cataloged as an MCP server attributed to jdlemes. MsSqlMCP is a Model Context Protocol server that exposes SQL Server schema discovery and read-only SELECT query tools to MCP clients over stdio and HTTP/SSE. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MsSqlMCP: an MCP server for SQL Server inspection are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It exposes GetTables, GetColumns, GetRelationships, GetStoreProcedure and ExecuteSql tools.
No; queries are validated to block data modification, and ExecuteSql allows only SELECT queries.
README.md · a80450420d64 · Fetched 2026-11-13 10:28:45 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
MCP Server for SQL Server database schema inspection and read-only query execution.
The project follows SOLID principles with dependency injection:
MsSqlMCP/
├── Program.cs # Entry point with DI and dual transport
├── SchemaTool.cs # MCP tool definitions
├── Interfaces/
│ ├── IConnectionFactory.cs # SQL connection abstraction
│ ├── IQueryExecutor.cs # Query execution abstraction
│ ├── ISchemaRepository.cs # Schema queries abstraction
│ └── ISqlQueryValidator.cs # Query validation abstraction
├── Services/
│ ├── SqlConnectionFactory.cs # Connection management
│ ├── SafeQueryExecutor.cs # Validated query execution
│ ├── SchemaRepository.cs # Schema query implementation
│ └── ReadOnlySqlQueryValidator.cs # Security validation (27 blocked keywords)
└── Tests/
└── ReadOnlySqlQueryValidatorTests.cs # 42 security tests
Edit appsettings.json:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=(local);Initial Catalog=YourDatabase;Encrypt=False;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Urls": "http://localhost:5000"
}
# Run with both stdio and HTTP transports
dotnet run
# Run with HTTP transport only (for debugging)
dotnet run -- --http-only
dotnet test --filter "FullyQualifiedName~Tests"
Add to your VS Code settings.json:
{
"mcp": {
"servers": {
"MsSqlMCP": {
"type": "stdio",
"command": "dotnet",
"args": ["run", "--project", "c:\\path\\to\\MsSqlMCP.csproj"]
}
}
}
}
First, start the server:
dotnet run -- --http-only
Then add to your VS Code settings.json:
{
"mcp": {
"servers": {
"MsSqlMCP": {
"type": "http",
"url": "http://localhost:5000/sse",
"autoApprove": [
"get_tables",
"get_columns",
"get_relationships",
"execute_sql",
"get_store_procedure"
]
}
}
}
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"MsSqlMCP": {
"command": "dotnet",
"args": ["run", "--project", "c:\\path\\to\\MsSqlMCP.csproj"]
}
}
}
| Tool | Description | Required Parameters |
|---|---|---|
GetTables | Get all table names in the database | None |
GetColumns | Get columns (fields) for a specific table | tableName |
GetRelationships | Get foreign key relationships between tables | None |
GetStoreProcedure | Get stored procedure definition | spName |
ExecuteSql | Execute a read-only SELECT query | sqlQuery |
All tools accept an optional databaseName parameter to query different databases in the same SQL Server instance.
The ExecuteSql tool only allows SELECT queries. The following statements are blocked:
On your development machine:
cd c:\path\to\MsSqlMCP
dotnet publish -c Release -r win-x64 --self-contained true
This creates files in: bin\Release\net10.0\win-x64\publish\
Copy the contents of the publish folder to the server:
Source: bin\Release\net10.0\win-x64\publish\*
Destination: C:\Services\MsSqlMCP\
Edit C:\Services\MsSqlMCP\appsettings.json with your SQL Server connection string:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=YOUR_SQL_SERVER;Initial Catalog=YOUR_DATABASE;Encrypt=False;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Urls": "http://localhost:5000"
}
Open PowerShell as Administrator and run:
# Create the Windows Service
sc.exe create MsSqlMCP binPath= "C:\Services\MsSqlMCP\MsSqlMCP.exe --http-only" start= auto DisplayName= "MsSql MCP Server"
# Add description
sc.exe description MsSqlMCP "Model Context Protocol server for SQL Server database inspection"
# Create logs directory
mkdir C:\Services\MsSqlMCP\logs -Force
# Start the service
net start MsSqlMCP
# Verify status
sc.exe query MsSqlMCP
# Check service status
Get-Service -Name MsSqlMCP
# Test the endpoint
Invoke-RestMethod -Uri "http://localhost:5000/sse/tools"
# Stop service
net stop MsSqlMCP
# Start service
net start MsSqlMCP
# Restart service
net stop MsSqlMCP; net start MsSqlMCP
# Uninstall service
net stop MsSqlMCP
sc.exe delete MsSqlMCP
# Allow inbound traffic on port 5000
New-NetFirewallRule -DisplayName "MsSqlMCP" -Direction Inbound -Port 5000 -Protocol TCP -Action Allow
When running in HTTP mode, the following endpoints are available:
| Endpoint | Method | Description |
|---|---|---|
/sse | GET | SSE stream for MCP protocol |
/sse/tools | GET | List all available tools |
/sse/invoke | POST | Invoke a tool |
curl -X POST http://localhost:5000/sse/invoke \
-H "Content-Type: application/json" \
-d '{"Tool": "GetTables", "Params": {}}'
Invoke-RestMethod -Uri "http://localhost:5000/sse/invoke" -Method POST -ContentType "application/json" -Body '{"Tool": "GetTables", "Params": {}}'
C:\Services\MsSqlMCP\logs\appsettings.jsonC:\Services\MsSqlMCP\MsSqlMCP.exe --http-onlyChange the port in appsettings.json:
{
"Urls": "http://localhost:5001"
}
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MsSqlMCP: an MCP server for SQL Server inspection from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mssqlmcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.