# pgEdge Postgres MCP Server

> A PostgreSQL MCP server with a Natural Language Agent CLI and Web UI

Source: https://talira.ai/catalog/pgedge-postgres-mcp-server-fr903afd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server, Command-line tool, Web app
- Categories: [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [databases / postgres](https://talira.ai/categories/databases/postgres), [search / semantic search](https://talira.ai/categories/search/semantic-search)
- Platforms: linux, macos, windows, docker[^4][^5]
- Licence: PostgreSQL[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^4]
- API: yes[^1]
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1]
- Backed by: [pgEdge](https://talira.ai/orgs/pgedge.md)

pgEdge Postgres MCP Server is an open source MCP server, written in Go, that lets AI agents query [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) 14 or later, running every query in a read-only transaction by default. Besides SQL, schema, row-count and EXPLAIN tools, its `similarity_search` tool finds rows by their [pgvector](https://talira.ai/catalog/pgvector-vv3axms1.md) embedding columns, then chunks the matched text at query time, re-scores the chunks with BM25 and filters them with Maximal Marginal Relevance to fit a token budget, so documents needn't be pre-chunked. It runs over stdio for [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md), [Claude](https://talira.ai/catalog/claude-w14d0j2d.md) Desktop, [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md) and VS Code, or over HTTP with user and token authentication, and comes with a Go chat client and a web UI that turn plain-English questions into SQL. pgEdge warns it is for trusted internal users only, since the LLM can read the whole schema and data, and releases it under the PostgreSQL licence.

## Links

- Website: https://docs.pgedge.com/pgedge-postgres-mcp-server/
- GitHub: https://github.com/pgEdge/pgedge-postgres-mcp
- Docs: https://docs.pgedge.com/pgedge-postgres-mcp-server/

## Problems it solves

- let Claude query our Postgres database with no chance of it writing or deleting data
- an MCP server over our pgvector knowledge base that combines vector and keyword search
- give my coding agent our database schema so it writes SQL against the real tables
- ask questions about our Postgres data in plain English from a chat UI the whole team can use
- semantic search over a table with embedding columns from an AI agent, without chunking the documents first
- a Postgres MCP server over HTTP with user and token authentication for several people
- let an agent run EXPLAIN ANALYZE to find out why a query is slow
- one MCP server for several Postgres databases that the agent can switch between
- create embeddings with OpenAI, Voyage, Gemini or a local Ollama model from an agent tool
- a self-hosted Postgres MCP server we can run in Docker inside our own network

## Features

- queries run in read-only transactions by default, configurable per database
- similarity_search: vector search over pgvector columns, chunks re-scored with BM25 and diversified with MMR within a token budget
- query_database, get_schema_info, count_rows and execute_explain tools
- generate_embedding with OpenAI, Voyage AI, Google Gemini or Ollama
- search_knowledgebase over a pre-built documentation database (kb.db)
- several database connections, selectable by the agent
- stdio and HTTP/HTTPS transports, with user and API token authentication and TLS
- Go chat client (CLI) and React web UI for natural-language questions
- individual tools can be turned off in the server configuration
- binaries for Linux, macOS and Windows, APT and DNF packages, and a Docker image

## Limitations

- Isn't for public-facing apps: it gives the LLM read access to the whole database schema and data, so use it only for trusted internal users[^1][^2]
- Doesn't support PostgreSQL 13 or older: it needs PostgreSQL 14 or later[^1]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.43 out of 1.
Signals: backing 0.30, extensibility 0.60.

- backed by pgEdge
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)
- Works with [pgvector](https://talira.ai/catalog/pgvector-vv3axms1.md)

## Alternatives

- [Postgres MCP Pro](https://talira.ai/catalog/postgres-mcp-pro-j2wvmkav.md): A Postgres MCP server with index tuning, explain plans, health checks, and safe SQL execution
- [MCP Toolbox for Databases](https://talira.ai/catalog/mcp-toolbox-for-databases-yx1af6jx.md): An open source MCP server for databases

## Sources

[^1]: https://github.com/pgEdge/pgedge-postgres-mcp/blob/main/README.md (checked 20 Nov 2026)
[^2]: https://github.com/pgEdge/pgedge-postgres-mcp/blob/main/docs/guide/mcp-vs-rag.md (checked 20 Nov 2026)
[^3]: https://github.com/pgEdge/pgedge-postgres-mcp/blob/main/LICENSE.md (checked 20 Nov 2026)
[^4]: https://github.com/pgEdge/pgedge-postgres-mcp/blob/main/docs/guide/quickstart.md (checked 20 Nov 2026)
[^5]: https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0 (checked 20 Nov 2026)
