Mmcp.market

pgops MCP server

by arzharch·io.github.arzharch/pgops-mcp·v0.1.9

Safe, audited PostgreSQL operations for AI agents: queries, migrations, EXPLAIN, containers

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed pgops yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

pgops tools (18, 3 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • container.execwrite action

    Run a read-only diagnostic command inside a container. Requires --approval-mode AND a confirmation token, and the command must be in the diagnostic allowlist — this tool does not offer an arbitrary shell.

  • container.logs

    Tail a container's logs, optionally filtered to a minimum Postgres severity (DEBUG/INFO/NOTICE/LOG/WARNING/ERROR/FATAL/PANIC).

  • container.restart

    Restart a container. Requires --approval-mode AND a confirmation token. Dropping connections is disruptive; relay the reason to the user first.

  • container.stats

    CPU, memory and IO snapshot for a container. Takes about a second: a CPU percentage requires two samples to compute a delta.

  • db.health

    Health snapshot: connections, cache hit ratio, dead tuples, long-running queries, waiting locks — each finding with a severity and explanation.

  • env.correlate

    Join db.health findings with the database container's resource usage and return plain-language hints about whether container pressure explains the database's symptoms.

  • env.topology

    Discover containers, compose projects, ports and health, and identify which container serves this server's DSN (matched by published host port).

  • index.advise

    Index recommendations: unused indexes, redundant indexes, sequential-scan hotspots, and the slowest statements by total time.

  • migration.apply

    Apply a plan produced by migration.plan.

  • migration.describe

    Plan a schema change described in plain English.

  • migration.history

    Applied-migration history from the ledger, including any interrupted (in_flight) migration. Each entry carries the `ledger_id` that migration.rollback and migration.resolve take.

  • migration.plan

    Plan a migration from a target schema. Executes nothing.

  • migration.resolve

    Close out an interrupted (in_flight) migration, unblocking further ones.

  • migration.rollback

    Reverse an applied migration by its ledger id (from migration.history).

  • query.explain

    Explain a statement and return the plan plus actionable verdicts.

  • query.readwrite action

    Execute a read-only statement (SELECT/WITH/EXPLAIN only).

  • query.writewrite action

    Execute a mutating statement (INSERT/UPDATE/DELETE/DDL).

  • schema.inspect

    Inspect database structure: tables, columns, indexes, constraints, sizes.

Public scan report

scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it

no findings
  • Code scan36 source files scanned25/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 19 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install directly

claude mcp add pgops-mcp -- uvx pgops-mcp
Add to Cursor

pgops: common questions

Is pgops MCP server safe?
Mostly: it is graded B (83/100). Read the pgops safety report
How do I install pgops?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does pgops need an API key?
Yes. The registry entry asks for PGOPS_DSN, PGOPS_READONLY_DSN.
Is pgops maintained?
The last commit was 19 days ago (2026-09-01). The latest release is v0.1.9.

More from arzharch