Pgmcp
by subnetmarco
Connects MCP clients to PostgreSQL for natural-language, read-only SQL, text search, and streamed results.
Install Pgmcp
Run the project’s own setup commands, in order.
Setup steps from the project
subnetmarco/pgmcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
./pgmcp-serverbrew tap subnetmarco/homebrew-tapbrew install pgmcpgo build -o pgmcp-server ./servergo build -o pgmcp-client ./clientgo build -ldflags="-s -w -extldflags=-static" -trimpath -o pgmcp-server ./server
Overview
Use cases
- Ask natural-language questions about PostgreSQL data
- Search text columns across an existing database
- Stream large query results with pagination
- Inspect database contents from Cursor or Claude Desktop
Key features
- Natural-language to SQL generation
- Read-only SQL enforcement
- Automatic result streaming and pagination
- Free-text search across text columns
- Table, JSON, and CSV output
- Mixed-case PostgreSQL table support
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Pgmcp works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Pgmcp
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/subnetmarco-pgmcp)<a href="https://allmcps.com/mcp/subnetmarco-pgmcp"><img src="https://allmcps.com/api/badge/subnetmarco-pgmcp?style=directory" alt="Pgmcp on AllMCPs" /></a>