MS SQL Server MCP Server

🚀 Model Context Protocol (MCP) server for Microsoft SQL Server - compatible with Claude Desktop, Cursor, Windsurf and VS Code.

Local serverstdioMIT

What is the MS SQL Server MCP Server?

MS SQL Server MCP Server is an MCP project maintained in the bymcs/mssql-mcp repository. The maintainer describes its purpose as “🚀 Model Context Protocol (MCP) server for Microsoft SQL Server - compatible with Claude Desktop, Cursor, Windsurf and VS Code”. Read the project documentation for the complete scope.

Installation

The documented npm package is mssql-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares DB_SERVER, DB_DATABASE, DB_USER, DB_PASSWORD, 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.

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
mssql_connect_databaseNo
mssql_disconnect_databaseNo
mssql_connection_status✅
mssql_run_sql_query⚠️ No
mssql_list_schema_objects✅
mssql_describe_table_columns✅
mssql_read_table_rows✅
mssql_execute_stored_procedure⚠️ No
mssql_list_databases✅
mssql_execute_querymssql_run_sql_query
mssql_get_schemamssql_list_schema_objects
mssql_describe_tablemssql_describe_table_columns
mssql_get_table_datamssql_read_table_rows
mssql_execute_proceduremssql_execute_stored_procedure

How to install the MS SQL Server MCP Server

{
  "mcpServers": {
    "mssql": {
      "command": "npx",
      "args": [
        "-y",
        "mssql-mcp@latest"
      ],
      "env": {
        "DB_SERVER": "your-server.com",
        "DB_DATABASE": "your-database",
        "DB_USER": "your-username",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_ENCRYPT": "true",
        "DB_TRUST_SERVER_CERTIFICATE": "true"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
DB_SERVERDeclared in the maintainer’s client configuration.Check documentation
DB_DATABASEDeclared 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_ENCRYPTDeclared in the maintainer’s client configuration.Yes
DB_TRUST_SERVER_CERTIFICATEDeclared in the maintainer’s client configuration.Check documentation