Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Microsoft SQL Server (MSSQL)

FreeNot checked

Securely integrates with Microsoft SQL Server databases for data analysis, reporting, and management.

GitHubEmbed

About

Securely integrates with Microsoft SQL Server databases for data analysis, reporting, and management.

README

PyPI License: MIT

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

Quick Start

Install with 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"
      }
    }
  }
}

Configuration

Basic SQL Authentication

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

Windows Authentication

MSSQL_SERVER=localhost
MSSQL_DATABASE=your_database
MSSQL_WINDOWS_AUTH=true         # Use Windows credentials

Azure SQL Database

MSSQL_SERVER=your-server.database.windows.net
MSSQL_DATABASE=your_database
MSSQL_USER=your_username
MSSQL_PASSWORD=your_password
# Encryption is automatic for Azure

Optional Settings

MSSQL_PORT=1433                 # Custom port (default: 1433)
MSSQL_ENCRYPT=true              # Force encryption

Alternative Installation Methods

Using pip

pip install microsoft_sql_server_mcp

Then in claude_desktop_config.json:

{
  "mcpServers": {
    "mssql": {
      "command": "python",
      "args": ["-m", "mssql_mcp_server"],
      "env": { ... }
    }
  }
}

Development

git clone https://github.com/RichardHan/mssql_mcp_server.git
cd mssql_mcp_server
pip install -e .

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

from github.com/richardhan/mssql_mcp_server

Installing Microsoft SQL Server (MSSQL)

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/richardhan/mssql_mcp_server

FAQ

Is Microsoft SQL Server (MSSQL) MCP free?

Yes, Microsoft SQL Server (MSSQL) MCP is free — one-click install via Unyly at no cost.

Does Microsoft SQL Server (MSSQL) need an API key?

No, Microsoft SQL Server (MSSQL) runs without API keys or environment variables.

Is Microsoft SQL Server (MSSQL) hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Microsoft SQL Server (MSSQL) in Claude Desktop, Claude Code or Cursor?

Open Microsoft SQL Server (MSSQL) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Microsoft SQL Server (MSSQL) with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All data MCPs