Sql Server Mcp MCP Server

A comprehensive Model Context Protocol (MCP) server for SQL Server database operations. This server provides 10 powerful tools for database analysis, object discovery, and data manipulation through…

Local serverstdioMIT

What is the Sql Server Mcp Server?

Sql Server Mcp is an MCP project maintained in the hendrickcastro/mcpql repository. The maintainer describes its purpose as “A comprehensive Model Context Protocol (MCP) server for SQL Server database operations. This server provides 10 powerful tools for database analysis, object discovery, and data…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using npx. 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_AUTHENTICATION_TYPE, DB_SERVER, DB_NAME, DB_USER, DB_PASSWORD, DB_PORT, DB_ENCRYPT, DB_TRUST_SERVER_CERTIFICATE. 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": {
    "mcpql": {
      "command": "npx",
      "args": [
        "-y",
        "hendrickcastro/mcpql"
      ],
      "env": {
        "DB_AUTHENTICATION_TYPE": "sql",
        "DB_SERVER": "your_server",
        "DB_NAME": "your_database",
        "DB_USER": "your_username",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_PORT": "1433",
        "DB_ENCRYPT": "false",
        "DB_TRUST_SERVER_CERTIFICATE": "true"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
DB_AUTHENTICATION_TYPEDeclared in the maintainer’s client configuration.Check documentation
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
DB_ENCRYPTDeclared in the maintainer’s client configuration.Check documentation
DB_TRUST_SERVER_CERTIFICATEDeclared in the maintainer’s client configuration.Check documentation