Databases · MCP server
Pgmcp: MCP server, setup and security
Pgmcp is an MCP server published on GitHub that lets an AI agent query PostgreSQL databases in natural language with read-only safety. Its repository has 540 stars and its last commit is from May 26, 2026, but it declares no licence.
| Adoption (stars) | 27/40 | |
|---|---|---|
| Maintenance | 18/30 | |
| Framework (licence, registry, official) | 5/30 |
What Pgmcp does
According to its repository: “Natural-language queries for any PostgreSQL database, with automatic streaming and read-only safety.”
The Model Context Protocol (MCP) is a standard plug between an AI agent and an outside service: once the server is connected, its tools show up in the agent, which decides when to call them. Pgmcp is listed under Databases, a category of 138 servers in the directory, where it ranks #31 by stars.
Topics declared by the repository: agent, agentic-ai, analytics, artificial-intelligence, kong, postgres.
Installing and connecting Pgmcp
No package or remote server is declared in the official MCP registry: you install it from source, following the repository README.
It works with any MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, Codex and most recent agents). You add one entry to the client's MCP configuration: server name, start command or URL, environment variables. Project language: Go.
Security: what to check
Connecting an MCP server means installing software that talks straight to your agent: it runs with your rights and the model trusts its tool descriptions. The risk therefore depends on what it can touch and how far its code can be trusted.
Points found for Pgmcp:
- No licence: without a licence the code is not legally reusable, even if it is public. Avoid it in a company setting without the author's agreement.
Good practice: grant only the rights needed (least privilege), require human approval for irreversible actions, and run the AI agent security check.
Project activity and maintenance
Created on September 16, 2025, the subnetmarco/pgmcp repository has 540 stars and 63 forks, with 1 open issues. It has more stars than 88% of the servers in the directory. Last change 5 months ago.
Stars measure attention, not quality: a recent, heavily promoted project can collect them fast, while a useful but niche server will have few.
Verdict
Pgmcp is a reasonable choice; check the points below before connecting it.
Strengths
- Widely followed: 540 stars
Limitations
- No licence declared
- Install from source
Avoid if…
- Company use without the author's agreement
Alternatives
- Nhost9.4K ★
- ArcadeDB MCP Server1.2K ★
- Jitsu5.1K ★
- Supabase3K ★
- Dbx27.7K ★
- MCP Toolbox for Databases16.7K ★
Learn more
Frequently asked questions
How do I install Pgmcp?
No package is declared in the MCP registry: clone the subnetmarco/pgmcp repository, follow its README, then declare the start command in your client's MCP configuration.
Is Pgmcp free?
The code is public but has no declared licence: it is not formally free to reuse.
Is Pgmcp safe?
Points to watch: no licence. Give it minimum rights and approve sensitive actions.
Is it an official server?
Nothing says so: it is a project published by subnetmarco on GitHub. Check who maintains it before giving it access.
What are the alternatives to Pgmcp?
In the same category: Nhost, ArcadeDB MCP Server, Jitsu, and Supabase. Nhost and ArcadeDB MCP Server score higher on our grid.
Related articles
- Build your own MCP server in 30 minutesOctober 24, 2026
- Automate your inbox with an AI agentOctober 18, 2026
- MCP, A2A, and tool calling: agent protocols explainedOctober 17, 2026
- Build an AI agent with n8n, without codingOctober 16, 2026
Neutrality. No affiliate links. No vendor pays to be reviewed, rated or ranked. Reviews are directed by François Chollet, neutral and factual, and every data point is dated and sourced. How we score