AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
LLM Infra/
mcp-postgres-server
mcp-postgres-server logo

mcp-postgres-server

Active·★ 24·MIT·Updated 2026-09-16

This project is an MCP server designed to provide secure and structured access to PostgreSQL databases for models. It supports various PostgreSQL environments, including local, Docker, and cloud-based instances, with robust security features like read-only enforcement and SSH tunneling.

#PostgreSQL#Database Access#LLM Tooling#Node.js#Data Integration#Read-only#SSH Tunneling
$ Install
$ npm install mcp-postgres-server
↗ Visit site★ GitHub
01

Features

01Read-only access by default, with explicit opt-in for writes.
02Supports DATABASE_URL with comprehensive SSL options.
03Prepared-statement parameters for secure SQL execution.
04Result size capping to prevent model context flooding.
05Detailed error handling with SQLSTATE hints for model self-correction.
02

Compatibility

Node.js
Runtime
Verified via docs
PostgreSQL
Database
Verified via docs
Docker
Deployment
Verified via docs
Cloud Databases
Platforms
Verified via docs
MCP Clients
Integration
Verified via docs
03

Quick start

1
$ npm install mcp-postgres-server
04

Use cases

↳Enabling AI agents to safely query and interact with PostgreSQL databases.
↳Integrating PostgreSQL databases into LLM applications with controlled read/write access.
↳Connecting to PostgreSQL instances across diverse environments including local, Docker, and various cloud providers (RDS, Neon, Supabase).
↳Facilitating database context for MCP-compatible AI clients like VS Code and Cursor.
05

Alternatives

⚡Top VS:
VSus-census-bureau-data-api-mcp★105→VSagent-harness-generator★713→VSagy-bridge★60→VSrun402★24→
us-census-bureau-data-api-mcp logo
us-census-bureau-data-api-mcp★ 105
The U.S. Census Bureau Data API MCP connects AI Assistants with official Census Bureau statistics.
VSCompare→
agent-harness-generator logo
agent-harness-generator★ 713
🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MCP server, memory, learning loop, and witness-signed releases. Works with Claude Code, Codex, pi.dev, Hermes, OpenClaw, and RVM (hardware-isolated sandbox).
VSCompare→
agy-bridge logo
agy-bridge★ 60
MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI (agy) — purpose-built tools, model routing with fallback, session continuity, and output truncation to save Claude's context and tokens.
VSCompare→
run402 logo
run402★ 24
MCP server for Run402 — AI-native Postgres + REST + auth + storage + static sites. Pay with x402 USDC on Base. No signups.
VSCompare→
mcp-compress-router logo
mcp-compress-router★ 21
Compress all connected MCP into a single router MCP and save up to 99% on tokens
VSCompare→
deepseek-mcp-server logo
deepseek-mcp-server★ 26
MCP server for DeepSeek V4 (v4-flash, v4-pro, 1M context): chat, reasoning, function calling, thinking mode, cost tracking. deepseek-chat/reasoner aliases supported.
VSCompare→
hayba logo
hayba★ 13
Agentic MCP toolkit for UE5 — 100+ tools across 34 domains, PCG SQLite registry, cognitive map, SpatialCLIP grounding. The ultimate engine for spatial and procedural world-building.
VSCompare→
hevy-mcp logo
hevy-mcp★ 520
Manage your Hevy workouts, routines, folders, and exercise templates. Create and update sessions faster, organize plans, and search exercises to build workouts quickly. Stay synced with changes so your training log is always up to date.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
antonorlov /
mcp-postgres-server
↗

MCP server for PostgreSQL. Works with VS Code, Cursor, Claude Code, Codex, and Windsurf.

24MIT
Last commit1mo ago
StatusActive
CategoryLLM Infra
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.