Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MCP_DB_CONFIG标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"db-connect": {
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add db-connect --env MCP_DB_CONFIG=your-value -- npx -y mcp-db-connect start运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"db-connect": {
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"db-connect": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-db-connect",
"start"
],
"env": {
"MCP_DB_CONFIG": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 phatngoit 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MCP_DB_CONFIG
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.21)于3个月前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Universal MCP server for readonly-first access to Oracle Database, Microsoft SQL Server, PostgreSQL, MySQL/MariaDB, SQLite, MongoDB, and Qdrant vector search.
This project is designed for AI tools that support the Model Context Protocol. Projects can install it, provide a YAML config, and expose safe database tools to their AI client.
Oracle connections use the Node.js oracledb Thin mode by default, so Oracle Instant Client is not required for most databases. Some Oracle databases use NCHAR character sets that Thin mode cannot handle; those databases require Oracle Thick mode with Oracle Client libraries.
By default, commands run from a project directory automatically use:
mcp-db.local.yml, then mcp-db.yml, then mcp-db.yaml.env$out and $merge blocking in readonly modeDockerfile, published to GHCR on release)1. Install the package
Node / TypeScript projects (local install):
npm install --save-dev mcp-db-connect
.NET, Python, or other non-Node projects (global install):
npm install -g mcp-db-connect
2. Run the setup wizard
npx mcp-db-connect setup
The wizard asks which AI clients and databases to configure, then asks for one connection string per database (the same string your DB host, hosting provider, or existing app config already gives you) and writes all config files automatically.
3. Test your connections
npx mcp-db-connect test-connections
That's it — your AI client is now connected to your databases.
mcp-db.local.yml # database connection config
.env # local secrets .gitignore # keeps secrets and local config out of git .mcp.json # Claude Code MCP config (if selected) .codex/config.toml # Codex CLI config (if selected) .gemini/settings.json # Gemini CLI config (if selected) .kimi/mcp.json # Kimi CLI config (if selected)
Skip the wizard with explicit flags:
npx mcp-db-connect setup --ai claude,codex --db mssql,mongodb
Overwrite existing config entries:
npx mcp-db-connect setup --force
Start an HTTP MCP endpoint instead of stdio:
npx mcp-db-connect serve-http --host 127.0.0.1 --port 3000
npx mcp-db-connect serve-http --api-key-env MCP_DB_HTTP_API_KEY
All examples assume the AI CLI is started from your application project root.
Recommended automatic setup:
mcp-db-connect setup --ai claude --db mssql
The generated .mcp.json uses npx so it works whether the package is installed globally or locally.
npm install -g mcp-db-connect)mcp-db-connect is in PATH and can be used directly:
claude mcp add --transport stdio db-connect --scope local -- mcp-db-connect start --project . --config ./mcp-db.local.yml --env ./.env
.mcp.json:
{
"mcpServers": { "db-connect": { "command": "mcp-db-connect", "args": ["start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }
npm install --save-dev mcp-db-connect)Use npx so Claude Code can find the binary inside node_modules/.bin:
claude mcp add --transport stdio db-connect --scope local -- npx mcp-db-connect start --project . --config ./mcp-db.local.yml --env ./.env
.mcp.json:
{
"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }
Recommended automatic setup:
mcp-db-connect setup --ai codex --db mssql,oracle,mongodb
npm --prefix .\.mcp-tools\db-connect install codex
Project .codex/config.toml:
[mcp_servers.db-connect]
command = '.\.mcp-tools\db-connect\node_modules\.bin\mcp-db-connect.cmd' args = ["start", "--project", ".", "--config", '.\mcp-db.local.yml', "--env", '.\.env'] enabled = true
[mcp_servers.db-connect.env] LOG_LEVEL = "silent"
The .mcp-tools/db-connect/package.json file created by the wizard uses mcp-db-connect from npm. Run the install command above once per project.
Recommended automatic setup:
mcp-db-connect setup --ai gemini --db mongodb
gemini
Project .gemini/settings.json:
{
"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }
Recommended automatic setup:
mcp-db-connect setup --ai kimi --db oracle
kimi --mcp-config-file .\.kimi\mcp.json
Project .kimi/mcp.json:
{
"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }
Kimi CLI can also manage global MCP servers with kimi mcp add, but the project-local file above keeps this database MCP scoped to one project.
For clients that accept the common MCP JSON format:
mcp-db-connect setup --ai generic --db mssql
Use .mcp-db-connect/mcp.json:
{
"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }
Use this endpoint for MCP clients or agents that support Streamable HTTP:
http://127.0.0.1:3000/mcp
Health check:
http://127.0.0.1:3000/healthz
security:
defaultMaxRows: 100 queryTimeoutMs: 10000 blockMultiStatement: true allowWriteOperations: false maskColumns:
connections: mssql_report: type: mssql host: 172.27.62.7 port: 1433 database: Internet username: report_reader passwordEnv: MSSQL_REPORT_PASSWORD encrypt: true trustServerCertificate: true mode: readonly
mssql_write_model: type: mssql host: 172.27.62.8 port: 1444 database: InternetWrite username: writer_user passwordEnv: MSSQL_WRITE_PASSWORD encrypt: true trustServerCertificate: true mode: readonly
oracle_local: type: oracle host: localhost port: 1521 serviceName: ORCLPDB1 username: app_readonly passwordEnv: ORACLE_PASSWORD clientMode: thin mode: readonly
mssql_local: type: mssql host: localhost port: 1433 database: appdb username: sa passwordEnv: MSSQL_PASSWORD encrypt: true trustServerCertificate: true mode: readonly
mongo_local: type: mongodb uriEnv: MONGODB_URI database: appdb mode: readonly
postgres_local: type: postgres host: localhost port: 5432 database: appdb username: app_readonly passwordEnv: POSTGRES_PASSWORD mode: readonly
mysql_local: type: mysql host: localhost port: 3306 database: appdb username: app_readonly passwordEnv: MYSQL_PASSWORD mode: readonly
qdrant_local: type: qdrant url: http://localhost:6333 apiKeyEnv: QDRANT_API_KEY mode: readonly
sqlite_local: type: sqlite file: ./data/appdb.sqlite mode: readonly
SQLite has no host/port/username — file is a path to the database file (relative paths resolve against the process's working directory), and :memory: is also accepted for an ephemeral in-process database.
MongoDB stores the selected port inside the URI saved in .env, for example:
MONGODB_URI=mongodb://user:password@localhost:27018/appdb
Default Oracle setup uses clientMode: thin and does not need Oracle Instant Client:
connections:
oracle_local: type: oracle host: localhost port: 1521 serviceName: ORCLPDB1 username: app_readonly passwordEnv: ORACLE_PASSWORD clientMode: thin
Oracle Instant Client is not required. If the database has NCHAR/NVARCHAR2 columns with NLS_NCHAR_CHARACTERSET = AL16UTF16, the connector automatically rewrites the query to cast those columns to VARCHAR2 server-side so Thin mode can handle them.
Oracle, MSSQL, PostgreSQL, and MySQL/MariaDB also accept a raw connection string instead of host/port/database/username:
connections:
mssql_from_string: type: mssql connectionStringEnv: MSSQL_FROM_STRING_CONNECTION_STRING mode: readonly
oracle_from_string: type: oracle connectDescriptor: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.20.30.15)(PORT=1521)))(CONNECT_DATA=(SERVER=POOLED)(SERVICE_NAME=DEMOPDB1))) username: demo_ora_user passwordEnv: ORACLE_FROM_STRING_PASSWORD mode: readonly
postgres_from_string: type: postgres connectionStringEnv: POSTGRES_FROM_STRING_CONNECTION_STRING mode: readonly
mysql_from_string: type: mysql connectionStringEnv: MYSQL_FROM_STRING_CONNECTION_STRING mode: readonly
connectionStringEnv points to a full ADO/tedious connection string (MSSQL), a postgres://user:password@host:5432/database URI (PostgreSQL), or a mysql://user:password@host:3306/database URI (MySQL/MariaDB) in .env (same convention as MongoDB's uriEnv). connectDescriptor holds an Oracle TNS connect descriptor or Easy Connect string and is not secret — only the password goes in .env. The setup wizard generates these automatically from a pasted connection string; both forms can also still be hand-written using the structured host/port/... fields shown above.
PostgreSQL and MySQL/MariaDB connections also accept ssl: true (with rejectUnauthorized: false for self-signed certificates common on managed database providers).
Every command that loads config (start, serve-http, validate-config, test-connections) also accepts the entire config document — the same security + connections structure normally stored in mcp-db.local.yml — as YAML or JSON in the MCP_DB_CONFIG environment variable, instead of a file:
export MCP_DB_CONFIG='
connections: postgres_demo: type: postgres host: db.example.com port: 5432 database: appdb username: app_readonly password: change-me mode: readonly ' mcp-db-connect serve-http --host 0.0.0.0 --port 3000
When MCP_DB_CONFIG is set, --config/mcp-db.local.yml/mcp-db.yml/mcp-db.yaml file discovery is skipped entirely — no file needs to exist. This is what lets container platforms that can't mount a project file into the container (Smithery.ai and similar hosted MCP platforms
只显示了开头部分;其余内容请在仓库中阅读