MCP Percona Pg logo

MCP Percona Pg

Manage Percona PostgreSQL clusters and PgBouncer on Kubernetes through guarded MCP tools.

Install MCP Percona Pg

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-percona-pg": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-percona-pg"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

mcp-percona-pg connects MCP-capable clients to Percona Operator for PostgreSQL resources in Kubernetes through the server's kube-config access. It reports cluster topology, status, connection endpoints, PgBouncer settings, PostgreSQL parameters, backups, and restores, and can also perform gated operational changes. Read-only mode is the default, with namespace and cluster allowlists, protected clusters, dry-run support, audit logging, and separate controls for restore, upgrade, and delete actions. Reach for it when an agent needs controlled visibility or lifecycle management for Percona PostgreSQL v2 clusters without exposing database credentials.

Use cases

  • Inspect Percona PostgreSQL cluster health and Patroni membership
  • Review or change PgBouncer pooling settings
  • Tune PostgreSQL parameters through Patroni configuration
  • Create backups and perform gated recovery operations

Key features

  • Percona PostgreSQL and PgBouncer cluster discovery
  • Patroni status and readiness inspection
  • PgBouncer and PostgreSQL configuration management
  • Backup, restore, and point-in-time recovery workflows
  • Namespace, cluster, and protected-resource controls
  • Read-only, dry-run, confirmation, and audit safeguards

Tools9

What MCP Percona Pg lets your agent do. Expand a tool for its parameters.

Verified live~994 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 78d

What it can do

From the 9 tools this server returned when we ran it; 9 declare their own safety hints.

Handles credentials · 1Makes network requests · 9Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age61 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @dockndevai/mcp-percona-pg (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads637Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Percona Pg works

What mcp-percona-pg does

mcp-percona-pg exposes Percona Operator for PostgreSQL v2 resources to MCP clients. It works with Kubernetes objects including PerconaPGCluster, PerconaPGBackup, PerconaPGRestore, and PerconaPGUpgrade, using the kube-config available to the process. The server covers PostgreSQL and PgBouncer operations such as cluster discovery, status inspection, pooling configuration, parameter tuning, scaling, backups, recovery, standby promotion, upgrades, and deletion.

Database passwords are not read or returned. Connection details include service hosts, ports, and declared usernames only.

How it works

The MCP client starts the published npm package with npx, and the server uses Kubernetes access to inspect or modify the operator's custom resources. Access is separated into three modes:

  • read-only exposes inspection tools.
  • read-write adds routine changes such as scaling, pooling updates, parameter changes, pauses, extensions, and backups.
  • admin adds higher-impact operations, subject to additional gates.

Namespace and cluster allowlists restrict the resources visible to the agent. Protected clusters remain readable but cannot be changed, restored, or deleted. Restore, upgrade, and delete each require their own opt-in. High-impact operations can require typed confirmation, and destructive actions use MCP human-approval prompts when supported. Dry-run mode validates operations without applying them, while audit logging records guarded actions as JSON lines.

Setup and configuration

The prerequisites are a Kubernetes cluster running Percona Operator for PostgreSQL v2 and a kube-config that the server can read. A narrowly scoped ServiceAccount and RBAC policy can limit access to the operator namespaces and pgv2.percona.com resources the agent should see.

Install from npm at runtime with:

Terminal
npx -y @dockndevai/mcp-percona-pg

Start with PERCONA_MODE=read-only. The configuration also supports namespace and cluster allowlists, protected cluster names, separate restore/upgrade/delete permissions, confirmation requirements, dry-run behavior, audit logging, and requiring human approval when the client cannot perform MCP elicitation. The package includes an .env.example with the available variables.

For development, install dependencies, build the project, and run node dist/index.js with the environment configuration in place.

Tools and capabilities

Read operations include:

  • Listing kube-config contexts and Percona PostgreSQL clusters.
  • Viewing cluster summaries, raw status, Patroni members, readiness, conditions, and hosts.
  • Inspecting primary and replica service endpoints and declared user names.
  • Reading PgBouncer replicas, pool mode, global pool settings, and Patroni-managed PostgreSQL parameters.
  • Listing backup and restore resources with state and related metadata.

Write operations can scale PostgreSQL or PgBouncer, change PgBouncer settings, merge PostgreSQL parameters through Patroni's dynamic configuration, pause or resume clusters, toggle built-in extensions, and create backups. Administrative operations cover restores, point-in-time recovery, major-version upgrades, standby promotion, and deletion of backups or clusters, subject to the configured mode and safety gates.

Limitations and notes

The server manages the Percona Operator custom resources rather than editing database files directly. PostgreSQL tuning must use spec.patroni.dynamicConfiguration.postgresql.parameters; direct postgresql.conf edits are reverted by Patroni. The server requires Kubernetes access to the relevant resources, and its connection-information tool intentionally omits secret values and passwords. Client support for interactive human approval affects whether operations requiring MCP elicitation can proceed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Percona Pg

mcp-percona-pg is an MCP server that connects AI clients to Percona Operator for PostgreSQL v2 resources on Kubernetes. Its main tools inspect clusters, status, endpoints, PgBouncer settings, PostgreSQL parameters, backups, and restores, with additional gated tools for scaling, tuning, recovery, upgrades, and lifecycle actions.

Install it at runtime with `npx -y @dockndevai/mcp-percona-pg`. Configure the command in an MCP client, set the mode and any required scope controls, and provide access to a readable Kubernetes kube-config.

Yes, mcp-percona-pg works with Cursor through its `.cursor/mcp.json` configuration. Run the npm package with `npx`, set `PERCONA_MODE` such as `read-only`, and optionally define the namespace or other safety controls.

It protects them with read-only defaults, namespace and cluster allowlists, protected-cluster settings, separate restore/upgrade/delete gates, confirmations, dry-run mode, and audit logging. Protected clusters can be read but not mutated, restored, or deleted.

No, it never returns database credentials. Its connection-information tool provides service hosts, ports, and declared usernames, while passwords remain in Kubernetes Secrets.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Percona Pg AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-percona-pg?style=directory)](https://allmcps.com/mcp/mcp-percona-pg)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-percona-pg"><img src="https://allmcps.com/api/badge/mcp-percona-pg?style=directory" alt="MCP Percona Pg on AllMCPs" /></a>