The Microsoft SQL Server MCP Server provides a secure interface to interact with SQL Server databases. With this server, you can:
Execute SQL queries against the configured database with proper error handling
List available SQL Server tables through appropriate system queries
Read table contents via SELECT statements
Secure database access through environment variables
Track operations with comprehensive logging
Benefit from automatic installation of required system dependencies
All operations are subject to the database user's permissions.
Microsoft SQL Server MCP Server
A Model Context Protocol (MCP) server for secure SQL Server database access through Claude Desktop.
Features
🔍 List database tables
📊 Execute SQL queries (SELECT, INSERT, UPDATE, DELETE)
🔐 Multiple authentication methods (SQL, Windows, Azure AD)
🏢 LocalDB and Azure SQL support
🔌 Custom port configuration
Related MCP server: SQLite MCP Server
Quick Start
Install with Claude Desktop
Add to your claude_desktop_config.json:
Configuration
Basic SQL Authentication
Windows Authentication
Azure SQL Database
Optional Settings
Alternative Installation Methods
Using pip
Then in claude_desktop_config.json:
Development
Security
Create a dedicated SQL user with minimal permissions
Never use admin/sa accounts
Use Windows Authentication when possible
Enable encryption for sensitive data
License
MIT