PostgreSQL MCP server

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

Transport
Local (uvx)
Sign-in
API key or token
Made by
Crystal DBA
RevampKey connects PostgreSQL in one click. No config file. Free for Mac, Windows and Linux. Already installed? Open PostgreSQL in RevampKey

Get RevampKey to connect PostgreSQL

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostgreSQL is one click away with its skills already attached.

Download RevampKey

What the PostgreSQL MCP server does

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 with PostgreSQL and an AI agent

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.

How to set up the PostgreSQL MCP server

Pick your app. RevampKey needs no config file; the others need one command or a config line.

About 1 minute · API key or token

  1. Install RevampKey for Mac, Windows or Linux and sign in.

  2. Open Connectors, search for PostgreSQL and click Connect. Paste your PostgreSQL key when asked. RevampKey stores it in your system keychain and shows where to find it.

  3. Ask in plain language. The agent asks before it changes anything.

  4. Download RevampKeyConnect PostgreSQL · 1 click

    Get RevampKey to connect PostgreSQL

    RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostgreSQL is one click away with its skills already attached.

    Download RevampKey

Using a different MCP client?

Add a local (stdio) MCP server in its settings that runs this command.

Runs locallyuvx postgres-mcp postgres-mcp --access-mode=restricted

Skip the config file

In RevampKey, PostgreSQL is one click: sign-in and the server are set up for you.

Download RevampKey

What to ask once PostgreSQL is connected

Plain words work. Copy one to try it.

  • “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.”

PostgreSQL MCP in RevampKey vs other tools

RevampKeyClaude CodeCursorVS Code
SetupOne clickOne terminal commandEdit mcp.jsonEdit mcp.json
Sign-inPaste once, kept in keychainToken in a headerToken in config fileToken in config file
Needs a terminalNoYesNoNo

PostgreSQL MCP server 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.

Connect PostgreSQL in under a minute

Download RevampKey for Mac, Windows or Linux, sign in, and PostgreSQL is one click away, along with every other connector in the marketplace.

Download RevampKeyConnect PostgreSQL · 1 click

Get RevampKey to connect PostgreSQL

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostgreSQL is one click away with its skills already attached.

Download RevampKey