1. Conduid
  2. Data
  3. Postgres MCP Server
MCP server · Data

Postgres MCP Server

A Model Control Protocol (MCP) server that allows Claude to interact with PostgreSQL databases using natural language queries

Unclaimed MIT data
49Fair

Scored 21 hours ago · breakdown

About Postgres MCP Server

Postgres MCP Server is an MCP server published by mgorunuch in the Data category: a Model Control Protocol (MCP) server that allows Claude to interact with PostgreSQL databases using natural language queries.

The repository has 1 stars and 0 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/mgorunuch/postgres-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Postgres MCP Server

Powered by Claude · Grounded in docs

I know everything about Postgres MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 21 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.11v0.1.11 · 13 May 2025Changelog 7d09b12ba3a2ec98886632991f36fbc49c50ad1d Add Claude settings to gitignore c7ef7e488967150542d78fc902cb508b5e49a9dc Brew formula update for postgres-mcp-server version v0.1.10 6e8836b3ff6f952bcf506410505361c59876773d Brew formula…
v0.1.10v0.1.10 · 13 May 2025Changelog 36e8cddf90f9b517b358c0366ed3a276a9206fec Brew formula update for postgresql-mcp-server version v0.1.8 2f72bf4f0925fa38703f4776c96c7dc7576362b1 Rename formula file to match project name 8ea46f71a6cbf9ae7084e34501153c4eeeeeb4ec…
v0.1.9v0.1.9 · 13 May 2025Changelog 01b69e7b960f5967c3111aaabb6b0cd128a5010b Rename project from postgresql-mcp-server to postgres-mcp-server
v0.1.8v0.1.8 · 13 May 2025Changelog cf8267dfd5fc1a5cd09aee4c7e780da0c8004168 Fix repository references and add Homebrew formula
v0.1.7v0.1.7 · 13 May 2025Changelog ee3dcc0b3d066c7f6673a6123852413f9baa9548 Update goreleaser configuration

README

PostgreSQL MCP Server

PostgreSQL MCP Server Banner

A Model Control Protocol (MCP) server for PostgreSQL databases that allows Claude to interact with your PostgreSQL databases.

Using with Claude Code

The easiest way to use this server with Claude Code:

# Generate MCP config and add it to Claude
JSON=$(postgres-mcp-server --json --connection-string '...') \
&& claude mcp add-json "$JSON"

Installation

Using Homebrew

# Add the tap
brew tap mgorunuch/postgres-mcp-server https://github.com/mgorunuch/postgres-mcp-server

# Install the server
brew install mgorunuch/postgres-mcp-server/postgres-mcp-server

Manual Installation

Download the appropriate binary for your platform from the releases page.

Setup

There are two ways to use this server:

1. Running Directly

  1. Set your PostgreSQL connection string as an environment variable (optional):

    export POSTGRES_CONNECTION_STRING="postgresql://user:password@host:port/dbname?sslmode=disable"
    

    If not provided, defaults to postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable

  2. Launch the server:

    postgres-mcp-server
    
  3. Use with Claude by setting up the MCP connection to this server.

2. Using with Claude's MCP Configuration

  1. Generate the MCP configuration JSON:

    postgres-mcp-server --json --connection-string "postgresql://user:password@host:port/dbname?sslmode=disable"
    

    This will output a JSON configuration you can use with Claude's MCP tools.

    Example output:

    {"type":"stdio","command":"/path/to/postgres-mcp-server","args":["--connection-string","postgresql://user:password@host:port/dbname?sslmode=disable"],"env":{}}
    
  2. Copy this JSON output and use it to configure the MCP connection in Claude.

Command Line Options

  • --version: Displays version information
  • --json: Outputs MCP configuration JSON for use with Claude
  • --connection-string: PostgreSQL connection string (overrides environment variable)

Security

For safety, potentially destructive queries (DROP, TRUNCATE, DELETE, UPDATE, ALTER, CREATE, INSERT) are blocked by default.

To execute these queries, you must explicitly set unsafe: true when using the pg_query tool.

README fetched from the repository 21 hours ago. The original is authoritative.

Questions

About Postgres MCP Server

How do I install Postgres MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Postgres MCP Server safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Postgres MCP Server still maintained?

Yes — the last commit was 2 months ago. The repository has 1 stars and 0 forks.