pgmoneta MCP

A Rust MCP server for pgmoneta: the agent asks the PostgreSQL backup manager about backup state and manages backups

  • 21 ★ on the repository
  • Last commit
  • GPL-3.0
MCP serverOfficial

Extended access

Why this level

  • The server logs in to pgmoneta as an administrator and works with database backups
  • The pgmoneta master key is copied into the user home directory
All reasons and checks

pgmoneta/pgmoneta_mcp

Install

Manual install

cargo build --release

Run in a clone of `pgmoneta/pgmoneta_mcp`; to install under `/usr/local` follow with `sudo cargo install --root /usr/local/`.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The server logs in to pgmoneta as an administrator and works with database backups
  • The pgmoneta master key is copied into the user home directory

This is third-party code. Review the repository files before installing.

What it does

pgmoneta MCP connects an AI assistant to pgmoneta, a backup and restore solution for PostgreSQL. The server is written in Rust on top of the rmcp library and logs in to the pgmoneta server with SCRAM-SHA-256. Before launch, pgmoneta must run in remote admin mode with a management port, and your user must be in the users list. Three utilities ship in the box. `pgmoneta-mcp-admin` maintains the users file, `pgmoneta-mcp-client` runs tools interactively, and `pgmoneta-mcp-inspector` gives a structured view of what the server exposes. The client talks to a language model over the OpenAI API, and the documentation names `orangu-server` for a local model. The server reads `pgmoneta_mcp.conf`: the MCP port (8000 by default), the pgmoneta management host and port, and the Prometheus metrics port. A launch looks like this: `pgmoneta-mcp-server -c pgmoneta-mcp.conf -u pgmoneta-mcp-users.conf`. In VS Code the server is added with the MCP: Add Server command, after which you can ask Copilot chat, for example, for the latest backup information.

Who it is for. PostgreSQL administrators who back up with pgmoneta and want to ask an agent in VS Code with Copilot about backup state.

Good fit when

  • PostgreSQL backups run on pgmoneta and the state of the latest copy is easier to learn by asking in chat than by a command on the server
  • A local model runs next to the agent through `orangu-server` and backup data must not go to external APIs
  • You want to study the structure of server answers before attaching an agent: `pgmoneta-mcp-inspector` covers that
  • pgmoneta Prometheus metrics are read together with the management server and the metrics port is already set

Not a fit when

  • Backups are made by pgBackRest, Barman or another tool: the server talks to pgmoneta only
  • Enabling pgmoneta remote administration and creating a user is not possible
  • You need a ready binary package: the server is built from Rust source

Example request

Ask pgmoneta when the latest backup was made and how large it is

MCP

Transport
http
Authentication
API key

Limitations

  • It installs only from source: Rust, Cargo, `rst2man`, `pandoc` and `texlive` are required.
  • pgmoneta must run in remote admin mode with a configured management port. The pgmoneta master key is copied to `~/.pgmoneta-mcp/master.key`.
  • The README does not list the server tools; `pgmoneta-mcp-inspector` shows the list.
  • The GPL-3.0 license sets its own conditions on distributing changes.

How to disable. Stop the `pgmoneta-mcp-server` process and remove the server from the MCP settings in VS Code. The user in pgmoneta can be deleted separately and the master key copy erased from `~/.pgmoneta-mcp`.

FAQ

What is pgmoneta and how does MCP fit in?

pgmoneta takes PostgreSQL backups and restores them. The MCP server gives an AI assistant access to it over the management connection, so questions about backups can be asked in chat.

How do I install pgmoneta MCP?

Clone the repository and run `cargo build --release`, then `sudo cargo install --root /usr/local/` to install under `/usr/local`. For a debug build `cargo build` is enough.

What must be configured in pgmoneta before launch?

Run pgmoneta in remote admin mode with `pgmoneta -A <users.conf> -c <pgmoneta.conf>`, add a user through `pgmoneta-admin` and set the `management` port in the configuration. For the MCP server repeat the user through `pgmoneta-mcp-admin`.

Can I use a local language model?

Yes. The native `pgmoneta-mcp-client` talks to a model over the OpenAI API. The documentation names `orangu-server` as the local server, with the address and model set in the client section of the configuration.

How do I connect the server to VS Code?

Open the Command Palette (F1), run MCP: Add Server and give the address of the running server. Then start the server with the gear icon on the extensions tab. GitHub Copilot must be installed.

Discussion

No questions or reviews yet.

Self-hosted MCP server for running commands on remote servers over SSH, with tokens and roles

MCP serverBroad access2Repository stars

MCP PostgreSQL Ops selects metrics for the PostgreSQL version, exposing measurements available in that database installation.

MCP serverExtended access164Repository stars
Official

mcpd starts MCP servers from one .mcpd.toml file and serves them to agents and scripts as a plain HTTP API on a local port

CLIExtended access193Repository stars

A Claude Code plugin sets up PostgreSQL monitoring and returns a report of problems with exact fixes.

PluginBroad access140Repository stars

A self-hosted gateway that merges several MCP servers into one endpoint with auth and tool selection

MCP serverBroad access2.8KRepository stars

An MCP server for Prometheus: the agent runs PromQL queries, discovers metrics and checks scrape targets

MCP serverExtended access522Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
pgmoneta MCP (this card)yesAPI key21
pg_probackupno799a Postgres Professional command-line backup tool without an MCP server for an agent
MCP PostgreSQL Opsnonot required164an MCP server for PostgreSQL metrics and operations itself rather than a backup manager

README in short

The page presents the server as the official MCP for pgmoneta and covers the three utilities and OpenAI API support for local models. It continues with build requirements, release and debug build commands and links for contributions and questions.

README badge

Report a problem

Foxx AIpgmoneta MCP
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.