mssql_mcp_server  by RichardHan

Secure SQL Server interaction for AI assistants

Created 10 months ago
254 stars

Top 99.1% on SourcePulse

GitHubView on GitHub
Project Summary

A Model Context Protocol (MCP) server for Microsoft SQL Server, this project enables AI assistants to securely interact with databases. It provides a controlled interface for listing tables, reading data, and executing SQL queries (SELECT, INSERT, UPDATE, DELETE), enhancing security and structure for AI-driven database operations.

How It Works

The server acts as a secure intermediary, translating AI requests into SQL commands. It supports various authentication methods, including SQL, Windows, and Azure AD, and is compatible with both LocalDB and Azure SQL Database instances. This abstraction layer allows AI assistants to perform database operations safely without direct, broad access.

Quick Start & Requirements

Installation can be performed using pip: pip install microsoft_sql_server_mcp. The server is then configured within claude_desktop_config.json using environment variables for connection details such as MSSQL_SERVER, MSSQL_DATABASE, MSSQL_USER, MSSQL_PASSWORD, or by setting MSSQL_WINDOWS_AUTH=true. Azure SQL Database and custom ports are also supported. Development requires cloning the repository and installing dependencies.

Highlighted Details

  • Supports SQL, Windows, and Azure AD authentication methods.
  • Compatible with Microsoft SQL Server, LocalDB, and Azure SQL Database.
  • Enables AI assistants to list tables, read data, and execute INSERT, UPDATE, DELETE, and SELECT queries.
  • Offers optional custom port configuration and forced encryption.

Maintenance & Community

No specific details regarding maintainers, community channels, or project roadmap are present in the provided README.

Licensing & Compatibility

The project is licensed under the MIT License, which is permissive and generally allows for commercial use and integration into closed-source applications.

Limitations & Caveats

The README emphasizes security best practices, recommending dedicated SQL users with minimal permissions and the use of Windows Authentication or encryption for sensitive data. The primary integration target appears to be Claude Desktop.

Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
5
Star History
14 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.