MCP.so
Sign In

PostgreSQL MCP ServerFeatured

@modelcontextprotocol

Basic information

Category

Databases

License

NOASSERTION

Transports

stdio

Author

modelcontextprotocol

About PostgreSQL MCP Server

Model Context Protocol Servers

Before you connect

Documentation reviewed 2026-10-25

When to choose this server

This is the older PostgreSQL reference server, now documented in the servers-archived repository. It offers schema inspection and SQL queries described as read-only in the upstream README.

Setup and limitations

For a new deployment, compare maintained database integrations first. If evaluating this reference, use a disposable database and a database-enforced read-only role; do not rely only on the tool description. Its former servers/main/src/postgres source link is no longer the current location.

These notes check the linked documentation, not a live authenticated connection. Suggested checks are steps for you to run.

PostgreSQL MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://localhost/mydb"
      ]
    }
  }
}

PostgreSQL MCP Server tools

1

Run a read-only SQL query

Overview

What is PostgreSQL?

—

How to use PostgreSQL?

—

Key features of PostgreSQL

—

Use cases of PostgreSQL

—

FAQ from PostgreSQL

—

Comments

More Databases MCP servers