# PostgreSQL MCP server

> Ask in plain English to check PostgreSQL health, read query plans, and explore your schema and indexes.

- Sign-in: API key or token
- Connect in RevampKey: https://revampkey.com/marketplace/postgresql

PostgreSQL is a database server. It stores data in tables, and you query that data with SQL, the standard language for databases. Developers and database administrators use it to hold the data behind applications, from small projects to large production systems. Much of the day-to-day work involves schemas, indexes, query plans, vacuum, sequences and replication.

Connecting PostgreSQL to RevampKey lets you ask about your database in plain English. The connector is made by Crystal DBA and built on the open source Postgres MCP Pro project. Its described features include database health checks for index health, connection utilization, buffer cache, vacuum health, sequence limits and replication lag. It can also review EXPLAIN plans for slow queries and explore possible indexes for a workload. The project supports a read-only mode.

## What you can do

### A morning health check

You want to know whether your PostgreSQL server is under strain before the day starts. You ask the agent for a health summary. It reads the areas the project checks, including index health, connection use, vacuum health, sequence limits and replication lag. It returns a short summary of what looks fine and what needs a closer look.

### Finding why a report is slow

A reporting query takes several minutes to run. You ask the agent to review its EXPLAIN plan. The agent reads the plan and explains which steps scan large tables or sort many rows. It also summarizes any index analysis for that query, so you can see where the time goes before you decide what to change.

### Learning an unfamiliar database

You inherit a PostgreSQL database with few notes. You ask the agent to walk through the schema. It reads the tables, columns and how they relate to each other. Then it gives you a plain summary of the main tables and the links between them, so you can write your first query with less guesswork.

## Things to ask

- Is my PostgreSQL server running out of connections right now?
- Show me the EXPLAIN plan for this query and tell me which step is slowest.
- Summarize the vacuum health and any sequences close to their limits.
- Check replication lag and tell me if any replica looks behind.
- Walk me through the tables and relationships in this schema before I write a query.

## FAQ

### What do I need to connect PostgreSQL to RevampKey?

You need access credentials for your PostgreSQL database. Add PostgreSQL from the Connectors tab in RevampKey. To confirm your credentials work first, you can test them with psql or a GUI tool such as pgAdmin. The Postgres MCP Pro project notes that Docker or Python is needed to run its server.

### What can the agent do in PostgreSQL, and what can it not do?

The agent can find, read and summarize what this connector exposes. That includes health checks, query plans, index analysis and schema details. It does not send, create, edit or delete anything through this connector. Check the agent's answers against your database before you act on them.

### How are changes handled with this connector?

The agent asks before it changes anything. For this connector, the listed capabilities are reading and summarizing only, so you should not expect change requests from it. The underlying project offers a read-only mode, and its access settings can be configured by the person who runs it.

### Can an AI agent review PostgreSQL query plans and index suggestions?

Yes, the connector's documented features include reviewing EXPLAIN plans for query performance. The project also explores possible indexes for a workload and can simulate hypothetical indexes. Ask for the plan of a slow query, and the agent will summarize its steps and any index analysis it finds.

### Is the PostgreSQL MCP server local or remote?

It runs on your own computer with uvx (package postgres-mcp). Your client starts it as a local process; nothing is hosted.

### How does the PostgreSQL MCP server authenticate?

With an API key or access token from your PostgreSQL account, sent as an Authorization: Bearer header. RevampKey keeps it in your system keychain.

## Details

- Maker: Crystal DBA
- Setup: Connect from the app
- Category: Data & analytics
- Documentation: https://github.com/crystaldba/postgres-mcp

Page: https://revampkey.com/marketplace/postgresql
