subnetmarco/pgmcp

An MCP server to query any Postgres database in natural language.

39
/ 100
Emerging

Implements a Go-based MCP server that converts natural language queries to SQL using OpenAI's API, with automatic schema caching and streaming result handling. Integrates with Cursor, Claude Desktop, VS Code, and any MCP-compatible client via HTTP transport, while enforcing read-only access and supporting mixed-case table names through intelligent query validation. Includes built-in text search, multiple output formats (JSON/CSV/table), and graceful error recovery when AI-generated SQL fails.

524 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 18 / 25

How are scores calculated?

Stars

524

Forks

58

Language

Go

License

Category

sql-database-mcp

Last pushed

Sep 25, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/subnetmarco/pgmcp"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.