PostgreSQL reference server MCP Server: Tools, Setup for Claude Code, Cursor & More
@modelcontextprotocol/server-postgresmodelcontextprotocol/servers-archived/tree/main/src/postgresNot the official PostgreSQL MCP server. This one is built by the community. PostgreSQL makes its own: MCP Toolbox for Databases →
The original MCP reference server for read-only Postgres queries. It is archived and no longer patched, and its read-only mode can be bypassed, so use a maintained server instead.
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install PostgreSQL reference server MCP
Claude Code
- 1
Copy this prompt.
Add the PostgreSQL reference server MCP server to Claude Code. Run this command: claude mcp add postgresql-reference -- npx -y @modelcontextprotocol/server-postgres Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
Built from the package data we hold. Not yet tested by us.
Tools
We don't list PostgreSQL reference server MCP's tools here yet. After you connect it, ask your assistant "What can you do with PostgreSQL reference server MCP?" to see them.
Information
updated Nov 1, 2026
- Publisher
- Community
- Package
@modelcontextprotocol/server-postgres- Registry
- npm
- Transport
- stdio
- License
- MIT
- Last commit
- May 28, 2025