mssql-mcp-reader

ConnorBritain/mssql-mcp-reader

3.2

If you are the rightful owner of mssql-mcp-reader and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

MSSQL MCP Reader is a read-only Model Context Protocol server designed for safe schema discovery, profiling, and querying of Microsoft SQL Server databases without the risk of data modification.

Tools
5
Resources
0
Prompts
0

MSSQL MCP Reader

npm version License: MIT

Read-only Model Context Protocol server for Microsoft SQL Server.

Safe schema discovery, profiling, and querying with zero risk of data modification. Ideal for analysts, auditors, and anyone who needs database exploration without write access.

Package Tiers

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

Tools Included

CategoryTools
Discoverysearch_schema, describe_table, list_table, list_databases, list_environments
Profilingprofile_table, inspect_relationships, inspect_dependencies, explain_query
Queryingread_data (SELECT only)
Scriptslist_scripts, run_script (readonly scripts only)
Operationstest_connection, validate_environment_config

Not included: insert_data, update_data, delete_data, create_table, create_index, drop_table


Quick Start

Install

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

MCP Client Configuration

{
  "mcpServers": {
    "mssql": {
      "command": "npx",
      "args": ["@connorbritain/mssql-mcp-reader@latest"],
      "env": {
        "SERVER_NAME": "127.0.0.1",
        "DATABASE_NAME": "mydb",
        "SQL_AUTH_MODE": "sql",
        "SQL_USERNAME": "readonly_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
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

Documentation

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

MSSQL MCP Server Documentation


License

MIT License. See for details.


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