Mssql MCP Server

MSSQL MCP Server is a **Model Context Protocol (MCP) server** that enables secure and structured interaction with **Microsoft SQL Server (MSSQL)**

Local serverstdioPython

What is the Mssql MCP Server?

Mssql mcp server connects Mssql to AI assistants that speak the Model Context Protocol. MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to: - List available tables - Read table contents - Execute SQL queries with controlled access.

What Mssql does

MSSQL MCP Server is a Model Context Protocol (MCP) server that enables secure and structured interaction with Microsoft SQL Server (MSSQL) databases. It allows AI assistants to: - List available tables - Read table contents - Execute SQL queries with controlled access

Key capabilities

  • Secure MSSQL Database Access — through environment variables
  • Controlled Query Execution — with error handling
  • Table Listing & Data Retrieval —
  • Comprehensive Logging — for monitoring queries and operations

Practical notes

  • Maintained by JexinSam, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_tablesList all tables in the database
query_sqlExecute read-only SELECT queries
execute_sqlExecute any SQL statement (SELECT, INSERT, UPDATE, DELETE, DDL)

How to install the Mssql MCP Server

{
  "mcpServers": {
    "mssql": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/mssql_mcp_server",
        "run",
        "mssql_mcp_server"
      ],
      "env": {
        "MSSQL_HOST": "localhost",
        "MSSQL_USER": "your_username",
        "MSSQL_PASSWORD": "YOUR_MSSQL_PASSWORD",
        "MSSQL_DATABASE": "your_database"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MSSQL_HOSTDeclared in the maintainer’s client configuration.Check documentation
MSSQL_USERDeclared in the maintainer’s client configuration.Check documentation
MSSQL_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
MSSQL_DATABASEDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

MSSQL MCP Server is a **Model Context Protocol (MCP) server** that enables secure and structured interaction with **Microsoft SQL Server (MSSQL)** databases. It Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.