servers/ database/ database-mcp-postgres
Database Mcp Postgres icon

Database Mcp Postgres

Unverified Claim & verify → Database

MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.

View on GitHub ↗
Overview Installation

Overview

Database Mcp Postgres is a Model Context Protocol server that connects your AI assistant to PostgreSQL databases. It operates in read-only mode by default with row limits, query timeouts, and built-in protections against logging sensitive credentials. Any MCP-compatible assistant can call its database tools directly during conversations or agent runs.

The server runs locally via the npm package @database-mcp/postgres, communicating over stdio on your machine. Setup requires three environment variables: POSTGRES_HOST, POSTGRES_USER, and POSTGRES_DATABASE. Version v0.4.2 is available now under the MIT license, with source code and development at arifulislamat/database-mcp on GitHub.

Database Mcp Postgres is categorized as a Database tool on mcp.site and integrates with all major MCP clients including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and Zed. If you maintain this server for arifulislamat, claim your listing here to verify ownership, earn the Verified badge, and ensure the information stays accurate.

▸npm package — @database-mcp/postgres · MCP over stdio
▸PyPI package — database-mcp-postgres · MCP over stdio
▸Credentials — Requires POSTGRES_HOST, POSTGRES_USER, POSTGRES_DATABASE
▸Open source — MIT license · arifulislamat/database-mcp
▸Topics — database, libsql, mariadb, mcp, mcp-server

Installation

// claude_desktop_config.json
{
  "mcpServers": {
    "database_mcp_postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/postgres"
      ],
      "env": {
        "POSTGRES_HOST": "<postgres-host>",
        "POSTGRES_USER": "<postgres-user>",
        "POSTGRES_DATABASE": "<postgres-database>"
      }
    }
  }
}

Requires POSTGRES_HOST, POSTGRES_USER, POSTGRES_DATABASE

Related servers

SM
Supabase MCP
Database Remote

Manage Supabase projects, databases, auth, storage, and SQL workflows from AI agents.

★ 9.8k Updated 9h ago →
ME
Medplum
Database Remote

FHIR-native healthcare data platform tools for AI agents.

★ 2.5k Added 2 weeks ago →
RD
RE Data Refinery
Database

Clean, join, and reshape datasets with natural-language steps.

Added 13 hours ago →
EH
EOSL.ai — Hardware End-of-Life Database
Database Remote

Hardware end-of-life dates by part number, each linked to the vendor's own bulletin.

Added 1 month ago →
FI
Fincontext
Database Remote

Read-only bank & investment accounts via Plaid: balances, holdings, transactions, SQL analytics.

Added 1 month ago →
Dbmcp icon
Dbmcp
Database

Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention.

★ 30 Added 1 month ago →
>_ esc
↑↓ navigate↵ openesc close