SQL MCP Server
Overview
Description from the maker (original English)
Controlled SQL access gateway with policy, cost limits, tenant isolation, and safe tools.
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Databases & datasets
- You need to fill in: DATABASE_DSN
Install
Pick the AI app you use, then copy the settings.
Passed 2/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Install Docker
One time only; it works for every server that needs Docker
Sign up and create a SQL MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "sql": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "DATABASE_DSN", "ghcr.io/nethinwei/sql-mcp-server:0.1.21", "serve", "--config", "/config/config.yaml", "--transport", "stdio" ], "env": { "DATABASE_DSN": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use SQL MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using SQL MCP Server or shows a SQL MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect SQL MCP Server yet
SQL MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect SQL MCP Server
- You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
- You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
- You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
B · Others in Databases & datasets that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Supabase✓ ChatGPT
- Appwrite MCP✓ ChatGPT
- Pg Aiguide✓ ChatGPT
Works with Claude Code, with some setup first
You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
Install Docker
One time only; it works for every server that needs Docker
Sign up and create a SQL MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add sql --env DATABASE_DSN=your-value -- docker run -i --rm -e DATABASE_DSN ghcr.io/nethinwei/sql-mcp-server:0.1.21 serve --config /config/config.yaml --transport stdioReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see SQL MCP Server listed as connected
Try it
Use SQL MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using SQL MCP Server or shows a SQL MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
Install Docker
One time only; it works for every server that needs Docker
Sign up and create a SQL MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Fill in your key
In the SQL MCP Server settings, DATABASE_DSN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use SQL MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using SQL MCP Server or shows a SQL MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a SQL MCP Server key (sign up on the maker’s site, may cost money) · Install Docker on your computer first (one time)
Install Docker
One time only; it works for every server that needs Docker
Sign up and create a SQL MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Fill in your key
In the SQL MCP Server settings, DATABASE_DSN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use SQL MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using SQL MCP Server or shows a SQL MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add sql --env DATABASE_DSN=your-value -- docker run -i --rm -e DATABASE_DSN ghcr.io/nethinwei/sql-mcp-server:0.1.21 serve --config /config/config.yaml --transport stdioClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sql": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_DSN",
"ghcr.io/nethinwei/sql-mcp-server:0.1.21",
"serve",
"--config",
"/config/config.yaml",
"--transport",
"stdio"
],
"env": {
"DATABASE_DSN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sql": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_DSN",
"ghcr.io/nethinwei/sql-mcp-server:0.1.21",
"serve",
"--config",
"/config/config.yaml",
"--transport",
"stdio"
],
"env": {
"DATABASE_DSN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"sql": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_DSN",
"ghcr.io/nethinwei/sql-mcp-server:0.1.21",
"serve",
"--config",
"/config/config.yaml",
"--transport",
"stdio"
],
"env": {
"DATABASE_DSN": "your-value"
}
}
}
}Values you fill in
DATABASE_DSNsecret envDatabase DSN referenced by ${DATABASE_DSN} in config.yaml
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- Connection
- Runs on your computer
- Transport
- stdio
- Latest versioni
- 0.1.21
- Categoryi
- Databases & datasets
- Published to registryi
- Oct 21, 2026
- Code last changedi
- Oct 21, 2026
- Maker
- nethinwei
- Packages
oci: ghcr.io/nethinwei/sql-mcp-server:0.1.21- Website
- github.com
- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account nethinwei, which owns the repo
- ✓ Pass
Still maintained
Code last changed 21 days ago
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Databases & datasetsi
- More stars than 0% of the other 1163 servers in this category
- Published to the registry more recently than 68% of the other 1163 servers in this category
- Basic checks equal to or better than 100% of the other 1163 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is SQL MCP Server safe?
It passed 2 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: DATABASE_DSN
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 21 days ago, and the latest version (0.1.21) reached the registry 21 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Docker on your computer.
What can I use instead?
In the same category: Dbx, MCP Toolbox for Databases, MCP Toolbox for Databases
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
SQL MCP Server
The governed SQL gateway for untrusted AI agents.
面向不可信 AI Agent 的受控 SQL 数据访问网关。通过显式 Entity、关系代数 IR 和 参数化 codegen 访问 PostgreSQL、MySQL 与 OceanBase,受治理面不接受任意 SQL,不提供 DDL。可信操作者另有独立的 SQL 逃生通道 execute_sql:默认关闭,只对被显式授予 sql:execute@<数据源> 的用户可见,走单独声明的连接,受硬上限与写入失败即拒绝的 审计约束(见安全模型)。
核心差异
- 确定性执行:Agent 只能组合受控工具和白名单 IR;
- 字段与行治理:RBAC、字段 ACL、row policy 和 mask 统一强制;
- 成本可控:EXPLAIN 预筛、结果上限、超时和 session/tenant 预算;
- 默认拒绝:安全能力无法证明时 fail closed;
- 可审计:配置热重载、异步审计和 OpenTelemetry hook。
运行时安全行为以安全模型为准;Provider 验证边界与证据层级 以兼容矩阵为准;威胁、控制与剩余风险见 威胁模型。所有对外声明的证据汇总见 架构、安全边界与证据索引。不以本页摘要为准。
五分钟体验
只需 Docker 与 Docker Compose:
docker compose -f examples/quickstart/compose.yaml up -d --wait
curl -fsS http://127.0.0.1:8080/healthz
完整的 MCP Inspector 调用、tenant 隔离、mask 和拒绝场景见 五分钟快速体验。
安装与接入
源码构建要求 Go 1.26.10+ 和一个已验证数据库版本:
git clone https://github.com/nethinwei/sql-mcp-server.git
cd sql-mcp-server make build
- Cursor、Claude Desktop 和 VS Code 的 stdio 模板:
examples/clients/(核对结论见 客户端接入核对); - 完整配置模板:
examples/config.example.yaml; - CLI、启动、热重载、容器部署和升级:运行与运维;
- Web 管理控制台与 Docker Compose 部署:管理控制台;
- 魔搭分发展示:ModelScope 上架与使用。
按角色阅读
首次体验与集成
- 五分钟快速体验:唯一完整 Demo 与 Inspector 示例;
- 配置参考:公开 YAML 配置的唯一事实源;
- Provider 兼容性与 支持版本:当前能力和验证边界。
部署与安全
- 运行与运维:CLI、容器部署、生命周期、监控和升级;
- 管理控制台:配置编辑、发布回滚、管理员权限与 Docker 部署;
- 安全模型:运行时安全行为的唯一事实源;
- 威胁模型:威胁、控制、测试证据与剩余风险;
- SECURITY.md:漏洞披露流程。
开发与维护
版本与规划
- 当前 GA:
v0.1.21(发布说明); - 全版本摘要:CHANGELOG;历史能力与迁移: 发布说明索引;
- 未发布产品规划:Roadmap;
- 数据库候选:Provider Roadmap。