
Microsoft SQL Server
STDIOMCP server for secure Microsoft SQL Server database interaction and analysis
MCP server for secure Microsoft SQL Server database interaction and analysis
A Model Context Protocol (MCP) server for secure SQL Server database access through Claude Desktop.
Add to your claude_desktop_config.json
:
{ "mcpServers": { "mssql": { "command": "uvx", "args": ["microsoft_sql_server_mcp"], "env": { "MSSQL_SERVER": "localhost", "MSSQL_DATABASE": "your_database", "MSSQL_USER": "your_username", "MSSQL_PASSWORD": "your_password" } } } }
MSSQL_SERVER=localhost # Required MSSQL_DATABASE=your_database # Required MSSQL_USER=your_username # Required for SQL auth MSSQL_PASSWORD=your_password # Required for SQL auth
MSSQL_SERVER=localhost MSSQL_DATABASE=your_database MSSQL_WINDOWS_AUTH=true # Use Windows credentials
MSSQL_SERVER=your-server.database.windows.net MSSQL_DATABASE=your_database MSSQL_USER=your_username MSSQL_PASSWORD=your_password # Encryption is automatic for Azure
MSSQL_PORT=1433 # Custom port (default: 1433) MSSQL_ENCRYPT=true # Force encryption
pip install microsoft_sql_server_mcp
Then in claude_desktop_config.json
:
{ "mcpServers": { "mssql": { "command": "python", "args": ["-m", "mssql_mcp_server"], "env": { ... } } } }
git clone https://github.com/RichardHan/mssql_mcp_server.git cd mssql_mcp_server pip install -e .
MIT