MCP-SqlServer
A MCP Server implementation in C# for LLM integration with SQL Server tested with Claude Desktop
Links
README
From the repo.
MCP-SqlServer
A MCP Server (STDIO) implementation in C# for LLM integration with SQL Server tested with Claude Desktop
The server register logs into a mcp_server.log file
Caution, the LLM can modify your database
Tools
List of tools provided to the LLM
- HealthCheck: Tests if the Microsoft SQL Server Database connection is good and alive.
- GetSchema: Get a list of all tables with their respective schema, columns and types.
- Query: Execute a query into the Microsoft SQL Server database and return the result as a JSON.
Setup with Claude
- Fill the env.database with the connection string from your SQL Server
- Compile the project
- In the Claude Destkop Go File->Configurations->Developer and edit the MCP configuration (claude_desktop_config.json)
- Paste the json as:
{
"mcpServers": {
"database": {
"command": "dotnet",
"args": [
"run",
"--project",
"C:\\Users\\{USER}\\Desktop\\MCP-SqlServer",
"--no-build"
]
}
}
}
- Restart Claude Desktop
Testing
Open Claude Desktop and if everything is configured well you should be able to see this
Click on the icon and you should be able to see the tools
Asking for connection check
Asking for schema/table informations
Asking for read query
Asking for modifications
Collected info
- ★ 17 stars
- ⎇ 3 forks
- Language: C#
- Source updated: 9/19/2026
Config for your environment
Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.
Tool
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "{MCP_ENDPOINT_URL}"
}
}
}Paste into mcpServers in the config file. Restart Cursor after saving.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.