pgmcp: An MCP server to query any Postgres database in natural language

by subnetmarco · MCP Server · ★ 542

Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h

Featured in: MCP Database Tools

How to install pgmcp

brew install pgmcp

Taken from the project's README on GitHub. Check the security audit before running it.

Security audit verdict: SAFE · quality 78/100

None of the 42 rules matched — no credential harvesting, no data exfiltration, no curl-pipe-shell installer. Scanned against 42 published rules built on the SlowMist agent-security taxonomy, refreshed every 8 hours. Full audit →

The quality score combines nine heuristic checks of the repo and its README: completeness, clarity, specificity, examples, structure, agent readiness, step-by-step content, instruction quality and security notes. It rates how well the project explains itself to an agent, not the code.

agentagentic-aiaianalyticsartificial-intelligencedata-analysisdatabasekongmcpmcp-server

Quick Facts

Stars542
Forks63
LanguageGo
CategoryMCP Server
Quality Score78/100
Open Issues2
Last Updated2026-05-26
Created2025-09-16
Platformsgo, mcp
Est. Tokens~7k

About pgmcp

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.

Compatible Skills

These tools work well together with pgmcp for enhanced workflows:

  • hyperterse — semantic(0.36)+rare_topics+same_lang+similar_pop+shared_platform (51%)
  • agent — semantic(0.32)+complementary+rare_topics+similar_pop (50%)
  • openchatbi — semantic(0.30)+complementary+rare_topics+similar_pop (49%)
  • anyquery — semantic(0.23)+rare_topics+same_lang+similar_pop+shared_platform (47%)
  • dbhub — semantic(0.39)+rare_topics+similar_pop+shared_platform (47%)

pgmcp alternative? Top 6 similar tools

Looking for a pgmcp alternative? If you're comparing pgmcp with other mcp server tools, these 6 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.

  • MCP-PostgreSQL-Ops by call518 · ⭐ 164

    🐘 Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, l

  • wren-engine by Canner · ⭐ 665

    The open context engine for AI agents support 15+ data sources. Built on Rust and Apache DataFusion.

  • pg-aiguide by timescale · ⭐ 1.9k

    MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better Post

  • nocturne_memory by Dataojitori · ⭐ 1.4k

    A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents. Say goodbye to Vector RAG and

  • volcano-agent-sdk by Kong · ⭐ 406

    🌋 Build AI agents that seamlessly combine LLM reasoning with real-world actions via MCP tools — in just a few

  • decipher-research-agent by mtwn105 · ⭐ 153

    Turn topics, links, and files into AI-generated research notebooks — summarize, explore, and ask anything.

More MCP Server Tools

Explore other popular mcp server tools:

View all MCP Server tools →

Popular Go Agent Tools

How this security grade is produced

Grades come from a rule-based scan built on the SlowMist agent-security taxonomy: 42 published rules, covering credential harvesting, data exfiltration, curl | sh installers and more. It is a first-layer scan, not a manual audit — we say so rather than overstate it.

The scale of the problem is documented independently: Liu et al. (2026), in a study of 31,132 agent skills, report that 26.1% contain security vulnerabilities. Our own full-catalog census is published as a citable open dataset.

Sources & who's responsible:

View on GitHub → Browse MCP Server tools