Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/eltonf/postgres-mcp-server/claude-mdgit clone --depth 1 https://github.com/eltonf/postgres-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/eltonf/postgres-mcp-server/claude-md)<a href="https://agentmods.dev/instructions/eltonf/postgres-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/eltonf/postgres-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00238 | $0.00238 |
| Opus 5 | $0.00119 | $0.00119 |
| Sonnet 5 | $0.00048 | $0.00048 |
| Haiku 4.5 | $0.00024 | $0.00024 |
Grade A, and why
postgres-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
CLAUDE.md
This repository is postgres-mcp-server, a PostgreSQL-specific MCP server for schema introspection and guarded read-only queries.
Architecture
src/index.tsregisters MCP tools and starts the stdio server.src/core/*contains reusable code intended for future extraction.src/postgres/*contains PostgreSQL-specific code:pgconnection pool- identifier helpers
information_schemaandpg_catalogcatalog queries
src/handlers/*adapts MCP tool input/output to the PostgreSQL implementation.
Design Notes
- One MCP server instance connects to one configured PostgreSQL database.
DB_SCHEMAdefaults topublic; tool calls may overrideschema.execute_queryaccepts read-onlySELECT/WITHqueries, validates access control, and enforcesLIMIT.- Routine/function definition tools are intentionally deferred for v1.
Development Commands
npm run build
npm test
npm start
Use neutral examples such as app_db, customers, orders, products, and order_items.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 31 lines · 238 tokens per session scan A abdeef1a503d
postgres-mcp-server CLAUDE.md is an instructions file published in the GitHub repository eltonf/postgres-mcp-server (0 stars, last pushed 3mo ago), licensed MIT. It adds 238 tokens to every session, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
expense-budget-tracker AGENTS.md
Instructions for kirill-markin/expense-budget-tracker, covering expense-budget-tracker, rules, components, supported clients and key paths.
postgres-skills AGENTS.md
Instructions for neondatabase/postgres-skills, covering agents.md, repository overview, creating a new skill, directory structure and naming conventions.
pg_exporter AGENTS.md
Instructions for nbari/pg_exporter, covering agents.md, project shape, first steps, devpod workflow (preferred) and local commands.
db-connect-mcp CLAUDE.md
Instructions for yugui923/db-connect-mcp, covering claude.md, project overview, pre-commit requirements, 1. format code and 2. lint code.
Synapsor-Runner AGENTS.md
Instructions for Synapsor/Synapsor-Runner, covering agent guide for synapsor runner, first commands, what not to change casually, how the flow works and add a capability without reading dist/.
ai-dba-workbench CLAUDE.md
Claude Code instructions for pgEdge/ai-dba-workbench, covering claude standing instructions, primary agent role, trivial-edit carve-out, project structure and key files.