
Microsoft SQL Server
The Mssql_mcp_server provides Claude Desktop with secure access to Microsoft SQL Server databases through tools for listing tables and executing SQL queries (SELECT, INSERT, UPDATE, DELETE). It supports multiple authentication methods including SQL authentication, Windows authentication, and Azure AD, while accommodating LocalDB, on-premises, and Azure SQL deployments with configurable ports and encryption options. This server solves the problem of enabling AI assistants to directly query and manipulate SQL Server databases in a controlled, secure manner.
- GitHub stars
- 345
- tools
- 2
- last updated
- Dec 15, 2025
Tools
2 toolsPublic tool metadata for what this MCP can expose to an agent.
queryRead-only tool that accepts a single SELECT / WITH / set-operation statement (default mode).
Read-only tool that accepts a single SELECT / WITH / set-operation statement (default mode).
No parameter schema in public metadata yet.
execute_sqlExposed when MSSQL_ALLOW_WRITES=1 is set, allowing INSERT/UPDATE/DELETE writes.
Exposed when MSSQL_ALLOW_WRITES=1 is set, allowing INSERT/UPDATE/DELETE writes.
No parameter schema in public metadata yet.
Sponsors
Readme
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 (read-only by default; optional write mode)
- π Multiple authentication methods (SQL, Windows, Azure AD)
- π’ LocalDB and Azure SQL support
- π Custom port configuration
Quick Start
Install with Claude Desktop
Add to your claude_desktop_config.json:
Details
- Repository
- github.com/richardhan/mssql_mcp_server
- Categories
- Databases, Security & Pentesting