mcp-percona-pg
v0.3.3Manage Percona PostgreSQL + PgBouncer on Kubernetes — safe-by-default access modes and guards.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_contexts List kube-config contexts
List the contexts (clusters) available in the loaded kube-config.
list_clusters List PostgreSQL clusters
List PerconaPGCluster resources (PostgreSQL + PgBouncer). Omit `namespace` to list across all namespaces. Results are filtered by the namespace/cluster allowlists; protected clusters are flagged.
| Parameter | Type | Description |
|---|---|---|
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
get_cluster Get cluster (summary)
Summary of a PerconaPGCluster: state, PostgreSQL size, PgBouncer, version, standby, host.
| Parameter | Type | Description |
|---|---|---|
name * | string | PerconaPGCluster name |
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
get_cluster_status Get cluster status (raw)
The full `.status` of a PerconaPGCluster — Patroni members, PostgreSQL/PgBouncer readiness, host, and conditions.
| Parameter | Type | Description |
|---|---|---|
name * | string | PerconaPGCluster name |
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
get_connection_info Get connection info
Connection endpoints for a cluster: the primary/replica Service hosts, port, and the declared users (names only — passwords live in Secrets and are never returned).
| Parameter | Type | Description |
|---|---|---|
name * | string | PerconaPGCluster name |
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
get_pgbouncer_config Get PgBouncer config
The PgBouncer settings for a cluster: replicas, pool_mode, and the global pool tunables.
| Parameter | Type | Description |
|---|---|---|
name * | string | PerconaPGCluster name |
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
get_pg_parameters Get PostgreSQL parameters
The tuned PostgreSQL parameters from `spec.patroni.dynamicConfiguration.postgresql.parameters` (the only correct place to set them — direct postgresql.conf edits are reverted by Patroni).
| Parameter | Type | Description |
|---|---|---|
name * | string | PerconaPGCluster name |
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
list_backups List backups
List PerconaPGBackup resources in a namespace, with their state, repo, and completion time.
| Parameter | Type | Description |
|---|---|---|
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |
list_restores List restores
List PerconaPGRestore resources in a namespace, with their target cluster and state.
| Parameter | Type | Description |
|---|---|---|
context | string | kube-config context to target (defaults to current-context) |
namespace | string | Namespace (defaults to PERCONA_NAMESPACE if set) |