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 last commit a year ago data
49Fair

Scored 3 months 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. It has been installed 0 times through Conduid.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx 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

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

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 mirrored from the source repository 3 months ago. The original is authoritative.

Questions

About Postgres MCP Server

How do I install Postgres MCP Server?

Run npx postgres-mcp-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

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

Its trust score is 49 out of 100 (fair). It passes 0 of 1 static security checks; 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?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.