subnetmarco/pgmcp
An MCP server to query any Postgres database in natural language.
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 #3297 out of 25632 indexed tools.
Ecosystem
Go NOASSERTION
agentagentic-aiaianalyticsartificial-intelligencekongmcpmcp-serverpostgrespostgresqldata-analysisdatabase
Signal Breakdown
Stars 525
Freshness 5mo ago
Issue Health 80%
Contributors 1
Dependents 0
Forks 59
Description Good
License NOASSERTION
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 →
Are you the maintainer? Claim this listing