Supabase
MCP server for interacting with the Supabase platform
作者提供的说明(英文原文)
Find why a PostgreSQL query is slow from its EXPLAIN output, without a database connection.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"slowplan": {
"command": "npx",
"args": [
"-y",
"slowplan",
"serve"
]
}
}
}在终端中运行这条命令
claude mcp add slowplan -- npx -y slowplan serve粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"slowplan": {
"command": "npx",
"args": [
"-y",
"slowplan",
"serve"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"slowplan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"slowplan",
"serve"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 GillMacedo 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于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、图片和脚本已被移除。链接会离开本站。
An MCP server and CLI that reads PostgreSQL `EXPLAIN` output and tells you where the time goes and what to try first. It works from the plan text alone, so it never connects to your database.
A long EXPLAIN ANALYZE is hard to read, and a mistake is easy: Postgres reports per-worker averages under parallel plans, and the slowest-looking node often isn't where the time went. slowplan works out the real time for each step, and ranks problems such as sequential scans throwing away rows, wrong row estimates, sorts and hashes spilling to disk, and nested loops run many times.
EXPLAIN ANALYZE output."As a Claude Code plugin:
claude plugin marketplace add GillMacedo/slowplan claude plugin install slowplan@slowplan-marketplace
As an MCP server, for any client:
{"mcpServers": {"slowplan": {"command": "npx", "args": ["-y", "slowplan@0.1.0", "serve"]}}}
As a CLI, with Node 18 or newer:
npx slowplan review plan.txt
Or with Go 1.27 or newer: go install github.com/GillMacedo/slowplan@latest.
Get a plan with EXPLAIN (ANALYZE, BUFFERS) , in text or JSON. `ANALYZE` really runs the query, so wrap anything that writes in a transaction you roll back.
Here's a real plan from PostgreSQL 17, on made-up tables:
$ make demo Execution 48.9 ms, planning 0.3 ms
Where the time goes: 80.8% 39.5 ms Bitmap Heap Scan on orders 3.9% 1.9 ms Bitmap Index Scan on orders_status_idx
HIGH PG102 Bitmap Heap Scan on orders The index doesn't cover the whole filter. Read and threw away 84857 rows to keep 857, using filter (bucket = 7). Try: Candidate to test: CREATE INDEX CONCURRENTLY ON orders (bucket), or add these columns to the index in use.
These are leads from one run. Test a fix on realistic data before relying on it.
To check a change, compare the plans from before and after:
slowplan compare before.txt after.txt
On a real example in examples/, adding the index that slowplan suggested took a query from about 25 ms to 0.1 ms.
Add --json for JSON, or --fail-on high to exit 1 in CI. Use - to read from stdin.
| Rule | Finds |
|---|---|
| PG101 | A sequential scan throwing away most of the rows it reads |
| PG102 | An index that doesn't cover the whole filter |
| PG103 | A join producing rows and then throwing them away |
| PG104 | A bitmap recheck throwing away many rows |
| PG105 | Row estimates off by 10 times or more |
| PG106 | A nested loop's inner side running 1,000 times or more |
| PG107 | A sort spilling to disk |
| PG108 | A hash table split into batches on disk |
| PG109 | Fewer parallel workers than planned |
| PG110 | An index-only scan still visiting the table often |
| PG111 | A bitmap that became lossy |
| PG112 | Reading about 80 MB or more from outside shared buffers |
| PG113 | Planning slower than running the query |
| PG114 | JIT taking 100 ms or more |
Severity comes from the share of the query's time: high is 20% or more, and low is under 5% or under 1 ms. These thresholds are judgment calls.
| Tool | Does |
|---|---|
postgres_plan_review | Reviews one plan, from text or a file |
postgres_plan_compare | Compares plans from before and after a change |
slowplan says so.slowplan stays on your machine, but your MCP client sends tool results to its model.How do I read EXPLAIN ANALYZE output? Give it to slowplan, which shows where the time goes.
Why is Postgres doing a sequential scan? Often there's no useful index, or the filter keeps so many rows that an index wouldn't help. PG101 shows how many rows were thrown away.
How do I find out if a sort or hash is using disk? PG107 and PG108 flag them.
How is this different from pev2 or postgres-mcp? pev2 is a visualizer for people. postgres-mcp connects to a live database. slowplan gives an agent ranked findings from plan text, with no database access.
PG101, PG102, PG104 to PG112 fired on real plans from a PostgreSQL 17 database with made-up tables, which are in examples/ in both JSON and text. PG103, PG113 and PG114 are only tested on written examples. MCP tool calls were tested through the MCP Inspector. It hasn't been used on a real production query yet.
Contributions are welcome, from people and from people working with AI agents. See CONTRIBUTING.md. Good first issues are listed here.
feat: goes under Added and fix: under Fixed.make test must pass. Changes over 30 lines need a linked open issue (Closes # ), and a PR can have at most 800 changed lines. If something is missing, a comment tells you what to fix.This project was largely generated with Claude Code and reviewed by its maintainer.
I'm Giulliano Macedo, and I build developer tools at GoTech Solutions. Follow along or get in touch:
If slowplan found your slow query, a star helps others find it.
Built by Giulliano Macedo, GoTech Solutions · LinkedIn · X