Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

SQL Server MCP

von cvelasquezVersion 3.3.0i★ –iLäuft auf deinem Computer
Name in der Registryio.github.cvelasquez/mcp-sqlserver

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Datenbanken & Datensätze
  • Das musst du eintragen: MSSQL_MCP_CONNECTIONS_JSON

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: MSSQL_MCP_CONNECTIONS, MSSQL_MCP_CONNECTIONS_JSON

Als geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "sqlserver": {
      "command": "npx",
      "args": [
        "-y",
        "@cevelas/mcp-sqlserver"
      ],
      "env": {
        "MSSQL_MCP_CONNECTIONS": "your-value",
        "MSSQL_MCP_CONNECTIONS_JSON": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add sqlserver --env MSSQL_MCP_CONNECTIONS=your-value --env MSSQL_MCP_CONNECTIONS_JSON=your-value -- npx -y @cevelas/mcp-sqlserver

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "sqlserver": {
      "command": "npx",
      "args": [
        "-y",
        "@cevelas/mcp-sqlserver"
      ],
      "env": {
        "MSSQL_MCP_CONNECTIONS": "your-value",
        "MSSQL_MCP_CONNECTIONS_JSON": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "sqlserver": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cevelas/mcp-sqlserver"
      ],
      "env": {
        "MSSQL_MCP_CONNECTIONS": "your-value",
        "MSSQL_MCP_CONNECTIONS_JSON": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • MSSQL_MCP_CONNECTIONS env
    Path to connections.json. Defaults to ~/.mcp-sqlserver/connections.json; create one with --init.
  • MSSQL_MCP_CONNECTIONS_JSON geheim env
    The connections JSON inline, for setups that keep credentials out of the filesystem.

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 6. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto cvelasquez bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Datenbanken & Datensätzei

  • Mehr Sterne als 0 % der anderen 953 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 69 % der anderen 953 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 953 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist SQL Server MCP sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: MSSQL_MCP_CONNECTIONS_JSON

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (3.3.0) kam vor 24 Tagen in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Supabase, MongoDB MCP Server, Elasticsearch MCP Server

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Supabase

von supabase

MCP server for interacting with the Supabase platform

Computer oder Cloud★ 2.993Apache-2.0Aktualisiert gestern
Installieren

MongoDB MCP Server

von mongodb-js

MongoDB Model Context Protocol Server

Läuft auf deinem Computer★ 1.157Apache-2.0Aktualisiert vorgestern
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

SQL Server MCP for people who manage dozens of instances

One MCP entry, every SQL Server you administer. Connections live in a single connections.json, grouped by client or environment, hot-reloaded without restarting your AI agent — plus execution plans, index audits and stored-procedure analysis.

Built for DBAs and consultants, not for a demo against a single localhost database.

Install

Add this to your AI agent's MCP configuration:

{

"mcpServers": { "sqlserver": { "command": "npx", "args": ["-y", "@cevelas/mcp-sqlserver"] } } }

Then create your connections file and restart the agent:

npx -y @cevelas/mcp-sqlserver --init

That writes ~/.mcp-sqlserver/connections.json from a commented template. Edit it, and ask your agent to *"list all SQL Server connections"*.

Needs Node.js 22 or newer.

Where each agent keeps its MCP config

AgentConfig file
Claude Desktop (Windows)%APPDATA%\Claude\claude_desktop_config.json
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Codeclaude mcp add sqlserver -- npx -y @cevelas/mcp-sqlserver
VS Code / Copilot.vscode/mcp.json
Cursor~/.cursor/mcp.json

Any MCP-compatible agent works — ChatGPT, Gemini, Copilot, Cline, Zed and others all take the same command / args pair.

Why this one

Most SQL Server MCP servers take a single connection string. That is fine for one database. It falls apart when you administer thirty across eight clients, because every instance needs its own entry in the agent config, its own credentials, and its own restart when something changes.

Single-DSN serversThis one
Instances per MCP entry1all of them
Organised by client or environment—connectionGroup
Add or change a connectionedit agent config, restartedit a file, reload_connections
Which server answered?you assumein every response's metadata
Beyond SELECT—execution plans, index layout, SP source
Read-only safety rail—"readOnly": true per connection

Connections

{

"connections": [ { "name": "acme-prod", "connectionGroup": "Acme Corp", "description": "Production - head office", "server": "192.168.1.10\\SQLEXPRESS", "database": "AcmeDB_Prod", "user": "app_reader", "password": "${env:ACME_PROD_PASSWORD}", "port": 1433, "encrypt": true, "trustServerCertificate": false, "readOnly": true } ] }

FieldRequiredNotes
nameyesUnique; this is what you say to the agent
serveryesHostname, IP, or host\instance
connectionGroupnoClient, project or environment. Groups the listing
descriptionnoShown in list_connections and in every response
databasenoDefaults to the login's default database
user, passwordnoOmit for domain or Entra ID auth
portnoDefaults to 1433
encrypt, trustServerCertificatenoencrypt defaults to true
readOnlynoRejects writing statements — see below

Anything else you put here is passed straight to mssql, so requestTimeout, connectionTimeout, pool, authentication and a nested options object all work.

Keeping passwords out of the file

Any string may reference an environment variable:

"password": "${env:ACME_PROD_PASSWORD}"

A connection that references a variable you have not set is disabled, and list_connections names both the connection and the missing variable. Leaving the literal in place would only move the failure to connect time, where it arrives as Login failed for user and tells you nothing.

You can also skip the file entirely and pass the whole thing through the agent config, which keeps credentials in one place with the rest of your MCP secrets:

{

"mcpServers": { "sqlserver": { "command": "npx", "args": ["-y", "@cevelas/mcp-sqlserver"], "env": { "MSSQL_MCP_CONNECTIONS_JSON": "{\"connections\":[{\"name\":\"prod\",\"server\":\"10.0.0.1\",\"database\":\"App\",\"user\":\"reader\",\"password\":\"...\"}]}" } } } }

Where the file is looked for

In order, first hit wins:

  1. --connections
  2. $MSSQL_MCP_CONNECTIONS — a path
  3. $MSSQL_MCP_CONNECTIONS_JSON — the JSON itself, inline
  4. ./connections.json in the working directory
  5. ~/.mcp-sqlserver/connections.json
  6. connections.json next to the installed package

A path given explicitly via 1 or 2 that does not exist is an error — the server will not quietly fall back to a different file and talk to the wrong database.

Checking every connection at once
npx -y @cevelas/mcp-sqlserver --check

Connects to every entry in parallel, runs SELECT 1, and lists which ones fail and why. Exits non-zero if any did, so it works in a scheduled task. Useful after a password rotation, or before blaming the agent.

Windows domain and Entra ID authentication

The bundled tedious driver supports NTLM and the Entra ID (Azure AD) family. Add domain for NTLM:

{

"name": "warehouse", "server": "dwh.corp.local", "database": "DWH", "domain": "CORP", "user": "svc_analytics", "password": "${env:DWH_PASSWORD}" }

{

"name": "azure-sql", "server": "myserver.database.windows.net", "database": "reporting", "encrypt": true, "authentication": { "type": "azure-active-directory-password", "options": { "userName": "${env:AZURE_USER}", "password": "${env:AZURE_PASSWORD}" } } }

Fully integrated auth — a trusted connection with no password at all — needs the native msnodesqlv8 driver, which is not bundled because it would break the one-line install on machines without a build toolchain. NTLM with an explicit service account is the supported path.

Tools

ToolArgumentsWhat it does
list_connections—Every connection, grouped
reload_connections—Re-read the file, drop open pools
queryconnection, sql, maxRows?, format?Run a query
get_schemaconnection, table?Columns, types, nullability, defaults
get_indexesconnection, tableIndexes, types, key and included columns
get_execution_planconnection, sqlSHOWPLAN_XML — the plan, without running the query
get_stored_procedureconnection, nameSource of a stored procedure

Every response carries the connection it came from:

{

"metadata": { "connection": "acme-prod", "connectionGroup": "Acme Corp", "description": "Production - head office", "server": "192.168.1.10\\SQLEXPRESS", "database": "AcmeDB_Prod" }, "data": [ ... ] }

With thirty connections in play, that line is what tells you the answer came from the client you meant.

Query results that fit in a context window

An agent that runs SELECT * FROM Orders does not need four million rows, and neither does its context window.

  • Row cap. query returns at most 1000 rows across all result sets. maxRows changes that, up to 10000. When the cap is hit the query is *cancelled on the server*, not trimmed afterwards.
  • A truncated result says so, first. The response opens with "truncated": true and a note stating that more rows exist, that the total is unknown, and how to get it. It sits *before* the rows on purpose: a 10000-row response runs to hundreds of KB, and a client that cuts long output keeps the beginning. An agent must never conclude "the table has 10000 rows" from a capped result. Asking for more than 10000 is not an error — the cap is lowered to 10000, and if rows were left out the note says what was asked for.
  • `format: "csv"`. JSON repeats every column name on every row. With csv the response is one JSON header line with the metadata, a blank line, then the rows. NULL is an empty cell and an empty string is "", so the two stay distinguishable.
  • Server messages. PRINT output and SET STATISTICS IO, TIME ON results come back in messages, so the agent can read logical reads and CPU time instead of guessing.
  • Every result set. A batch with several SELECTs returns them all in recordsets. data is still the first one.
  • Binary columns come back as hex (0x8f3a...), truncated after 64 bytes, instead of a JSON array with one number per byte.

rowCount is always present; truncated, messages and recordsets only appear when they have something to say. Responses are compact JSON.

What this gets you

Things that are tedious by hand and become one sentence to the agent:

  • *"Why is this stored procedure slow?"* — get_stored_procedure for the source, get_execution_plan for the plan, get_indexes for what is missing.
  • *"Compare the Orders schema between acme-prod and acme-qa"* — get_schema on both, agent diffs them.
  • *"Which indexes on this table are never covering anything?"* — get_indexes plus the queries you care about.
  • *"I added a client to connections.json"* — reload_connections, no restart.

Read-only connections

"readOnly": true

Rejects INSERT, UPDATE, DELETE, MERGE, DROP, TRUNCATE, ALTER, CREATE, GRANT, EXEC, BACKUP, DBCC, OPENQUERY, DISABLE/ENABLE and friends before the query leaves your machine. It also requires the batch to *start* with something that reads — SELECT, WITH, DECLARE, SET, IF and so on — because T-SQL lets you call a procedure without EXEC, and sp_rename 'dbo.Users','Users_old' contains no blocked keyword at all.

String literals, comments and bracketed identifiers are ignored, so WHERE note = 'please delete this', SELECT [delete] FROM [Audit] and DECLARE @Create DATETIME all pass. get_execution_plan still works, because SHOWPLAN_XML returns the plan without executing anything.

Anything other than an explicit false turns the guard on — a hand-written "readOnly": "false" locks the connection down rather than silently opening it, and says so in list_connections.

This is a guard rail, not a security boundary. It stops an agent from "helpfully" fixing a row in production. It will not stop someone determined to write. The real protection is a SQL login that only has db_datareader:

CREATE LOGIN mcp_reader WITH PASSWORD = '...';

CREATE USER mcp_reader FOR LOGIN mcp_reader; ALTER ROLE db_datareader ADD MEMBER mcp_reader; GRANT VIEW DEFINITION TO mcp_reader; -- for get_stored_procedure GRANT SHOWPLAN TO mcp_reader; -- for get_execution_plan

Use both.

Security notes

  • connections.json holds credentials. Keep it out of version control — the bundled .gitignore covers connections*.json.
  • Prefer ${env:VAR} over literal passwords.
  • Give each connection the least privilege it needs. Do not use sa.
  • Restrict file permissions: icacls connections.json /inheritance:r /grant:r "%USERNAME%:F" on Windows, chmod 600 connections.json elsewhere.
  • The query tool runs whatever SQL the agent writes. That is the point of the tool — treat the connection's permissions as the boundary, not the tool.

Web UI

`web/conne

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen