Sign In

@connorbritain/mssql-mcp-writer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connorbritain/mssql-mcp-writer

MCP server for Microsoft SQL Server with read and data operations - no DDL/schema changes

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
408
508.96%
Maintainers
1
Weekly downloads
 
Created
Source

MSSQL MCP Writer

npm version License: MIT

Model Context Protocol server for Microsoft SQL Server with read and data operations.

Full data manipulation capabilities (INSERT, UPDATE, DELETE) with preview/confirm safeguards, but no DDL operations. Ideal for data engineers and ETL workflows where you need to modify data but want to prevent schema changes.

Architecture

This package is a thin wrapper around @connorbritain/mssql-mcp-core, which contains all shared logic, tools, and governance features. The wrapper selects the "writer" tier and delegates to the core's startMcpServer() function. This design enables:

  • Hard separation at the package level — regulated enterprises can guarantee that certain builds physically cannot perform destructive operations
  • Independent versioning — each tier can be published separately with its own release cycle
  • Clear audit trail"we only allow mssql-mcp-writer in staging" is a compile-time guarantee

The core library handles all SQL Server connections, tool dispatch, audit logging, and governance enforcement.

Package Tiers

PackagenpmToolsUse Case
mssql-mcp-reader@connorbritain/mssql-mcp-reader14 read-onlyAnalysts, auditors, safe exploration
mssql-mcp-writer (this)@connorbritain/mssql-mcp-writer17 (reader + data ops)Data engineers, ETL developers
mssql-mcp-server@connorbritain/mssql-mcp-server20 (all tools)DBAs, full admin access

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

Tools Included

CategoryTools
Discoverysearch_schema, describe_table, list_table, list_databases, list_environments
Profilingprofile_table, inspect_relationships, inspect_dependencies, explain_query
Data Readread_data (SELECT only)
Data Writeinsert_data, update_data, delete_data (with preview/confirm)
Scriptslist_scripts, run_script
Operationstest_connection, validate_environment_config

Not included: create_table, create_index, drop_table (DDL operations)

Quick Start

Install

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

MCP Client Configuration

{
  "mcpServers": {
    "mssql": {
      "command": "npx",
      "args": ["@connorbritain/mssql-mcp-writer@latest"],
      "env": {
        "SERVER_NAME": "127.0.0.1",
        "DATABASE_NAME": "mydb",
        "SQL_AUTH_MODE": "sql",
        "SQL_USERNAME": "app_user",
        "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_PATHPath to multi-environment JSON config
SCRIPTS_PATHPath to named SQL scripts directory
AUDIT_LOG_PATHCustom audit log path

Features

All packages in the MSSQL MCP family share:

  • Multi-environment support - Named database environments (prod, staging, dev) with per-environment policies
  • Governance controls - allowedTools, deniedTools, allowedSchemas, deniedSchemas, requireApproval
  • Audit logging - JSON Lines logs with session IDs and auto-redaction
  • Secret management - ${secret:NAME} placeholders for secure credential handling
  • Named SQL scripts - Pre-approved parameterized queries with governance controls
  • Preview/confirm for mutations - update_data and delete_data show affected rows before execution

Documentation

Full documentation, configuration examples, and governance details are available in the main repository:

MSSQL MCP Server Documentation

License

MIT License. See LICENSE for details.

Repository: https://github.com/ConnorBritain/mssql-mcp-writer Issues: https://github.com/ConnorBritain/mssql-mcp-writer/issues npm: https://www.npmjs.com/package/@connorbritain/mssql-mcp-writer

Keywords

mcp

FAQs

Package last updated on 04 Aug 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