antonorlov/mcp-postgres-server
by Various
MCP server for PostgreSQL. Works with VS Code, Cursor, Claude Code, Codex, and Windsurf.
MCP
antonorlov/mcp-postgres-server
Added 16 Sept 2026
Overview
An MCP server that connects PostgreSQL databases to MCP-compatible AI coding tools. Works with VS Code, Cursor, Claude Code, Codex, and Windsurf.
Best for
Best for
Developers using AI coding tools who need direct PostgreSQL access
Use cases
- Query PostgreSQL from Claude Code
- Give Cursor access to database schema
- Run database operations inside VS Code
How to use
Install
npx mcp-postgres-server Tools exposed
connect_dbDATABASE_URLPG_HOSTPG_PORTPG_USERPG_PASSWORDPG_DATABASEPG_ALLOW_WRITEPG_SSLMODEPG_SSL_CAPG_ENABLE_RUNTIME_CONNECTPG_MAX_RESULT_BYTESPG_STATEMENT_TIMEOUTPG_CONNECT_TIMEOUTPG_SSH_HOSTPG_SSH_PORTPG_SSH_USERPG_SSH_PRIVATE_KEYPG_SSH_PASSPHRASEPG_SSH_AGENT
Tested with
Claude Code, Cursor, Windsurf, VS Code
Example client config
{\n "mcpServers": {\n "postgres": {\n "type": "stdio",\n "command": "npx",\n "args": ["-y", "mcp-postgres-server"],\n "env": {\n "DATABASE_URL": "postgres://user:password@localhost:5432/mydb",\n "PG_ALLOW_WRITE": "false"\n }\n }\n }\n} Notes
An MCP server that connects PostgreSQL databases to MCP-compatible AI coding tools. Works with VS Code, Cursor, Claude Code, Codex, and Windsurf.
20 stars on GitHub. Last updated 2026-09-16. Licensed MIT.
Use cases
- Query PostgreSQL from Claude Code
- Give Cursor access to database schema
- Run database operations inside VS Code
Pros
- Supports multiple popular AI tools
- Written in TypeScript
- Straightforward MCP integration for PostgreSQL
Cons
- Small project with limited community traction
- No detailed feature or usage documentation cited
- Requires manual MCP client configuration
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Supports multiple popular AI tools
- Written in TypeScript
- Straightforward MCP integration for PostgreSQL
Cons
- Small project with limited community traction
- No detailed feature or usage documentation cited
- Requires manual MCP client configuration
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
