Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ—„οΈ Databases
  3. Mssql
Mssql logo
Health: ActiveRecent health check succeeded.Last checked 9/22/2026, 4:31:40 PM

Mssql

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository33 GitHub StarsTotal stargazers on GitHub for the source repository (33 stars).Visit Website

MCP server for Microsoft SQL Server - schema discovery, profiling, and safe data operations

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mssql": {
      "command": "npx",
      "args": [
        "@connorbritain/mssql-mcp-server@latest"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (8) Directory Badge Claim listing AlternativesπŸ—„οΈ More in Databases

Capabilities & Tool Schemas (8) ~35 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Mssql.

SEARCH_SCHEMA_DEFAULT_LIMIT

Callable MCP tool function

search_schema

Callable MCP tool function

tableOffset

Callable MCP tool function

columnOffset

Callable MCP tool function

PROFILE_SAMPLE_SIZE_DEFAULT

Callable MCP tool function

PROFILE_SAMPLE_RETURN_LIMIT

Callable MCP tool function

Documentation Overview

MSSQL MCP Server

npm version License: MIT

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

A production-ready MCP server built for real-world database work: exploring unfamiliar schemas, profiling data shape, validating pipelines in UAT, and moving confidently to production. If you work with SQL Server and want AI tooling that understands enterprise database workflows, this is for you.

Package Tiers

PackagenpmToolsUse Case
mssql-mcp-reader@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 (this)@connorbritain/mssql-mcp-server20 (all tools)DBAs, full admin access

Choose the tier that matches your security requirements. All tiers share the same governance controls, audit logging, and multi-environment support.


Why This Exists

Most SQL + AI demos stop at "generate a query." That's table stakes. Real database work means:

  • Navigating massive schemas you didn't design, often with cryptic naming conventions
  • Understanding data shape before writing anything
  • Working safely in regulated environments where one bad UPDATE can trigger an incident
  • Moving fast in UAT so you can validate changes before they hit production

This server is built around those realities. It's stable, secure by default, and designed to make AI assistants genuinely useful on enterprise SQL Server instances.


What's here today

  • Semantic schema discovery – search_schema finds tables/columns via wildcards with fuzzy matching and paginated results so large databases don’t blow up your context window.
  • Table profiling – profile_table summarizes column shape (null %, cardinality, min/max/avg/median/p90) and can return a capped sample of rows.
  • Relationship mapping – inspect_relationships enumerates inbound/outbound FKs with column mappings, so you can follow dependencies before touching data.
  • Flexible authentication – SQL auth, Windows auth, and Azure AD are supported; pick what matches your infra.
  • Safe data operations – read_data, describe_table, list_table, plus write tools (insert_data, update_data, delete_data, create_table, create_index, drop_table) when you need full agent-mode workflows.
  • Preview + Confirm for mutations – update_data and delete_data show affected rows before execution; require explicit confirmation to proceed.
  • Multi-environment support – Define named database environments (prod, staging, dev) in a JSON config; switch between them per request.
  • Audit logging – Every tool invocation logged to JSON Lines format with timestamps, arguments (auto-redacted), and results.
  • MCP-native – Works with Windsurf, Claude Desktop, and any MCP-compatible client.

Key tools at a glance

Discovery & Schema:

  • search_schema – Wildcard/fuzzy search across tables and columns with pagination.
  • describe_table – Column definitions, types, nullability, keys.
  • list_table – List all tables in a database with optional filtering.
  • list_databases – List databases on server-level environments.
  • list_environments – Show configured environments and their policies.

Profiling & Analysis:

  • profile_table – Column stats (null %, cardinality, min/max/avg/median/p90) with optional sample rows.
  • inspect_relationships – FK mappings in both directions.
  • inspect_dependencies – Full dependency analysis (views, procs, functions, triggers referencing an object).
  • explain_query – Execution plan analysis via SHOWPLAN.

Data Operations:

  • read_data – Safe SELECT with automatic row limits.
  • insert_data – Parameterized inserts (single or batch).
  • update_data – Preview affected rows, require confirmation.
  • delete_data – Preview affected rows, require confirmation.

DDL Operations:

  • create_table – Create tables with column definitions.
  • create_index – Create indexes on existing tables.
  • drop_table – Drop tables (requires confirmation).

Named Scripts:

  • list_scripts – Show available pre-approved SQL scripts.
  • run_script – Execute named scripts with parameters and governance controls.
  • Scripts directory – Point the server at a folder containing scripts.json + .sql files by setting SCRIPTS_PATH (env var) or "scriptsPath" inside your environment entry. list_scripts/run_script remain disabled until this location is configured.

Operations:

  • test_connection – Verify connectivity and latency.
  • validate_environment_config – Check environment configuration for errors.

Prerequisites

You’ll need a current Node.js runtime (minimum 18, recommended 20 LTS). The tooling now shims legacy APIs so it also works on the newest Node releases, but installing an LTS build avoids surprises on fresh machines.

PlatformCommand (installs Node 20 LTS)
Windowswinget install --id OpenJS.NodeJS.LTS -e
macOSbrew install node@20 && brew link --overwrite --force node@20
Ubuntu/Debiancurl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs

Verify with node -v (should show v20.x). If you already have a newer Node version installed, the server will still run thanks to the built-in SlowBuffer shim.

Quick start

Option 1: Install from npm (recommended)

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

Then configure your MCP client:

config.json
{

  "mcpServers": {

    "mssql": {

      "command": "npx",

      "args": ["@connorbritain/mssql-mcp-server@latest"],

      "env": { "SERVER_NAME": "localhost", "DATABASE_NAME": "mydb", "READONLY": "true" }

    }

  }

}

Option 2: Build from source

bash
git clone https://github.com/ConnorBritain/mssql-mcp-server.git

cd mssql-mcp-server/src/node

npm install

npm run build

Then point your MCP client to src/node/dist/index.js with your connection env vars.


Configuration

Environment variables

VariableRequiredDescription
SERVER_NAMESQL Server hostname or IP (e.g., localhost, 127.0.0.1, myserver.database.windows.net)
DATABASE_NAMETarget database name
SQL_AUTH_MODEAuthentication mode: sql, windows, or aad (default: aad)
SQL_USERNAMEUsername for SQL or Windows auth
SQL_PASSWORDPassword for SQL or Windows auth
SQL_DOMAINDomain for Windows/NTLM auth (optional)
SQL_PORTCustom port (default: 1433). Useful for named instances or Docker containers on non-standard ports.
TRUST_SERVER_CERTIFICATESet to true for self-signed certificates or dev environments
CONNECTION_TIMEOUTConnection timeout in seconds (default: 30)
READONLYSet to true to restrict to read-only tools (no INSERT, UPDATE, DELETE, DROP)
MAX_ROWS_DEFAULTAuto-limit for SELECT queries without TOP/LIMIT (default: 1000, range: 1-100000)
REQUIRE_MUTATION_CONFIRMATIONSet to false to skip preview/confirm for mutations (default: true)
ENVIRONMENTS_CONFIG_PATHPath to JSON file defining multiple named database environments
SCRIPTS_PATHPath to named SQL scripts directory (must contain scripts.json)
AUDIT_LOG_PATHPath for audit log file (default: logs/audit.jsonl)
AUDIT_LOGGINGSet to false to disable audit logging (default: true)
AUDIT_REDACT_SENSITIVESet to false to disable redaction of sensitive args (default: true)
PROFILE_SAMPLE_SIZE_DEFAULTDefault sample size for profile_table (defaults to 50, max 1000)
PROFILE_SAMPLE_RETURN_LIMITMax number of sample rows returned in responses (defaults to 10, max 100)
SEARCH_SCHEMA_DEFAULT_LIMITDefault row limit per section for search_schema pagination (defaults to 50, max 200)

Authentication modes

SQL Server Authentication (SQL_AUTH_MODE=sql)
Standard username/password auth against SQL Server. Works with local instances, Docker containers, and Azure SQL with SQL auth enabled.

json
"env": {

  "SERVER_NAME": "127.0.0.1",

  "DATABASE_NAME": "mydb",

  "SQL_AUTH_MODE": "sql",

  "SQL_USERNAME": "sa",

  "SQL_PASSWORD": "YourPassword123",

  "SQL_PORT": "1433",

  "TRUST_SERVER_CERTIFICATE": "true"

}

Windows Authentication (SQL_AUTH_MODE=windows) NTLM-based auth using domain credentials. Ideal for on-prem SQL Server in Active Directory environments.

The server auto-parses DOMAIN\username format β€” you can provide the domain either as a separate SQL_DOMAIN field or embedded in SQL_USERNAME (e.g., CORP\svc_account). If both are present, the explicit SQL_DOMAIN takes precedence and the prefix is stripped from the username.

json
"env": {

  "SERVER_NAME": "sqlserver.corp.local",

  "DATABASE_NAME": "mydb",

  "SQL_AUTH_MODE": "windows",

  "SQL_USERNAME": "CORP\\svc_account",

  "SQL_PASSWORD": "YourPassword123",

  "SQL_DOMAIN": "CORP"

}

Azure AD Authentication (SQL_AUTH_MODE=aad or omit) Interactive browser-based Azure AD authentication. Opens a browser window on first connection to authenticate. Best for Azure SQL Database with AAD-only auth.

json
"env": {

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Databases View all alternatives
  • Genai Toolbox logoGenai Toolbox

    Open source MCP server specializing in easy, fast, and secure tools for Databases.

    πŸ—„οΈ Databases5 views
    Compare vs Genai Toolbox β†’
  • MCP Toolbox for Databases logoMCP Toolbox for Databases

    MCP Toolbox for Databases enables your agent to connect to your database.

    πŸ—„οΈ Databases1 views
    Compare vs MCP Toolbox for Databases β†’
  • Pg Aiguide logoPg Aiguide

    Comprehensive PostgreSQL documentation and best practices, including ecosystem tools

    πŸ—„οΈ Databases0 views
    Compare vs Pg Aiguide β†’
  • Legion MCP logoLegion MCP

    Universal database MCP server supporting multiple database types including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite.

    πŸ—„οΈ Databases5 views
    Compare vs Legion MCP β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
33
Stargazers on the source repository.
Last commit
1mo ago
Most recent push to the default branch.
Tools exposed
8
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Mssql

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "mssql": { "command": "npx", "args": ["@connorbritain/mssql-mcp-server@latest"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMssql AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mssql?style=directory)](https://allmcps.com/mcp/mssql)
HTML Embed
<a href="https://allmcps.com/mcp/mssql"><img src="https://allmcps.com/api/badge/mssql?style=directory" alt="Mssql on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ—„οΈDatabases
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedAug 4, 2026
15/15 checks healthy over the last 45d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars33
GitHub Star CountTotal stargazers on GitHub representing community popularity (33 stars).
Last commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 4, 2026
53Quality signal: Good Β· 53/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools25/30
Adoption & activity5/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev Β· @connorbritain/mssql-mcp-server@latest (npm)

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ—„οΈ Databases β†’Best MCP servers for Databases β†’Alternatives to Mssql β†’Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients