Postgres MCP
🔌 Native MCP server for PostgreSQL - reads credentials from .env at runtime with flexible key mapping, configurable tool selection, and read-only mode by default . It runs locally over stdio via the published package.
People connecting database tools to Claude, Cursor, VS Code, or another MCP client. The project is written in JavaScript.
VERIFIED ACTIVE
LAST COMMIT 2026-06-13 · ★ 5 · VERIFIED 2026-08-25
NOASSERTION · JavaScript servers · how we verify → /methodology
01 · Install Postgres MCP
before you install - you'll need
Set MCP_KEY_HOST, MCP_KEY_PORT, MCP_KEY_NAME, MCP_KEY_SSLMODE, MCP_KEY_USER, MCP_KEY_PASS, POSTGRES_MCP_ALLOW_WRITE, MCP_KEY_URL, DB_HOST, DB_PORT, DB_NAME, DB_SSLMODE before connecting.
Claude Code
claude mcp add edelciomolina-postgres-mcp -- npx -y @edelciomolina/postgres-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"edelciomolina-postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license no standard license detected - usage rights unclear; check the repo before commercial use
npm package @edelciomolina/postgres-mcp - published under the repo owner's npm scope (@edelciomolina)
registry namespace io.github.edelciomolina is GitHub-verified and matches the repo owner
03 · Who maintains Postgres MCP
Postgres MCP is maintained by edelciomolina. It's the only MCP server we track from this author; the repo dates to Jun 2026.
04 · Facts
- repository
- github.com/edelciomolina/postgres-mcp
- category
- database - actively maintained as of 2026-08-25.
- registry
- io.github.edelciomolina/postgres-mcp (active, first published 2026-06-06 · 11 versions)
- packages
- npm:@edelciomolina/postgres-mcp
05 · Postgres MCP FAQ
What is Postgres MCP?
🔌 Native MCP server for PostgreSQL - reads credentials from .env at runtime with flexible key mapping, configurable tool selection, and read-only mode by default . It runs locally over stdio via the published package.
Is Postgres MCP still maintained?
Yes - as of 2026-08-25, its last commit was 2026-06-13. We re-verify nightly.
How do I install Postgres MCP?
Run `npx -y @edelciomolina/postgres-mcp`. The README documents 12 environment variables (MCP_KEY_HOST, MCP_KEY_PORT, MCP_KEY_NAME…) to set first. Set MCP_KEY_HOST, MCP_KEY_PORT, MCP_KEY_NAME, MCP_KEY_SSLMODE, MCP_KEY_USER, MCP_KEY_PASS, POSTGRES_MCP_ALLOW_WRITE, MCP_KEY_URL, DB_HOST, DB_PORT, DB_NAME, DB_SSLMODE before connecting. You can also paste the ready-made client config above.
Does Postgres MCP run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
06 · Alternatives to Postgres MCP
Alternatives to Postgres MCP
Maintained database servers if Postgres MCP isn't the fit.
- Dbx Query databases from AI agents using connections configured in DBX. ★ 16,462 · 2026-08-25
- Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. ★ 16,249 · 2026-08-25
- Dbhub Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB ★ 3,395 · 2026-08-21
- Butterbase Ai MCP Server Butterbase MCP server - manage your backend: schemas, auth, functions, storage, RAG, deploys. ★ 3,225 · 2026-08-24
- Supabase MCP server for interacting with the Supabase platform ★ 2,871 · 2026-08-22
- MongoDB MCP Server MongoDB Model Context Protocol Server ★ 1,106 · 2026-08-24
Pairs well with
Servers that cover what Postgres MCP doesn't - only shown when the pairing reason fits the companion.
- Server Chart → data & analytics companion data & analytics · ★ 4,337
- Keboola MCP Server → data & analytics companion data & analytics · ★ 86
- Server Filesystem → filesystem companion filesystem · ★ 38,704
- X402 List MCP → filesystem companion filesystem · ★ 58
- Telnyx → API integration companion API integration · ★ 197
- Microsoft 365 MCP Server → API integration companion API integration · ★ 932
More database MCP servers · Metabase AI Assistant · Sql Server Rules · Bagel · Query Weaver · Bibelstudium MCP
More JavaScript MCP servers · Ejentum MCP · Self Inspect MCP · Magpipe · Kie MCP · Taskbounty Check · see all