pgmcp MCP Server
subnetmarco/pgmcp
[](https://agentrank-ai.com/tool/subnetmarco--pgmcp/?utm_source=badge&utm_medium=readme&utm_campaign=agentrank_badge) Are you the maintainer of subnetmarco/pgmcp? Claim this listing →
An MCP server to query any Postgres database in natural language.
Add AgentRank to Claude Code Discover and compare tools like subnetmarco/pgmcp — your AI finds the right one automatically
Get API Access → claude mcp add agentrank -- npx -y agentrank-mcp-server Overview
subnetmarco/pgmcp is a Go MCP server. An MCP server to query any Postgres database in natural language. Topics: agent, agentic-ai, ai, analytics, artificial-intelligence, kong, mcp, mcp-server, postgres, postgresql, data-analysis, database.
Ranked #12381 out of 24846 indexed tools.
Ecosystem
Go NOASSERTION
agentagentic-aiaianalyticsartificial-intelligencekongmcpmcp-serverpostgrespostgresqldata-analysisdatabase
Score Breakdown
Stars 15% 542
542 stars → growing community
Freshness 25% 5mo ago
Last commit 5mo ago → stale
Issue Health 25% 67%
4/6 issues closed → decent issue management
Contributors 10% 2
2 contributors → solo project
Dependents 25% 0
No dependents → no downstream usage
npm Downloads N/A
PyPI Downloads N/A
Forks 63
Description Good
License NOASSERTION
Weights: Freshness 20% · Issue Health 20% · Dependents 22% · Stars 10% · Contributors 8% · How we score →
How to Improve
Description low impact
License low impact
Freshness high impact
Matched Queries
From the README
# PGMCP - PostgreSQL Model Context Protocol Server PGMCP connects AI assistants to **any PostgreSQL database** through natural language queries. Ask questions in plain English and get structured SQL results with automatic streaming and robust error handling. **Works with**: Cursor, Claude Desktop, VS Code extensions, and any [MCP-compatible client](https://modelcontextprotocol.io/) ## Quick Start PGMCP connects to **your existing PostgreSQL database** and makes it accessible to AI assistants through natural language queries. ### Prerequisites - PostgreSQL database (existing database with your schema) - OpenAI API key (optional, for AI-powered SQL generation) ### Basic Usage ```bash # Set up environment variables export DATABASE_URL="postgres://user:password@localhost:5432/your-existing-db" export OPENAI_API_KEY="your-api-key" # Optional # Run server (using pre-compiled binary) ./pgmcp-server # Test with client in another terminal ./pgmcp-client -ask "What tables do I have?" -Read full README on GitHub →
Get the weekly AgentRank digest
Top movers, new tools, ecosystem insights — straight to your inbox.