Wener Mssql MCP logo

Wener Mssql MCP

by wenerme

Connects AI clients to Microsoft SQL Server for schema discovery, table browsing, version checks, and SQL queries.

Install Wener Mssql MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wenerme-wener-mssql-mcp": {
      "command": "npx",
      "args": [
        "@wener/mssql-mcp"
      ],
      "env": {
        "MSSQL_SERVER": "YOUR_VALUE_HERE",
        "MSSQL_DATABASE": "YOUR_VALUE_HERE",
        "MSSQL_USER": "YOUR_VALUE_HERE",
        "MSSQL_PASSWORD": "YOUR_VALUE_HERE",
        "MSSQL_WINDOWS_AUTH": "YOUR_VALUE_HERE",
        "MSSQL_PORT": "YOUR_VALUE_HERE",
        "MSSQL_ENCRYPT": "YOUR_VALUE_HERE",
        "MSSQL_ACCESS_MODE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx @wener/mssql-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked Today.

Overview

wenerme/wener-mssql-mcp connects MCP-compatible clients to Microsoft SQL Server through SQL query tools and database resources. It can execute statements with CSV or JSON results, report the SQL Server version, discover tables, expose schema metadata, and show up to 100 rows per table. Configure SQL Server authentication, Windows authentication, Azure SQL, or LocalDB with environment variables, then run it over stdio or HTTP. Use read-only mode when an agent should inspect and query production data without write operations.

Use cases

  • Inspect database tables and schemas through an AI client
  • Run SQL Server queries and receive CSV or JSON results
  • Explore AdventureWorks or Northwind databases safely
  • Query production data with read-only access enabled

Key features

  • SQL Server schema and table discovery
  • CSV and JSON SQL query results
  • SQL Server version inspection
  • SQL, Windows, Azure SQL, and LocalDB authentication options
  • Read-only access mode
  • stdio and HTTP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/9 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @wener/mssql-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars66Stargazers on the source repository.
npm downloads240Package downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Wener Mssql MCP works

What wenerme/wener-mssql-mcp does

wenerme/wener-mssql-mcp exposes Microsoft SQL Server databases through the Model Context Protocol. It is intended for MCP clients such as Claude Desktop, where an AI assistant can inspect database structure, formulate SQL, run queries, and explain returned data.

The server supports SQL Server authentication, Windows authentication, Azure SQL Database, and LocalDB. It is described as compatible with SQL Server 2008 and newer, and can connect to a configured database on the default port or a custom port.

How it works

The package runs as a Node.js command-line application. The recommended invocation uses npx, although it can also be installed globally as @wener/mssql-mcp. In stdio mode, an MCP client starts the process and communicates with it directly. An HTTP mode is available for development, with configurable host and port settings.

Connection settings come from environment variables or an environment file supplied with --env-file. Once connected, the client can discover available tables, inspect table structures and metadata, read table contents, and call database tools. Table browsing returns the first 100 rows for each table.

Setup and configuration

Node.js 24.11.0 or newer is required. A SQL Server connection needs a server and database name. SQL Server authentication uses a username and password; Windows authentication can be enabled with MSSQL_WINDOWS_AUTH=true. Azure SQL connections use the server hostname supplied by Azure, and encryption is automatically enabled for Azure SQL or can be explicitly enabled with MSSQL_ENCRYPT=true.

Example stdio startup:

bash
MSSQL_SERVER=localhost \\
MSSQL_DATABASE=mydb \\
MSSQL_USER=sa \\
MSSQL_PASSWORD=password \\
npx @wener/mssql-mcp --stdio

Useful command-line options include --stdio, --env-file <path>, --port <port>, --host <host>, and --verbose. The default SQL Server port is 1433; the development HTTP server defaults to port 3003 and host localhost.

Tools and capabilities

  • exec_sql_csv executes SQL and returns CSV-formatted results.
  • exec_sql_json executes SQL and returns JSON-formatted results.
  • get_version returns SQL Server version information.
  • Table discovery lists available database tables.
  • Table resources provide table contents and schema metadata.
  • Read-only mode limits statements to SELECT, WITH, SHOW, DESCRIBE, EXPLAIN, and DESC.
  • Query handling includes parameterized queries, table-name validation, and escaping. Connection pooling and query logging are also included.

Use MSSQL_ACCESS_MODE=readonly for production or exploratory connections where database changes should be blocked. The default access mode is readwrite.

Limitations and notes

Read-only mode is an access safeguard for supported statement types; permissions still depend on the SQL Server account. Connection failures can result from invalid credentials, an incorrect server or port, missing database permissions, or local encryption settings. Verbose logging can help diagnose startup and connection problems. Local development connections may require MSSQL_ENCRYPT=false, while Azure SQL commonly requires encryption.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wener Mssql MCP

wenerme/wener-mssql-mcp is an MCP server that connects AI clients to Microsoft SQL Server databases. Its main tools execute SQL with CSV or JSON output and retrieve SQL Server version information, while database resources support table discovery, schema inspection, and limited table-content browsing.

Run it with `npx @wener/mssql-mcp --stdio`, or install it globally with `npm install -g @wener/mssql-mcp`. Supply connection variables directly in the shell or load them from a file with `--env-file <path>`.

Set `MSSQL_SERVER` and `MSSQL_DATABASE`, then provide `MSSQL_USER` and `MSSQL_PASSWORD` for SQL Server authentication. For Windows authentication, set `MSSQL_WINDOWS_AUTH=true`; Azure SQL and LocalDB use the corresponding server and authentication settings.

Yes, set `MSSQL_ACCESS_MODE=readonly` to restrict operations to SELECT, CTE, SHOW, DESCRIBE, EXPLAIN, and DESC statements. The default access mode is readwrite.

Yes, it supports Claude Desktop through stdio. Add an MCP server entry that runs `npx @wener/mssql-mcp` with `--env-file` and `--stdio`, then restart Claude Desktop.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

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 PreviewWener Mssql MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wenerme-wener-mssql-mcp?style=directory)](https://allmcps.com/mcp/wenerme-wener-mssql-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/wenerme-wener-mssql-mcp"><img src="https://allmcps.com/api/badge/wenerme-wener-mssql-mcp?style=directory" alt="Wener Mssql MCP on AllMCPs" /></a>