🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@connorbritain/mssql-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connorbritain/mssql-mcp-server

Model Context Protocol (MCP) server for Microsoft SQL Server - enterprise-ready schema discovery, profiling, and safe data operations

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
694
13.03%
Maintainers
1
Weekly downloads
 
Created
Source

MSSQL MCP Server

License: MIT

Enterprise-grade Model Context Protocol server for Microsoft SQL Server.

Production-ready MCP server with 20 tools for schema discovery, data operations, profiling, and administration. Full governance controls for enterprise environments.

Package Tiers

PackageToolsUse Case
@connorbritain/mssql-mcp-reader14 read-onlyAnalysts, auditors
@connorbritain/mssql-mcp-writer17 (reader + data ops)Data engineers
@connorbritain/mssql-mcp-server (this)20 (all tools)DBAs, full admin

Tools

CategoryTools
Discoverysearch_schema, describe_table, list_table, list_databases, list_environments
Profilingprofile_table, inspect_relationships, inspect_dependencies, explain_query
Dataread_data, insert_data, update_data, delete_data
DDLcreate_table, create_index, drop_table
Scriptslist_scripts, run_script
Operationstest_connection, validate_environment_config

Config Builder — Visual wizard to generate your mcp_config.json and environments.json files.

Install

npm install -g @connorbritain/mssql-mcp-server@latest

MCP Client Config

{
  "mcpServers": {
    "mssql": {
      "command": "npx",
      "args": ["@connorbritain/mssql-mcp-server@latest"],
      "env": {
        "SERVER_NAME": "127.0.0.1",
        "DATABASE_NAME": "mydb",
        "SQL_AUTH_MODE": "sql",
        "SQL_USERNAME": "sa",
        "SQL_PASSWORD": "YourPassword123"
      }
    }
  }
}

Configuration

VariableRequiredNotes
SERVER_NAMEYesSQL Server hostname/IP
DATABASE_NAMEYesTarget database
SQL_AUTH_MODEsql, windows, or aad (default: aad)
SQL_USERNAME / SQL_PASSWORDRequired for sql/windows modes
READONLYtrue disables write tools
ENVIRONMENTS_CONFIG_PATHMulti-environment JSON config
SCRIPTS_PATHNamed SQL scripts directory

Features

  • Multi-environment support - Named environments with per-environment policies
  • Governance controls - allowedTools, deniedTools, allowedSchemas, deniedSchemas
  • Audit logging - JSON Lines with session IDs and auto-redaction
  • Secret management - ${secret:NAME} placeholders
  • Safe mutations - Preview/confirm for UPDATE and DELETE

Documentation

Full docs: github.com/ConnorBritain/mssql-mcp-server

Keywords

mcp

FAQs

Package last updated on 29 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts