Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
Read-only SQL on CSV files for AI agents. No writes, no network; --root confines file access.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 melihbirim 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.0.2)于前天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Give an AI agent SQL over your CSV files, not your computer. Out of the box it can't write, can't reach the network, can't leave its folder, and can't pour a whole table into the context.
A database is something you load your data *into*. csvql is a query you run on the data where it already lives.
csvql runs SELECT on CSV files where they sit: no import, no ingest, no server. It ships as an MCP server, so an agent can ask a question of a gigabyte file and get back a few hundred tokens instead of the file. Safe by construction, not by configuration: the SQL has no write statements and the binary has no network code. It is about as fast as DuckDB and polars on raw CSV and uses 3 to 11x less memory.
$ csvql "SELECT cab_type, COUNT(*) FROM 'trips.csv' GROUP BY cab_type"
cab_type,COUNT(*) green,32447 yellow,967553
Website · Quick Start · For agents · Install · Performance · SQL · Docs
Agents are getting access to company data. The usual paths are a database connection or uploading files to the model. Both move the data. csvql is the third option: run it next to the data, on your own box, and let the agent query it there. Everything below is checkable in the source.
INSERT, UPDATE, DELETE or DROP. Nothing writes to an input file.std.net, std.http or socket call in the codebase. No telemetry, no update check. strace -f -e trace=network shows an empty trace.csvql --mcp only opens files under its working directory and refuses to start in the filesystem root; --root /data picks the folders instead, and --root / allows everything. /etc/passwd and ../ traversal fail with PathOutsideAllowedRoot.--deny-columns email,ssn refuses any query that reads those columns, in SELECT, WHERE, ORDER BY or a subquery, and SELECT * leaves them out. The agent can still run AVG(salary) GROUP BY dept.SELECT * cannot flood the context. The cap is per call, so an agent that pages with OFFSET can still read a whole table; keep data it must never see out with --deny-columns.--audit appends one JSONL record per query. Over SSH you inherit your existing keys, bastion and logs.Full posture, including two known gaps on macOS and Windows: SECURITY.md.
UNION, no window functions, no RIGHT/FULL/CROSS JOIN (inner and left hash joins only). The only subquery shape is col IN (SELECT ...). These error rather than return wrong data. If you need full SQL, use DuckDB.DATEDIFF, DATEADD and EXTRACT. Others (UPPER, ROUND, ...) are SELECT-only and currently fail in WHERE with a misleading ColumnNotFound.FROM 'sales.xlsx' queries the first sheet (dates come out as YYYY-MM-DD, formulas as their saved value), but the sheet is unpacked in memory first: a 9 MB, 300k row workbook takes about 230 MB and 0.6 s. Other sheets, .xls and .xlsb are not supported.GROUP BY (millions of groups) is also slower.Full list with tracking issues: SQL_REFERENCE.md#known-limitations.
# SQL mode
csvql "SELECT name, salary FROM 'data.csv' WHERE age > 30 ORDER BY salary DESC LIMIT 10"
csvql data.csv "name,salary" "age>30" 10 "salary:desc"
cat data.csv | csvql "SELECT name, age FROM '-' WHERE age > 25" csvql "SELECT * FROM 'data.csv' WHERE status = 'active'" > output.csv
csvql "SELECT name, age FROM 'data.tsv'" -d $'\t' csvql "SELECT name, age FROM 'data.csv' LIMIT 3" --json # or --jsonl, --markdown
csvql --schema data.csv
Flags: -d/--delimiter, --json, --jsonl, --markdown, --no-header, --no-input-header (headerless files get c1..cN), -o/--output, --threads, --strict, --schema, --root, --deny-columns, --audit, --mcp. Details in csvql --help. Simple mode: SIMPLE_QUERY_LANGUAGE.md.
cd ~/data && csvql install # registers csvql in Claude Code and Claude Desktop; --print to dry-run
It runs claude mcp add if the Claude Code CLI is present and merges an mcpServers.csvql entry into the Claude Desktop config, preserving your other servers. Claude Desktop starts MCP servers in /, so the Desktop entry gets --root set to the folder you ran install from (or --root ). Without a --root, csvql --mcp refuses to start in the filesystem root. Restart Claude afterward.
Without MCP, a Claude Code skill teaches the agent to use the csvql CLI whenever a CSV comes up: claude plugin marketplace add melihbirim/csvql then claude plugin install csvql@csvql.
Alternatives: a one-click csvql- .mcpb bundle for Claude Desktop on the Releases page (Settings → Extensions), which asks for the data folder on install, or a manual entry:
{ "mcpServers": { "csvql": { "command": "/usr/local/bin/csvql", "args": ["--mcp", "--root", "/data"] } } }
VS Code (Copilot) takes the same command/args under servers in .vscode/mcp.json with "type": "stdio".
| Tool | Returns |
|---|---|
csv_query(sql) | Results as JSON, capped at about 100 rows / 12 KB |
csv_schema(file) | Column names and a few sample rows |
csv_list(directory?) | CSV files in a directory |
The agent writes ordinary SQL against single-quoted paths:
SELECT customer, SUM(revenue) AS total FROM 'sales.csv' GROUP BY customer ORDER BY total DESC LIMIT 10
SELECT STRFTIME('%Y-%m', order_date) AS month, COUNT(*) FROM 'orders.csv' GROUP BY month ORDER BY 1 SELECT o.id, c.name FROM 'orders.csv' o JOIN 'customers.csv' c ON o.customer_id = c.id WHERE c.region = 'West'
Run csvql on the server next to the data and connect over SSH. Only the SQL and the small result cross the wire. No open port, no reverse proxy, no new credentials:
// client MCP config; csvql runs on the remote server
{ "command": "ssh", "args": ["analyst@dataserver", "csvql", "--mcp", "--root", "/data"] }
Without --root, --mcp is confined to the directory it was started in. Set --root explicitly when an agent or another user can reach csvql, since that directory depends on how the client launches the server. Pair it with an unprivileged OS user and a read-only mount. Checklist: SECURITY.md#hardening-for-on-prem-and-remote-access.
Default settings, no hardening flags. DuckDB is the CLI an agent with a shell would call; it can be locked down with SET enable_external_access = false and read-only mode, but only if someone remembers to.
| An agent asks the tool to... | csvql --mcp | DuckDB 1.5 CLI |
|---|---|---|
write a file (COPY ... TO 'x.csv') | no, there is no write statement | yes |
read /etc/hosts or ../ outside its folder | no, PathOutsideAllowedRoot | yes |
| fetch a URL or install an extension | no, no network code | yes (enable_external_access and autoinstall_known_extensions default to true) |
| return a whole large table in one call | no, about 100 rows / 12 KB cap | yes |
| read a column you marked private | no, with --deny-columns email | yes, unless you build views and only expose those |
peak memory, GROUP BY on a 0.72 GB file | 54 MB | 221 MB (polars 2.0: 1137 MB) |
Check the DuckDB column yourself: duckdb -c "COPY (SELECT 1) TO 'x.csv'" and duckdb -c "SELECT current_setting('enable_external_access')".
Five questions about a taxi dataset cost about 640 tokens over MCP, tool schema included, and the cost does not change with file size. Pasting the 417 MB file would cost about 230 million tokens, which is a feasibility argument, not a savings figure. An agent that already has a shell and runs duckdb -csv uses slightly fewer tokens than csvql over MCP, because MCP returns JSON. The case for csvql with agents is --root, read-only execution, the output cap and memory, not token count. Measure it: bench/bench_tokens.py.
Homebrew (macOS / Linux):
brew install melihbirim/csvql/csvql
Prebuilt binaries from GitHub Releases:
# macOS (Apple Silicon)
curl -L https://github.com/melihbirim/csvql/releases/latest/download/csvql-macos-aarch64.tar.gz | tar xz sudo mv csvql-macos-aarch64 /usr/local/bin/csvql
curl -L https://github.com/melihbirim/csvql/releases/latest/download/csvql-macos-x86_64.tar.gz | tar xz sudo mv csvql-macos-x86_64 /usr/local/bin/csvql
curl -L https://github.com/melihbirim/csvql/releases/latest/download/csvql-linux-x86_64.tar.gz | tar xz sudo mv csvql-linux-x86_64 /usr/local/bin/csvql
Windows (x86_64): download csvql-windows-x86_64.zip from the same page and put csvql-windows-x86_64.exe on your PATH.
Libraries, same engine, no subprocess:
pip install csvql-query # Python: csvql.query(), .query_df(), .query_csv() → docs/PYTHON.md
npm install csvql-query # Node.js: require('csvql-query'), plus a csvql-query CLI → docs/NODE.md
From source, Zig 0.15.2:
git clone https://github.com/melihbirim/csvql.git && cd csvql
zig build -Doptimize=ReleaseFast sudo cp zig-out/bin/csvql /usr/local/bin/
Shell completions for bash and zsh live in completions/. They complete the flags in csvql --help, the install subcommand and file paths.
# bash: add to ~/.bashrc (on macOS, Terminal opens login shells, so use ~/.bash_profile)
source /path/to/csvql/completions/csvql.bash
mkdir -p ~/.zsh/completions cp completions/_csvql ~/.zsh/completions/_csvql
Same GROUP BY department on raw CSV, one process per engine, Apple M2 Pro with 16 GB. Peak memory and wall time:
| File | csvql | DuckDB | polars 2.0 |
|---|---|---|---|
| 0.69 GB | 74 MB / 0.2s | 254 MB / 0.8s | 1151 MB / 0.6s |
| 1.89 GB | 74 MB / 0.4s | 253 MB / 1.2s | 2107 MB / 1.1s |
| 3.80 GB | 75 MB / 0.7s | 275 MB / 2.1s | 2666 MB / 9.8s |
| 8.14 GB | 74 MB / 2.4s | 367 MB / 5.5s | 1754 MB / 26.7s |
Memory is flat because an aggregat
只显示了开头部分;其余内容请在仓库中阅读