sql-server-mcp MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with SQL Server database access capabilities.

Local serverstdio

What is the sql-server-mcp Server?

sql-server-mcp is an MCP project maintained in the nebhg/sql-server-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides AI assistants with SQL Server database access capabilities”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares SQL_SERVER_HOST, SQL_SERVER_DATABASE, SQL_SERVER_USERNAME, SQL_SERVER_PASSWORD, SQL_SERVER_PORT. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the sql-server-mcp Server

{
  "mcpServers": {
    "sql-server": {
      "command": "python",
      "args": [
        "-m",
        "sql_server_mcp.server"
      ],
      "cwd": "C:\\Users\\benha\\Desktop\\sql-server-mcp",
      "env": {
        "SQL_SERVER_HOST": "192.168.1.117",
        "SQL_SERVER_DATABASE": "EM_Data",
        "SQL_SERVER_USERNAME": "benhg",
        "SQL_SERVER_PASSWORD": "YOUR_SQL_SERVER_PASSWORD",
        "SQL_SERVER_PORT": "1433"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
SQL_SERVER_HOSTDeclared in the maintainer’s client configuration.Check documentation
SQL_SERVER_DATABASEDeclared in the maintainer’s client configuration.Check documentation
SQL_SERVER_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
SQL_SERVER_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
SQL_SERVER_PORTDeclared in the maintainer’s client configuration.Check documentation