MCP SQL Server

A Model Context Protocol (MCP) server that enables AI assistants like Claude to securely interact with SQL Server databases through local connections. This server provides tools for database…

Local serverstdioISC

What is the MCP SQL Server MCP Server?

MCP SQL Server is an MCP project maintained in the mkhan997733/mcp-server-sql repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that enables AI assistants like Claude to securely interact with SQL Server databases through local connections. This server provides…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. 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 DB_SERVER, DB_NAME, DB_USER, DB_PASSWORD, DB_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 MCP SQL Server MCP Server

{
  "mcpServers": {
    "sql-server": {
      "command": "node",
      "args": [
        "/absolute/path/to/mcp-server-sql/index.js"
      ],
      "env": {
        "DB_SERVER": "localhost",
        "DB_NAME": "your_database",
        "DB_USER": "your_username",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_PORT": "port"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
DB_SERVERDeclared in the maintainer’s client configuration.Check documentation
DB_NAMEDeclared in the maintainer’s client configuration.Check documentation
DB_USERDeclared in the maintainer’s client configuration.Check documentation
DB_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
DB_PORTDeclared in the maintainer’s client configuration.Check documentation