postgres-expert

postgres-expert is an agent for Claude Code from pgEdge/pgedge-postgres-mcp. It costs 0 tokens per session (1,786 once invoked), scanned A, original, PostgreSQL.

A PostgreSQL database administration and troubleshooting expert. PostgreSQL is a database system used to store and query application data.

In plain words
What is it for?
Use it for PostgreSQL monitoring, configuration, performance, administration, and troubleshooting questions.
Why use it?
It provides focused guidance for diagnosing database problems and making configuration or administration decisions.

Agent for Claude Code

Install

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.

agentmods
npx agentmods add agents/pgedge/pgedge-postgres-mcp/postgres-expert
Clone the repo
git clone --depth 1 https://github.com/pgEdge/pgedge-postgres-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for postgres-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/pgedge/pgedge-postgres-mcp/postgres-expert.svg)](https://agentmods.dev/agents/pgedge/pgedge-postgres-mcp/postgres-expert)
Your own site
<a href="https://agentmods.dev/agents/pgedge/pgedge-postgres-mcp/postgres-expert"><img src="https://agentmods.dev/badge/agents/pgedge/pgedge-postgres-mcp/postgres-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01786
Opus 5 $0.00000 $0.00893
Sonnet 5 $0.00000 $0.00357
Haiku 4.5 $0.00000 $0.00179

Measured 3d ago against content hash 59ebc050255c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

postgres-expert 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 3d 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.

.claude/agents/postgres-expert.md · 119 lines

The source is not reproduced here

Licensed PostgreSQL

The repository is licensed PostgreSQL, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

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.

  1. 3d ago First seen · 119 lines · 0 tokens per session scan A 59ebc050255c

Subscribe to this mod's changes

postgres-expert is an agent published in the GitHub repository pgEdge/pgedge-postgres-mcp (221 stars, last pushed 8d ago), licensed PostgreSQL. It costs nothing until one of its globs matches a file; then it loads 1,786 tokens. 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-30.

Related

Other agents, from other repositories

db-postgres-expert

Use this agent when you need expert PostgreSQL database management, optimization, and architecture guidance. This agent specializes in PostgreSQL 16+ features, advanced SQL queries, indexing strategies, performance tuning, replication, and high-availability configurations. Examples: Context: User needs to optimize…

andisab/swe-marketplace · 403 tokens

postgres-expert

Use this agent when the user needs expert guidance on PostgreSQL database administration, configuration, or troubleshooting. Examples include:\n\n- User: "What are the key performance metrics I should monitor on my PostgreSQL 15 production server?"\n Assistant: "Let me use the postgres-expert agent to provide…

pgEdge/ai-dba-workbench · 0 tokens

database-performance-reviewer

Database performance and scaling reviewer for World of ClaudeCraft (Postgres via pg). Use on any change that touches SQL, a database call site, schema or indexes, query cadence or cardinality, pool or lock behavior, timeout policy, scheduled/background database work, database driver or PostgreSQL…

levy-street/world-of-claudecraft · 132 tokens

doctor-strange

Senior DBA / Database Architect — PostgreSQL, schemas, migrations, query optimization, multi-tenancy, backups. Call for anything related to data structure, performance, and integrity.

CohesiumAI/assemble · 39 tokens

database-architect

Expert database architect for Sovereign Watch schema design, PostgreSQL optimizations, vector embeddings, and spatial data. Use for database operations, migrations, indexing, timescale setups, and query optimization. Triggers on database, sql, schema, postgres, index, table, pgvector, postgis, timescale.

d3mocide/Sovereign_Watch · 67 tokens

database-expert

Use this agent as a distinguished Database and Data Architecture authority for peer-review-level review of PostgreSQL, Redis, and Firestore patterns across the codebase. Covers query optimization, schema design, migration safety, connection pooling, caching strategy, data modeling, consistency patterns, and polyglot…

asiflow/claude-nexus-hyper-agent-team · 313 tokens