Skip to content
pgEdge Postgres MCP Server

pgEdge Postgres MCP Server

Released
v1.1.0
PostgreSQL

Summary

pgEdge's PostgreSQL MCP server: read-only SQL, schema analysis, EXPLAIN, and hybrid BM25 + vector search over Postgres 14+, with a natural-language CLI and web chat client.

Features

  • Read-only transactions by default, configurable per database
  • Schema info, query execution, row counts and EXPLAIN
  • Hybrid BM25 + MMR search and vector similarity search
  • Embedding generation and knowledge-base search
  • Multiple database connections with switching
  • HTTP/HTTPS mode with user and token auth and TLS
  • Go chat client and React web UI for natural-language queries
  • Docker images on GHCR

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "pgEdge Postgres MCP Server" tools will be available.
{
  "mcpServers": {
    "pgedge-postgres-mcp": {
      "command": "/path/to/bin/pgedge-postgres-mcp",
      "env": {
        "PGHOST": "localhost",
        "PGPORT": "5432",
        "PGDATABASE": "<database>",
        "PGUSER": "<user>",
        "PGPASSWORD": "<password>"
      }
    }
  }
}

Description

The pgEdge Postgres MCP Server, from the distributed-Postgres company pgEdge, lets MCP clients query PostgreSQL 14 or later. Every query runs in a read-only transaction by default (configurable per database), and the server can hold several database connections and switch between them.

Its tools cover the work an assistant actually does against a database: get schema information, run queries, count rows, run EXPLAIN, read Postgres statistics exposed as resources, generate embeddings, and run similarity and hybrid searches (BM25 with MMR re-ranking) over vector columns or a configured knowledge base. Prompts guide semantic-search setup, database exploration and query diagnostics.

Besides the stdio server for Claude Desktop, Claude Code, Cursor, Windsurf and VS Code Copilot, the project ships an HTTP/HTTPS mode with user and token authentication and TLS, a Go chat client, and a React web UI for natural-language questions about your data. Docker images are on GHCR; otherwise you build the Go binary from source. pgEdge flags it as unsuitable for public-facing apps, since the model can read the whole schema and data. PostgreSQL License.

MCP: pg-aiguide

by Tiger Data

Tiger Data's hosted MCP server and skills for PostgreSQL: version-aware semantic search over the Postgres, TimescaleDB and PostGIS manuals.

A single ~7 MB binary that gives your AI assistant schema discovery, SQL queries and EXPLAIN plans for MySQL, MariaDB, PostgreSQL and SQLite, with a read-only mode.

MCP: Supabase

by Supabase

Manage your Supabase project from an agent — run SQL, inspect tables, manage branches, and generate types.

Zilliz's MCP server for semantic code search: it indexes a whole repository into Milvus or Zilliz Cloud and hands coding agents only the relevant chunks.

Browse all MCP servers →