MS SQL Server MCP Server

A Model Context Protocol server that gives LLM agents safe, structured access to Microsoft SQL Server: schema inspection plus row-level CRUD, every operation parameterized and logged.

Local serverstdioMIT

What is the MS SQL Server MCP Server?

MS SQL Server MCP Server is an MCP project maintained in the terraco89/mcp-server-mssql repository. The maintainer describes its purpose as “A Model Context Protocol server that gives LLM agents safe, structured access to Microsoft SQL Server: schema inspection plus row-level CRUD, every operation parameterized and…”. 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 MSSQL_HOST, MSSQL_USER, MSSQL_PASSWORD, MSSQL_DATABASE. 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
list_tablesList all user tables in the configured database
get_table_schemaColumn names, types, nullability, and defaults for a table
read_table_rowsRead rows with optional column selection, WHERE filters, ORDER BY, and LIMIT
create_table_recordsInsert one or more rows (column/value validated against schema)
update_table_recordsUpdate rows matching a filter; returns affected count
delete_table_recordsDelete rows matching a filter; returns affected count

How to install the MS SQL Server MCP Server

{
  "mcpServers": {
    "mssql": {
      "command": "node",
      "args": [
        "/path/to/mcp-server-mssql/dist/server.js"
      ],
      "env": {
        "MSSQL_HOST": "localhost",
        "MSSQL_USER": "agent_reader",
        "MSSQL_PASSWORD": "YOUR_MSSQL_PASSWORD",
        "MSSQL_DATABASE": "MyDb"
      }
    }
  }
}

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.Yes