PostgreSQL MCP Server
Connects MCP-compatible agents to PostgreSQL with database tools, Code Mode, introspection, migrations, filtering, and multiple transports.
Install PostgreSQL MCP Server
Run the project’s own setup commands, in order.
Setup steps from the project
PostgreSQL MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
docker pull writenotenow/postgres-mcp:latestnpm install -g @neverinfamous/postgres-mcppostgres-mcp --transport stdio --postgres postgres://user:password@localhost:5432/databasegit clone https://github.com/neverinfamous/postgres-mcp.gitcd postgres-mcpnpm install
Overview
Use cases
- Query PostgreSQL data through an MCP-compatible agent
- Inspect schemas and track database migrations
- Run multi-step database workflows in Code Mode
- Filter exposed tools for a constrained deployment
- Review database activity through audit resources
Key features
- 278 specialized PostgreSQL tools
- V8-isolate Code Mode
- Schema introspection and migration tracking
- Connection pooling and tool filtering
- OAuth 2.1 and HTTP/SSE transports
- Support for selected PostgreSQL extensions
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How PostgreSQL MCP Server works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about PostgreSQL MCP Server
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/postgresql-mcp-server-3)<a href="https://allmcps.com/mcp/postgresql-mcp-server-3"><img src="https://allmcps.com/api/badge/postgresql-mcp-server-3?style=directory" alt="PostgreSQL MCP Server on AllMCPs" /></a>