PlugWiki

PostgreSQL MCP Server: Tools, Setup for Claude Code, Cursor & More

CommunityLocal
GetPyPImdev-postgresql-mcp-servermusaddiq-dev/postgresql-mcp-server

Not the official PostgreSQL MCP server. This one is built by the community. PostgreSQL makes its own: MCP Toolbox for Databases →

Python MCP server for PostgreSQL database inspection and querying

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install PostgreSQL MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the PostgreSQL MCP server to Claude Code. Run this command:
    
    claude mcp add postgresql -e POSTGRES_HOST=<POSTGRES_HOST> -e POSTGRES_PORT=<POSTGRES_PORT> -e POSTGRES_USER=<POSTGRES_USER> -e POSTGRES_DB=<POSTGRES_DB> -- uvx mdev-postgresql-mcp-server
    
    Ask me for POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_DB and only put the values in that config, nowhere else.
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires uv (Python).

Built from the package data we hold. Not yet tested by us.

Tools

We don't list PostgreSQL MCP's tools here yet. After you connect it, ask your assistant "What can you do with PostgreSQL MCP?" to see them.

Information

updated Nov 2, 2026

Publisher
Community
Package
mdev-postgresql-mcp-server
Registry
PyPI
Transport
stdio
Version
0.1.2
License
MIT
Last commit
May 23, 2026
Open issues
0
Listed in
Official MCP registry

GitHubPyPIOfficial MCP RegistryChangelogIssues

Other PostgreSQL MCP servers

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.