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. Postgres MCP
Postgres MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 8:17:53 PM

Postgres MCP

User RatingsBe the first to rate and review this MCP server!
View Repository10 GitHub StarsTotal stargazers on GitHub for the source repository (10 stars).Visit Website
postgresqldatabaseschema-inspectionqueryingmcp

Connects MCP-compatible clients to PostgreSQL for querying, schema inspection, performance analysis, and optional writes.

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": {
    "javimaligno-postgres-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "npx"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (15) Directory Badge Claim listing Alternatives๐Ÿ—„๏ธ More in Databases

Overview

JaviMaligno/postgres_mcp MCP server exposes PostgreSQL query, schema, metadata, and performance tools through MCP. It supports TypeScript and Python implementations, with credentials supplied through environment variables and optional aliases for multiple database connections. Read operations are enabled by default, while INSERT, UPDATE, and DELETE require write access to be enabled. Reach for it when an AI client needs to inspect a PostgreSQL database, build or explain queries, analyze tables, or document schemas.

Use cases

โ€ขExplore PostgreSQL schemas and tables
โ€ขRun read-only SQL queries
โ€ขExplain queries and inspect performance
โ€ขDocument database structures
โ€ขInspect indexes, constraints, and table statistics

Key features

โ€ขRead-only SQL querying by default
โ€ขOptional INSERT, UPDATE, and DELETE execution
โ€ขSchema, view, function, and table inspection
โ€ขEXPLAIN plans and table statistics
โ€ขMultiple aliased PostgreSQL connections
โ€ขMCP prompts and browsable resources

Capabilities & Tool Schemas (15) ~213 tokensApproximate context cost of this serverโ€™s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server โ€” may be incomplete or out of date.

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

query

Execute read-only SQL queries against the database

execute

Execute write operations (INSERT/UPDATE/DELETE) when enabled

explain_query

Get EXPLAIN plan for query optimization

list_schemas

List all schemas in the database

list_tables

List tables in a specific schema

describe_table

Get table structure (columns, types, constraints)

How Postgres MCP works

What JaviMaligno/postgres_mcp MCP server does

JaviMaligno/postgres_mcp MCP server connects MCP-compatible clients to PostgreSQL databases. It provides tools for running read-only SQL, inspecting database structure, examining indexes and constraints, reviewing table statistics, and retrieving database information. The server also includes an optional write tool for INSERT, UPDATE, and DELETE operations when write access is enabled.

The repository contains equivalent TypeScript and Python implementations. The TypeScript package is the recommended option for Smithery deployments and requires Node.js 20 or newer. The Python package requires Python 3.10 or newer. Both implementations support the documented MCP protocol revision and retain compatibility with clients using the earlier initialization style.

How it works

JaviMaligno/postgres_mcp MCP server reads connection settings from the process environment rather than accepting credentials as tool arguments. A single connection can use PostgreSQL host, port, user, password, database, and SSL mode variables. For multiple databases, POSTGRES_CONNECTIONS defines named aliases; each tool can select an alias with its optional database argument, while omitted arguments use the configured default.

Multiple connections are opened lazily, so an unused configured database does not open a connection pool. The server can also apply per-connection write permissions. If no connection is explicitly marked as default, the first declared connection is used. Credentials are not returned by list_databases, which reports aliases and non-secret connection details instead.

MCP prompts support guided database exploration, query construction, performance analysis, and schema documentation. MCP resources expose browsable schema, table, and database information through postgres:// resource URIs.

Setup and configuration

The TypeScript implementation can be run with npx @javiagui/postgresql-mcp or installed globally with npm. The Python implementation is installed with pipx install postgresql-mcp and runs as postgresql-mcp. Configuration examples are provided for Claude Code and Cursor, and the README states compatibility with Claude Desktop and other MCP clients.

For a basic connection, POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB are required. POSTGRES_HOST defaults to localhost, POSTGRES_PORT defaults to 5432, and POSTGRES_SSLMODE defaults to prefer. ALLOW_WRITE_OPERATIONS defaults to false. QUERY_TIMEOUT defaults to 30 seconds, and MAX_ROWS defaults to 1,000 returned rows.

POSTGRES_CONNECTIONS and the individual POSTGRES_* settings are mutually exclusive. Connection entries can use discrete fields or a PostgreSQL URL, with discrete fields taking precedence when both are present.

Tools and capabilities

JaviMaligno/postgres_mcp MCP server exposes tools for:

  • Executing read-only queries and, when permitted, write statements.
  • Producing EXPLAIN plans for query optimization.
  • Listing schemas, tables, views, functions, and procedures.
  • Describing table columns, types, constraints, and view definitions.
  • Finding indexes and constraints such as primary keys, foreign keys, unique constraints, and checks.
  • Reporting table row counts, size, and bloat statistics.
  • Searching for column names across tables.
  • Returning PostgreSQL version and connection information.
  • Listing configured database aliases without exposing credentials.

Limitations and notes

Write operations are disabled by default and must be enabled explicitly. The server enforces query limits through the configured timeout and maximum-row settings. Connection credentials must remain in the environment; callers cannot supply a host, user, password, or connection string through a tool argument. The README identifies MIT as the project license.

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Databases View all alternatives
  • MCP Snowflake Server logoMCP Snowflake Server

    Snowflake integration implementing read and (optional) write operations as well as insight tracking

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs MCP Snowflake Server โ†’
  • MCP Datalink logoMCP Datalink

    MCP server for secure database access (PostgreSQL, MySQL, SQLite) with parameterized queries and schema inspection

    ๐Ÿ—„๏ธ Databases1 views
    Compare vs MCP Datalink โ†’
  • Influxdb3 MCP Server logoInfluxdb3 MCP Server
    Verified

    Official MCP server for InfluxDB 3 Core/Enterprise/Cloud Dedicated

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs Influxdb3 MCP Server โ†’
  • Legion MCP logoLegion MCP

    Universal database MCP server supporting multiple database types including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite.

    ๐Ÿ—„๏ธ Databases5 views
    Compare vs Legion MCP โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
10
Stargazers on the source repository.
npm downloads
58
Package downloads in the last 30 days.
Last commit
1mo ago
Most recent push to the default branch.
Tools exposed
15
Callable tools this server registers over MCP.
Directory activity
3 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 Postgres MCP

Use the TypeScript package with `npx @javiagui/postgresql-mcp` or install it globally with npm. The Python implementation is installed with `pipx install postgresql-mcp`.

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 PreviewPostgres MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/javimaligno-postgres-mcp?style=directory)](https://allmcps.com/mcp/javimaligno-postgres-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/javimaligno-postgres-mcp"><img src="https://allmcps.com/api/badge/javimaligno-postgres-mcp?style=directory" alt="Postgres MCP on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ—„๏ธDatabases
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthOther
LicenseMIT
ClientsClaude Desktop, Cursor
Last updatedSep 7, 2026
11/11 checks healthy over the last 32d
Views3
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 commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 3, 2026
npm downloads58/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
59Quality signal: Good ยท 59/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools28/30
Adoption & activity6/15
Community engagement0/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 19d ago via OSV.dev ยท npx (npm)

โ˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

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

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

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 Postgres MCP โ†’Install in Claude DesktopInstall in CursorInstall in VS Code