Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A configurable Model Context Protocol (MCP) server for Microsoft SQL Server integration with Claude Code, supporting project-based database access with secure read/write operations.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Manage databases & data.
MCP server for interacting with MySQL databases with write operations support
Same catalog task: Manage databases & data.
MCP server for DBX — query databases from Claude Code, Cursor, and other AI agents
Same catalog task: Manage databases & data.
Enhanced PostgreSQL MCP server with read and write capabilities. Based on @modelcontextprotocol/server-postgres by Anthropic.
GitHub checked 835h ago - refresh overdue
A configurable Model Context Protocol (MCP) server for Microsoft SQL Server integration with Claude Code and other MCP clients. Enables AI assistants to securely interact with SQL Server databases through project-based configurations with full read/write capabilities.
# Clone the repository
git clone https://github.com/yourusername/mcp-ms-sql-server.git
cd mcp-ms-sql-server
# Build the project
dotnet build -c Release
Create a configuration file for your project in the Configurations/ directory:
// Configurations/my-project.json
{
"name": "My E-Commerce Project",
"connectionString": "Server=localhost;Database=ECommerceDB;Integrated Security=true;",
"allowedSchema": "dbo",
"permissions": {
"allowRead": true,
"allowWrite": true,
"allowDelete": false
},
"security": {
"requireWhereClause": true,
"maxRowsPerQuery": 1000,
"auditOperations": true
}
}
Add to your Claude Desktop configuration:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"sql-server": {
"type": "stdio",
"command": "C:\\Git\\mcp-ms-sql-server\\McpMsSqlServer\\bin\\Release\\net9.0\\McpMsSqlServer.exe",
"env": {
"MCP_CONFIG_NAME": "my-project"
}
}
}
}
Note: First build the project with dotnet build -c Release to create the executable.
In Claude Desktop, you can now ask:
{
"name": "Project Display Name",
"connectionString": "Your SQL Server connection string",
"allowedSchema": "schema_name",
"permissions": {
"allowRead": true,
"allowWrite": true,
"allowDelete": false,
"allowSchemaChanges": false
},
"security": {
"requireWhereClause": true,
"maxRowsPerQuery": 1000,
"maxRowsPerUpdate": 100,
"maxRowsPerDelete": 10,
"auditOperations": true
},
"querySettings": {
"timeoutSeconds": 30,
"enableQueryPlan": false,
"allowJoins": true,
"allowSubqueries": true
},
"restrictedTables": ["sensitive_table", "audit_log"],
"allowedOperations": ["SELECT", "INSERT", "UPDATE", "DELETE"]
}
{
"name": "Development Database",
"connectionString": "Server=dev-server;Database=DevDB;Integrated Security=true;",
"allowedSchema": "dbo",
"permissions": {
"allowRead": true,
"allowWrite": true,
"allowDelete": true,
"allowSchemaChanges": true
},
"security": {
"requireWhereClause": false,
"maxRowsPerQuery": 5000,
"auditOperations": false
}
}
{
"name": "Production Database",
"connectionString": "Server=prod-server;Database=ProdDB;User Id=app_user;Password=secure_password;",
"allowedSchema": "app",
"permissions": {
"allowRead": true,
"allowWrite": true,
"allowDelete": false,
"allowSchemaChanges": false
},
"security": {
"requireWhereClause": true,
"maxRowsPerQuery": 100,
"maxRowsPerUpdate": 10,
"auditOperations": true
},
"restrictedTables": ["user_passwords", "payment_info"]
}
restrictedTables configuration# Use environment variables for sensitive data
export DB_PASSWORD="your_secure_password"
{
"connectionString": "Server=myserver;Database=mydb;User Id=myuser;Password=${DB_PASSWORD};"
}
We welcome contributions! Please see our Contributing Guide for details.
# Clone the repo
git clone https://github.com/yourusername/mcp-ms-sql-server.git
cd mcp-ms-sql-server
# Install dependencies
dotnet restore
# Run tests
dotnet test
# Build and test
dotnet build -c Release
Connection Failed
# Test your connection string
dotnet run -- --test-connection --config your-project
Permission Denied
allowedSchema configurationConfiguration Not Found
Configurations/MCP_CONFIG_NAME environment variableThis project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the MCP and AI development community
Loading reviews...
GitHub checked 835h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.