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)
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
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • 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 10/5/2026, 6:31:47 PM

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 Repository13 GitHub StarsTotal stargazers on GitHub for the source repository (13 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
We couldn’t automatically confirm this listing starts correctly

We ran the install command below but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx mcpg

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 18d ago.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Configure Environment Variables (API Keys, Tokens, Options):
Add required secrets below — values are included directly in the generated snippet so you can copy and paste with confidence.
Quick Add:
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"
      ],
      "env": {
        "MCPG_DATABASE_URL": "YOUR_VALUE_HERE",
        "MCPG_ACCESS_MODE": "YOUR_VALUE_HERE"
      }
    }
  }
}

💡 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
  • Postgres MCP logoPostgres MCP

    All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks

    🗄️ Databases1 views
    Compare vs Postgres MCP →
  • 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 →
  • Mysql MCP Server Pro logoMysql MCP Server Pro

    Supports SSE, STDIO; not only limited to MySQL's CRUD functionality; also includes database exception analysis capabilities; controls database permissions based on roles; and makes it easy for developers to extend tools with customization

    🗄️ Databases4 views
    Compare vs Mysql MCP Server Pro →
  • MCP Mysql Server logoMCP Mysql Server

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

    🗄️ Databases6 views
    Compare vs MCP Mysql Server →

Adoption & maintenance

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

GitHub stars
13
Stargazers on the source repository.
Last commit
1d ago
Most recent push to the default branch.
Install check
Inconclusive
Didn't respond in our test window — often a slow first install.
Directory activity
11 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 updatedOct 5, 2026
96/96 checks healthy over the last 20d
Views11
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 stars13
GitHub Star CountTotal stargazers on GitHub representing community popularity (13 stars).
Last commit1d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Oct 5, 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 4d 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 →Best PostgreSQL MCP servers →Alternatives to MCPg →Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients