Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
Production MCP server for Postgres, Oracle, Snowflake, BigQuery, Redshift, DuckDB, MotherDuck.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MCP_TRANSPORT, WAREHOUSE_TYPE, MCP_API_KEYS, DUCKDB_PATH, MOTHERDUCK_TOKEN, PG_HOST, PG_DATABASE, PG_USER, PG_PASSWORD, ORACLE_USER, ORACLE_PASSWORD, ORACLE_CONNECT_STRING, SNOWFLAKE_ACCOUNT, SNOWFLAKE_USER, SNOWFLAKE_PRIVATE_KEY_PATH, BIGQUERY_PROJECT, GOOGLE_APPLICATION_CREDENTIALS, GUARDRAIL_PII_MASK, MCP_RATE_LIMIT_RPM标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"warehouse": {
"command": "npx",
"args": [
"-y",
"warehouse-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"WAREHOUSE_TYPE": "your-value",
"MCP_API_KEYS": "your-value",
"DUCKDB_PATH": "your-value",
"MOTHERDUCK_TOKEN": "your-value",
"PG_HOST": "your-value",
"PG_DATABASE": "your-value",
"PG_USER": "your-value",
"PG_PASSWORD": "your-value",
"ORACLE_USER": "your-value",
"ORACLE_PASSWORD": "your-value",
"ORACLE_CONNECT_STRING": "your-value",
"SNOWFLAKE_ACCOUNT": "your-value",
"SNOWFLAKE_USER": "your-value",
"SNOWFLAKE_PRIVATE_KEY_PATH": "your-value",
"BIGQUERY_PROJECT": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GUARDRAIL_PII_MASK": "your-value",
"MCP_RATE_LIMIT_RPM": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add warehouse --env MCP_TRANSPORT=your-value --env WAREHOUSE_TYPE=your-value --env MCP_API_KEYS=your-value --env DUCKDB_PATH=your-value --env MOTHERDUCK_TOKEN=your-value --env PG_HOST=your-value --env PG_DATABASE=your-value --env PG_USER=your-value --env PG_PASSWORD=your-value --env ORACLE_USER=your-value --env ORACLE_PASSWORD=your-value --env ORACLE_CONNECT_STRING=your-value --env SNOWFLAKE_ACCOUNT=your-value --env SNOWFLAKE_USER=your-value --env SNOWFLAKE_PRIVATE_KEY_PATH=your-value --env BIGQUERY_PROJECT=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GUARDRAIL_PII_MASK=your-value --env MCP_RATE_LIMIT_RPM=your-value -- npx -y warehouse-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"warehouse": {
"command": "npx",
"args": [
"-y",
"warehouse-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"WAREHOUSE_TYPE": "your-value",
"MCP_API_KEYS": "your-value",
"DUCKDB_PATH": "your-value",
"MOTHERDUCK_TOKEN": "your-value",
"PG_HOST": "your-value",
"PG_DATABASE": "your-value",
"PG_USER": "your-value",
"PG_PASSWORD": "your-value",
"ORACLE_USER": "your-value",
"ORACLE_PASSWORD": "your-value",
"ORACLE_CONNECT_STRING": "your-value",
"SNOWFLAKE_ACCOUNT": "your-value",
"SNOWFLAKE_USER": "your-value",
"SNOWFLAKE_PRIVATE_KEY_PATH": "your-value",
"BIGQUERY_PROJECT": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GUARDRAIL_PII_MASK": "your-value",
"MCP_RATE_LIMIT_RPM": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"warehouse": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"warehouse-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"WAREHOUSE_TYPE": "your-value",
"MCP_API_KEYS": "your-value",
"DUCKDB_PATH": "your-value",
"MOTHERDUCK_TOKEN": "your-value",
"PG_HOST": "your-value",
"PG_DATABASE": "your-value",
"PG_USER": "your-value",
"PG_PASSWORD": "your-value",
"ORACLE_USER": "your-value",
"ORACLE_PASSWORD": "your-value",
"ORACLE_CONNECT_STRING": "your-value",
"SNOWFLAKE_ACCOUNT": "your-value",
"SNOWFLAKE_USER": "your-value",
"SNOWFLAKE_PRIVATE_KEY_PATH": "your-value",
"BIGQUERY_PROJECT": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GUARDRAIL_PII_MASK": "your-value",
"MCP_RATE_LIMIT_RPM": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MCP_TRANSPORT envDUCKDB_PATH envPG_HOST envPG_DATABASE envPG_USER envORACLE_USER envORACLE_CONNECT_STRING envSNOWFLAKE_ACCOUNT envSNOWFLAKE_USER envSNOWFLAKE_PRIVATE_KEY_PATH envBIGQUERY_PROJECT envGOOGLE_APPLICATION_CREDENTIALS envGUARDRAIL_PII_MASK envMCP_RATE_LIMIT_RPM env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 kalehdoo 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:WAREHOUSE_TYPE, MCP_API_KEYS, MOTHERDUCK_TOKEN, PG_PASSWORD, ORACLE_PASSWORD
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.2)于6个月前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Production MCP (Model Context Protocol) server for your data warehouse. Read-only enforcement, five-tier role-based access, optional warehouse-role impersonation (for native RLS / CLS), JSONL audit log, optional output PII masking, optional semantic-metadata layer (glossary + table docs) with per-session toggle. Self-host the Docker image, install via npx, or wait for the upcoming managed cloud variant.
Status: v0.4.x — production-ready for the v1 warehouse list. See CHANGELOG for what shipped in each release.
Warehouse MCP in action using Cursor
| Warehouse | Adapter docs |
|---|---|
| Postgres 12+ | docs/adapters/postgres.md |
| Oracle 12c+ (Thin mode, no Instant Client) | docs/adapters/oracle.md |
| Amazon Redshift (cluster + Serverless) | docs/adapters/redshift.md |
| Snowflake (key-pair auth) | docs/adapters/snowflake.md |
| Google BigQuery | docs/adapters/bigquery.md |
DuckDB (local file or :memory:) | docs/adapters/duckdb.md |
MotherDuck (cloud-hosted DuckDB, md: paths) | docs/adapters/duckdb.md |
Databricks SQL is a fast-follow.
| Tool | Purpose |
|---|---|
query | Execute a SELECT (validator-enforced read-only, dialect-aware) |
list_schemas, list_tables, describe_table | Browse the catalog |
find_columns | Search column names across the warehouse with a LIKE pattern |
get_foreign_keys | Discover declared FK relationships for safe joins |
get_view_definition | Read the SQL body of a view (where business logic lives) |
sample_table, count_rows | Peek at data, check size before scanning |
column_stats, top_values | Profile a single column |
time_series | Bucket by hour/day/week/month/quarter/year — dialect-correct everywhere |
search_value | Find a literal across a table's text columns |
glossary_lookup | Read business-glossary terms from the semantic layer (in-memory, no warehouse I/O) |
schema_lookup | Read schema-level docs — purpose, owner, refresh, table list |
table_lookup | Read full semantic doc for one table — description + column metadata |
| Role | Tools allowed |
|---|---|
semantic_only | Only the three semantic-lookup tools — zero warehouse access; pair with semantic=on for a docs-viewer persona |
metadata_only | Catalog discovery + semantic lookups — never reads row data |
reader_restricted | Aggregates / samples / time series — no arbitrary SELECT |
reader | Adds query and search_value (the general analyst tier) |
admin | Everything; future write tools when ENABLE_WRITE_TOOLS ships |
Per-key role assigned via MCP_API_KEYS=key:role:set_role=warehouse_role. The optional set_role= directive issues SET ROLE on Postgres/Redshift so the warehouse's own RLS / CLS / masking policies enforce per-key access — no policy duplication in MCP. The optional semantic=on|off directive overrides SEMANTIC_DEFAULT for that one key, controlling whether the session sees the warehouse://semantic/* resources (see docs/semantic-metadata.md).
For deployments with multiple existing DB roles (finance, hr, payroll, etc.) and many human users, see docs/multi-role-deployment.md — walks through mapping ~10 DB roles to MCP keys, the recommended / _restricted pattern, and when to graduate from static keys to OIDC.
{ "mcpServers": { "warehouse-admin-semanticon": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer admin-key-change-me" ] }, "warehouse-admin-semanticoff": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer admin-key-nosemantic" ] }, "warehouse-reader-semanticon": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer reader-key-change-me" ] }, "warehouse-reader-semanticoff": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer reader-key-nosemantic" ] }, "warehouse-reader-restricted-semanticon": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer restricted-key-change-me" ] }, "warehouse-reader-restricted-semanticoff": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer restricted-key-nosemantic" ] }, "warehouse-metadata-only-semanticon": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer metadata-only-key-change-me" ] }, "warehouse-metadata-only-semanticoff": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer metadata-only-key-nosemantic" ] }, "warehouse-docs-viewer-only": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "http://localhost:3001/mcp", "--header", "Authorization: Bearer docs_viewer_key_change_me" ] } } }
git clone https://github.com/kalehdoo/warehouse-mcp.git
cd warehouse-mcp docker compose up
The same image bundles every adapter; pick one with WAREHOUSE_TYPE plus the matching credentials. For credentials, prefer --env-file (or your secrets manager) over inline -e flags so passwords don't end up in shell history.
# Postgres (REDSHIFT_* env vars for Redshift; same driver under the hood)
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=postgres \ -e PG_HOST=db -e PG_DATABASE=analytics -e PG_USER=mcp_reader -e PG_PASSWORD=... \ -e MCP_API_KEYS="$(openssl rand -hex 24):reader" \ ghcr.io/kalehdoo/warehouse-mcp:latest
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=oracle \ -e ORACLE_USER=MCP_READER -e ORACLE_PASSWORD=... \ -e ORACLE_CONNECT_STRING="db.host:1521/SERVICE" \ ghcr.io/kalehdoo/warehouse-mcp:latest
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=snowflake \ -e SNOWFLAKE_ACCOUNT=xy12345.us-east-1 -e SNOWFLAKE_USER=MCP_READER \ -e SNOWFLAKE_PRIVATE_KEY_PATH=/keys/snowflake.p8 \ -e SNOWFLAKE_WAREHOUSE=COMPUTE_WH -e SNOWFLAKE_DATABASE=ANALYTICS \ -v /opt/keys:/keys:ro \ ghcr.io/kalehdoo/warehouse-mcp:latest
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=bigquery \ -e GOOGLE_APPLICATION_CREDENTIALS=/keys/bq-sa.json \ -e BIGQUERY_PROJECT=my-gcp-project \ -v /opt/keys:/keys:ro \ ghcr.io/kalehdoo/warehouse-mcp:latest
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=duckdb -e DUCKDB_PATH=:memory: \ ghcr.io/kalehdoo/warehouse-mcp:latest
docker run -d -p 3001:3001 \ -e WAREHOUSE_TYPE=duckdb -e DUCKDB_PATH=md:my_database \ -e MOTHERDUCK_TOKEN=... \ ghcr.io/kalehdoo/warehouse-mcp:latest
npx warehouse-mcp@latest init # interactive setup; writes .env, prints Claude Desktop snippet
npx warehouse-mcp doctor # verify the connection without booting the server npx warehouse-mcp start # bind the MCP server to MCP_SERVER_PORT (default 3001)
Then point an AI client at it. Drop-in configs:
For a step-by-step walkthrough from "I have a warehouse" to "Claude is querying it", see the onboarding guide. For common errors, see troubleshooting.
nvm use # Node 20
npm install npm test # unit tests, sub-second npm run lint cp .env.example .env
For testcontainers integration tests against real Postgres: npm run test:integration (Docker required).
Teach the AI agent what your warehouse means, not just what's in it. Drop YAML files describing your business glossary and table semantics into a directory, point SEMANTIC_DIR at it, and the agent gets two access channels into the same in-memory index:
warehouse://semantic/* — what tool-aware clients (Cursor, MCP Inspector) read proactively before issuing queries.glossary_lookup, schema_lookup, table_lookup — same data via the tool channel, for clients (Claude Desktop) whose UI is tool-centric and may suppress resource-only servers. Pure in-memory Map.gets — no warehouse I/O, no audit cost beyond a normal tool log line.Format follows dbt's schema.yml v2 with one extension (meta.schema: per model). Customers using dbt can point SEMANTIC_DIR at their existing models/ directory and reuse most of what they have. See docs/semantic-metadata.md and the starter docs/semantic-templates/.
Whether a session sees the semantic layer is independent of whether the YAMLs are loaded — SEMANTIC_DIR controls loading; SEMANTIC_DEFAULT=on|off and the per-key semantic=on|off option (or include_semantic JWT claim) control per-session visibility. The YAMLs are always loaded and validated at boot so you can flip a kill-switch without restarting. Three precedence layers, high
只显示了开头部分;其余内容请在仓库中阅读