Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🗄️ Databases
  3. MCPg
MCPg logo
Health: ActiveRecent health check succeeded.Last checked 9/12/2026, 2:01:31 AM

MCPg

User RatingsBe the first to rate and review this MCP server!Ownership verifiedThe owner proved control of this listing via a GitHub README, site badge, or DNS TXT record.
View Repository10 GitHub StarsTotal stargazers on GitHub for the source repository (10 stars).Visit Website
postgresqldatabasedeveloper-toolsmonitoring

PostgreSQL MCP server with safe query execution, catalog inspection, tuning, search, operations, and stdio or HTTP transports.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "devopam-mcpg": {
      "command": "uvx",
      "args": [
        "mcpg"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Alternatives🗄️ More in Databases

Overview

The devopam/MCPg MCP server exposes PostgreSQL operations to AI agents through 254 MCP tools. It uses psycopg3, AST validation, read-only defaults, connection pooling, audit logging, and optional HTTP/SSE or stdio transports. Tools cover catalog inspection, query analysis, natural-language SQL, indexing, data movement, hybrid search, graph queries, and live database operations. Reach for it when an agent needs controlled access to a PostgreSQL database rather than a separate tool for each DBA or application-data task.

Use cases

•Inspect PostgreSQL schemas and catalog metadata
•Analyze query plans and identify index opportunities
•Generate SQL from natural-language database questions
•Monitor locks, replicas, vacuum activity, and database health
•Run controlled hybrid, vector, time-series, or graph queries

Key features

•254 PostgreSQL-focused MCP tools
•AST-validated SQL with read-only defaults
•Catalog introspection and structural diffs
•Index tuning and query plan analysis
•pgvector, TimescaleDB, PostGIS, and AGE support
•stdio and HTTP/SSE transports

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCPg.

Extracted Tool Capabilities
254 PostgreSQL-focused MCP tools
AST-validated SQL with read-only defaults
Catalog introspection and structural diffs
Index tuning and query plan analysis
pgvector, TimescaleDB, PostGIS, and AGE support
stdio and HTTP/SSE transports

How MCPg works

What devopam/MCPg MCP server does

The devopam/MCPg MCP server gives MCP-compatible clients access to PostgreSQL databases through a broad toolset. It supports catalog introspection, SQL execution, query intelligence, natural-language-to-SQL workflows, structural comparisons, search, graph queries, data movement, and operational tasks such as health checks, lock inspection, vacuum work, replica checks, dumps, migrations, and index tuning.

The implementation is PostgreSQL-specific rather than ORM-based. It uses psycopg3 and can work with PostgreSQL versions 14 through 19 according to the project’s compatibility table. Optional integrations include pgvector, TimescaleDB, PostGIS, Apache AGE, and pg_stat_statements when those capabilities are available in the database.

How it works

MCPg supports both stdio and HTTP/SSE transports. For local clients, the mcpg console script can run through uvx; HTTP deployments can expose the server and its Prometheus metrics endpoint. The HTTP transport reports tool-call totals and durations, while tool calls also produce structured audit events with credential-sensitive argument redaction.

Read-only access is the default. User-supplied SQL passes through AST parsing and an allowlist before execution, and identifier interpolation is restricted by a naming pattern. DDL, shell operations, and LISTEN/NOTIFY are disabled unless explicitly enabled. Tool annotations reflect the configured read and write gates so clients can distinguish read-only operations from tools that may change data.

Production-oriented controls include connection pooling, per-request SET ROLE handling, read-replica routing, server-side cursors, rate limiting, PostgreSQL TLS enforcement, OIDC JWT bearer authentication, and per-session statement and lock timeouts. These options make the devopam/MCPg MCP server suitable for deployments where database access needs operational controls as well as query tools.

Setup and configuration

Install the Python package from PyPI with pip install mcpg, or install it as an isolated tool with uv tool install mcpg. The executable is named mcpg. The manual stdio configuration shown for MCP clients runs uvx mcpg and supplies a PostgreSQL connection URL through MCPG_DATABASE_URL.

A Docker image is published at ghcr.io/devopam/mcpg. The documented container example maps port 8000, sets MCPG_DATABASE_URL, and sets MCPG_ACCESS_MODE=read-only. The image can also be built from the GitHub repository. Source-based development uses uv sync after cloning the project.

Claude Desktop users can install a versioned .mcpb bundle from the latest GitHub release. The bundle asks for the database URL and access mode, storing the URL in the operating system keychain. The repository also documents setup for Cursor, Windsurf, Cline, and other MCP clients.

Tools and capabilities

The documented tool surface includes:

  • Inspecting schemas, tables, columns, indexes, roles, extensions, and other PostgreSQL catalog information.
  • Running validated queries and examining plans, statistics, locks, health, replicas, and vacuum state.
  • Generating SQL from natural-language requests and working with cursors for larger result sets.
  • Comparing database structures and moving data through supported operations.
  • Using hybrid search, pgvector-backed features, TimescaleDB features, and Apache AGE graph queries when available.
  • Monitoring activity through audit records and Prometheus metrics.

Limitations and notes

The hosted demonstration endpoint is read-only and uses throwaway demo data; it is not a connection to a user’s database. For real workloads, the project instructs users to run MCPg alongside their own PostgreSQL instance.

Read-only mode does not mean every possible PostgreSQL operation is available: write-oriented capabilities must be enabled through configuration gates. Extension-specific tools depend on the corresponding database features being installed, and the server degrades when optional extensions are unavailable. Database credentials and access permissions remain the responsibility of the deployment.

The project is released under the MIT license. The devopam/MCPg MCP server is open source, but using it with a PostgreSQL deployment still requires an accessible database and suitable database credentials.

Read the full README →View source on GitHub →

Related MCP Servers

View all in Databases View all alternatives
  • Supabase MCP Server logoSupabase MCP Server

    Supabase MCP Server with support for SQL query execution and database exploration tools

    🗄️ Databases5 views
    Compare vs Supabase MCP Server →
  • MCP Mysql Server logoMCP Mysql Server

    Node.js-based MySQL database integration that provides secure MySQL database operations

    🗄️ Databases5 views
    Compare vs MCP Mysql Server →
  • Monitor logoMonitor

    Valkey-first observability with Redis compatibility. Query real-time metrics, analyze slow commands, detect hot keys, and investigate performance issues directly from AI coding assistants.

    🗄️ Databases4 views
    Compare vs Monitor →
  • Mysql MCP Server logoMysql MCP Server

    MySQL database integration with configurable access controls, schema inspection, and comprehensive security guidelines

    🗄️ Databases3 views
    Compare vs Mysql MCP Server →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
10
Stargazers on the source repository.
Last commit
3d ago
Most recent push to the default branch.
Directory activity
10 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about MCPg

Install the `mcpg` package from PyPI with `pip install mcpg`, or use `uv tool install mcpg`. The project also publishes a Docker image and a Claude Desktop `.mcpb` bundle.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCPg AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/devopam-mcpg?style=directory)](https://allmcps.com/mcp/devopam-mcpg)
HTML Embed
<a href="https://allmcps.com/mcp/devopam-mcpg"><img src="https://allmcps.com/api/badge/devopam-mcpg?style=directory" alt="MCPg on AllMCPs" /></a>

Technical Specs & Signals

Category🗄️Databases
PricingFree
More technical detailsExpand ▾
TransportSTDIO
RuntimePython
AuthOther
LicenseMIT
ClientsClaude Desktop, Cursor, Windsurf, Cline / VS Code
Last updatedSep 8, 2026
96/96 checks healthy over the last 24h
Views10
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars10
GitHub Star CountTotal stargazers on GitHub representing community popularity (10 stars).
Last commit3d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 8, 2026
76Quality signal: Great · 76/100How this signal is calculated ▾
Server availability25/25
Verified ownership20/20
Documentation & tools24/30
Adoption & activity6/15
Community engagement1/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 27d ago via OSV.dev · mcpg (PyPI)

★ FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server →

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🗄️ Databases →Best MCP servers for Databases →Alternatives to MCPg →Install in Claude DesktopInstall in CursorInstall in VS Code