npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@connorbritain/mssql-mcp-reader

v0.1.0

Published

Read-only MCP server for Microsoft SQL Server - schema discovery, profiling, and safe querying without write operations

Readme

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

| Package | npm | Tools | Use Case | |---------|-----|-------|----------| | mssql-mcp-reader (this) | @connorbritain/mssql-mcp-reader | 14 read-only | Analysts, auditors, safe exploration | | mssql-mcp-writer | @connorbritain/mssql-mcp-writer | 17 (reader + data ops) | Data engineers, ETL developers | | mssql-mcp-server | @connorbritain/mssql-mcp-server | 20 (all tools) | DBAs, full admin access |


Tools Included

| Category | Tools | |----------|-------| | Discovery | search_schema, describe_table, list_table, list_databases, list_environments | | Profiling | profile_table, inspect_relationships, inspect_dependencies, explain_query | | Querying | read_data (SELECT only) | | Scripts | list_scripts, run_script (readonly scripts only) | | Operations | test_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

| Variable | Required | Notes | |----------|----------|-------| | SERVER_NAME | Yes | SQL Server hostname/IP | | DATABASE_NAME | Yes | Target database | | SQL_AUTH_MODE | | sql, windows, or aad (default: aad) | | SQL_USERNAME / SQL_PASSWORD | | Required for sql/windows modes | | ENVIRONMENTS_CONFIG_PATH | | Path to multi-environment JSON config | | SCRIPTS_PATH | | Path to named SQL scripts directory | | AUDIT_LOG_PATH | | Custom 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 LICENSE 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