Back to Home
ConnorBritain icon

mssql-mcp-server

Verified Safe

by ConnorBritain

Overview

Provides an enterprise-grade Model Context Protocol server for Microsoft SQL Server, enabling schema discovery, data operations, profiling, and administration with strong governance controls.

Installation

Run Command
npx @connorbritain/mssql-mcp-server@latest

Environment Variables

  • SERVER_NAME
  • DATABASE_NAME
  • SQL_AUTH_MODE
  • SQL_USERNAME
  • SQL_PASSWORD
  • SQL_DOMAIN
  • SQL_PORT
  • TRUST_SERVER_CERTIFICATE
  • CONNECTION_TIMEOUT
  • READONLY
  • MAX_ROWS_DEFAULT
  • REQUIRE_MUTATION_CONFIRMATION
  • ENVIRONMENTS_CONFIG_PATH
  • SCRIPTS_PATH
  • AUDIT_LOG_PATH
  • AUDIT_LOGGING
  • AUDIT_REDACT_SENSITIVE
  • PROFILE_SAMPLE_SIZE_DEFAULT
  • PROFILE_SAMPLE_RETURN_LIMIT
  • SEARCH_SCHEMA_DEFAULT_LIMIT

Security Notes

The server implements extensive security measures including strict input validation, parameterized queries for all data modification and script execution, and comprehensive SQL injection prevention in 'read_data' (blocking dangerous keywords/patterns, multi-statement queries, obfuscation attempts). Mandatory preview/confirmation steps are required for data mutations ('update_data', 'delete_data') with configurable row limits. Secrets are managed via environment variables and placeholders, with explicit instructions against hardcoding. Centralized policy enforcement (allowed/denied tools, read-only modes, approval requirements, schema/database access control) and robust audit logging with sensitive data redaction further enhance security. No use of 'eval' or similar dangerous functions was found. Error handling avoids exposing internal system details unnecessarily.

Similar Servers

Stats

Interest Score33
Security Score9
Cost ClassMedium
Avg Tokens500
Stars1
Forks1
Last Update2025-12-08

Tags

mcpsql-servermssqldatabaseai