Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Turn Claude Code into a long-term collaborator on PostgreSQL internals — cited knowledge corpus, agent skills, slash commands, and task-shaped scenarios for backend hacking.
From the repo.
Turn Claude Code into a long-term collaborator on PostgreSQL internals — a cited knowledge corpus, agent skills, slash commands, and task-shaped scenarios for serious backend hacking.
pg-claude is a meta repo that sits next to an upstream PostgreSQL checkout
and gives Claude Code (Anthropic's CLI) the muscle memory of a long-time PG
hacker: where things live in the tree, which subsystem owns which invariant,
how to plan a patch, how to write a pgsql-hackers-ready commit message, and
which file:line to cite for every claim.
A meta repo of skills, slash commands, scenarios, idioms, and a cited
knowledge corpus that turns Claude Code into a PostgreSQL-internals
collaborator. It does not fork PG — source/ is a read-only reference
clone of upstream master, and dev/ is a disposable scratch clone where
patches live.
The numbers below come from the current corpus on master:
knowledge/files/ — 100% strict coverage of the
in-scope treeknowledge/issues/
cross-referencing pgsql-hackers threads and CF entries/setup-pg, /pg-start, /pg-test, /pg-psql, /pg-plan,
/pg-implement, /pg-review, …RelationGetSmgr semantics.# 1. Lay out the three side-by-side repos
mkdir -p ~/Work/postgres && cd ~/Work/postgres
git clone https://github.com/postgres/postgres postgresql
git clone --no-hardlinks postgresql postgresql-dev
git clone https://github.com/matejformanek/postgres-claude postgres-claude
# 2. Open Claude Code in the meta repo
cd postgres-claude && claude
# 3. Inside Claude Code
> /setup-pg # configure + build PG into dev/build-debug
> /pg-start # boot the dev cluster
> /pg-psql # connect
Symlinks source/ -> ../postgresql/ (read-only reference) and
dev/ -> ../postgresql-dev/ (mutable workspace) resolve automatically;
every file:line citation in the corpus points into source/… so links do
not rot.
Most LLM-assisted PG work fails the same way: confident-sounding wrong claims about locking order, smgr lifetime, or what a given subsystem actually does. pg-claude attacks that head-on with three working rules baked into every skill, scenario, and review checklist:
source/<path>:<line> — or be tagged [unverified].[verified-by-code], [from-README],
[from-comment], [inferred], [unverified]. No bare assertions.dev/ on a feature
branch; meta artifacts (knowledge, sessions, plans) live in
postgres-claude/. They never mix in a single commit.See CLAUDE.md for the full project contract and
.claude/rules/pg-implement-discipline.md
for the 12 implementation rules.
Real working sessions, end-to-end:
sessions/2026-06-16-scenarios-layer.md
— designing the task-shaped scenarios layer (add-new-data-type,
add-new-sql-keyword, …) on top of the existing knowledge corpus.sessions/2026-06-15-phase-a-close-100pct-coverage.md
— closing Phase A at 100% strict coverage across the in-scope PG tree.sessions/ log captures 50+ working sessions:
subsystem deep-dives, multi-day patch reviews, cloud-routine intake,
and the experiment notes that shaped the current skill set.For a quick map of how a Claude Code session is supposed to feel inside
this repo, start with
.claude/skills/pg-claude/SKILL.md —
the master navigator skill.
Active, single-maintainer, experimental. The knowledge corpus is at 100%
strict coverage of the in-scope tree; skills, scenarios, and idioms are
expanding. There is no release cadence yet — master is the trunk and
progress/STATE.md is always the source of truth on
what is and isn't done.
PostgreSQL License — same as upstream PG, so anything you
copy from here is compatible with sending it back to pgsql-hackers.
See CONTRIBUTING.md. In short: the meta repo and
upstream PG are two distinct contribution paths and it matters which one
your change belongs to. Upstream PG changes go through
pgsql-hackers, not GitHub PRs.
Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.
Tool
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "{MCP_ENDPOINT_URL}"
}
}
}Paste into mcpServers in the config file. Restart Cursor after saving.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.