Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
MCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MSSQL_MCP_CONNECTIONS, MSSQL_MCP_CONNECTIONS_JSON标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"sqlserver": {
"command": "npx",
"args": [
"-y",
"@cevelas/mcp-sqlserver"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "your-value",
"MSSQL_MCP_CONNECTIONS_JSON": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add sqlserver --env MSSQL_MCP_CONNECTIONS=your-value --env MSSQL_MCP_CONNECTIONS_JSON=your-value -- npx -y @cevelas/mcp-sqlserver运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"sqlserver": {
"command": "npx",
"args": [
"-y",
"@cevelas/mcp-sqlserver"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "your-value",
"MSSQL_MCP_CONNECTIONS_JSON": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"sqlserver": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cevelas/mcp-sqlserver"
],
"env": {
"MSSQL_MCP_CONNECTIONS": "your-value",
"MSSQL_MCP_CONNECTIONS_JSON": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MSSQL_MCP_CONNECTIONS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 cvelasquez 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MSSQL_MCP_CONNECTIONS_JSON
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.3.0)于25天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Supabase, MongoDB MCP Server, Elasticsearch MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP server for interacting with the Supabase platform
MongoDB Model Context Protocol Server
MCP server for interacting with Elasticsearch
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
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
| Agent | Config file |
|---|---|
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Code | claude 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.
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 servers | This one | |
|---|---|---|
| Instances per MCP entry | 1 | all of them |
| Organised by client or environment | — | connectionGroup |
| Add or change a connection | edit agent config, restart | edit a file, reload_connections |
| Which server answered? | you assume | in every response's metadata |
Beyond SELECT | — | execution plans, index layout, SP source |
| Read-only safety rail | — | "readOnly": true per connection |
{
"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 } ] }
| Field | Required | Notes |
|---|---|---|
name | yes | Unique; this is what you say to the agent |
server | yes | Hostname, IP, or host\instance |
connectionGroup | no | Client, project or environment. Groups the listing |
description | no | Shown in list_connections and in every response |
database | no | Defaults to the login's default database |
user, password | no | Omit for domain or Entra ID auth |
port | no | Defaults to 1433 |
encrypt, trustServerCertificate | no | encrypt defaults to true |
readOnly | no | Rejects 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.
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\":\"...\"}]}" } } } }
In order, first hit wins:
--connections $MSSQL_MCP_CONNECTIONS — a path$MSSQL_MCP_CONNECTIONS_JSON — the JSON itself, inline./connections.json in the working directory~/.mcp-sqlserver/connections.jsonconnections.json next to the installed packageA 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.
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.
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.
| Tool | Arguments | What it does |
|---|---|---|
list_connections | — | Every connection, grouped |
reload_connections | — | Re-read the file, drop open pools |
query | connection, sql, maxRows?, format? | Run a query |
get_schema | connection, table? | Columns, types, nullability, defaults |
get_indexes | connection, table | Indexes, types, key and included columns |
get_execution_plan | connection, sql | SHOWPLAN_XML — the plan, without running the query |
get_stored_procedure | connection, name | Source 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.
An agent that runs SELECT * FROM Orders does not need four million rows, and neither does its context window.
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."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.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.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.SELECTs returns them all in recordsets. data is still the first one.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.
Things that are tedious by hand and become one sentence to the agent:
get_stored_procedure for the source, get_execution_plan for the plan, get_indexes for what is missing.get_schema on both, agent diffs them.get_indexes plus the queries you care about.reload_connections, no restart."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.
connections.json holds credentials. Keep it out of version control — the bundled .gitignore covers connections*.json.${env:VAR} over literal passwords.sa.icacls connections.json /inheritance:r /grant:r "%USERNAME%:F" on Windows, chmod 600 connections.json elsewhere.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/conne
只显示了开头部分;其余内容请在仓库中阅读