Mmcp.market

Read Only Local Postgres MCP server

by hove.capital·capital.hove/read-only-local-postgres-mcp-server·v0.1.0·2 stars

MCP server for read-only PostgreSQL database queries in Claude Desktop

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

2 stars132 downloads/wk

Reviews

Write one

Nobody has reviewed Read Only Local Postgres yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Read Only Local Postgres tools (3, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • connect

    Connect to a PostgreSQL database using a connection string. The connection will be used for subsequent queries until changed.

  • disconnect

    Disconnect from the current runtime database and revert to the default environment-configured connection

  • querywrite action

    Run a read-only SQL query against the currently connected database

Public scan report

scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it

no findings
  • Code scan3 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 21 days ago15/15
  • Maintainer identitynamespace and repository owner differ; GitHub account older than a year; website matches verified namespace8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install Read Only Local Postgres in Claude Code, Cursor or VS Code

Runs npx -y @hovecapital/read-only-postgres-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add read-only-local-postgres-mcp-server -- npx -y @hovecapital/read-only-postgres-mcp-server
Add to Cursor

What the publisher says

From the Read Only Local Postgres repository's README, as published. We do not edit it. Read it on GitHub

PostgreSQL MCP Server

A Model Context Protocol (MCP) server that enables Claude Desktop to interact with PostgreSQL databases through natural language queries.

Features

  • Execute read-only SQL queries through Claude Desktop or Claude Code
  • Dynamic database connections - connect to any PostgreSQL database at runtime
  • Built-in security: statement validation plus database-enforced READ ONLY transactions
  • Easy integration with Claude Desktop and Claude Code
  • JSON formatted query results
  • Environment-based default configuration with runtime override support

Quick Start

For Claude Code Users (Recommended - Easiest Method)

claude mcp add postgres -s user -- npx -y @hovecapital/read-only-postgres-mcp-server

Then set your database environment variables:

export DB_HOST=localhost
export DB_PORT=5432
export DB_DATABASE=your_database_name
export DB_USERNAME=your_username
export DB_PASSWORD=your_password

Done! Restart Claude Code and ask: "What tables are in my database?"

For Claude Desktop Users (Manual Configuration)

1. Open your config file:

# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json

2. Add this configuration:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@hovecapital/read-only-postgres-mcp-server"],
      "env": {
        "DB_HOST": "localhost",
        "DB_PORT": "5432",
        "DB_DATABASE": "your_database_name",
        "DB_USERNAME": "your_username",
        "DB_PASSWORD": "your_password"
      }
    }
  }
}

3. Save, restart Claude Desktop, and test!

Prerequisites

  • Node.js (v16 or higher) - If using mise, update the command path accordingly
  • PostgreSQL database server
  • Claude Desktop application

Installation

Option 1: Install from MCP Registry (Recommended)

This server is published in the Model Context Protocol Registry as capital.hove/read-only-local-postgres-mcp-server.

Method A: Claude Code CLI (Easiest!)

claude mcp add postgres -s user -- npx -y @hovecapital/read-only-postgres-mcp-server

Then configure your database credentials using environment variables. Restart Claude Code and you're done!

Benefits:

  • One command installation
  • No manual JSON editing
  • Automatic configuration

Method B: Manual JSON Configuration

For Claude Desktop:

Edit ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.json (Windows):

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@hovecapital/read-only-postgres-mcp-server"],
      "env": {
        "DB_HOST": "localhost",
        "DB_PORT": "5432",
        "DB_DATABASE": "your_database_name",
        "DB_USERNAME": "your_username",
        "DB_PASSWORD": "your_password"
      }
    }
  }
}

For Claude Code:

Edit ~/.config/claude-code/settings.json (macOS/Linux) or %APPDATA%\claude-code\settings.json (Windows):

{
  "mcp": {
    "servers": {
      "postgres": {
        "command": "npx",
        "args": ["-y", "@hovecapital/read-only-postgres-mcp-server"],
        "env": {
          "DB_HOST": "localhost",
          "DB_PORT": "5432",
          "DB_DATABASE": "your_database_name",
          "DB_USERNAME": "your_username",
          "DB_PASSWORD": "your_password"
        }
      }
    }
  }
}

Option 2: Install from npm

npm install -g @hovecapital/read-only-postgres-mcp-server

Option 3: Installation with Claude Code

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Read Only Local Postgres: common questions

Is Read Only Local Postgres MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the Read Only Local Postgres safety report
How do I install Read Only Local Postgres?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Read Only Local Postgres need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Read Only Local Postgres maintained?
The last commit was 36 days ago (2026-09-07). The latest release is v0.1.0.
What can I use instead of Read Only Local Postgres?
Servers from other publishers that do the same job: DBHub MCP server, Neon MCP server and PostgreSQL MCP server. Compare all Read Only Local Postgres alternatives.

Alternatives to Read Only Local Postgres

Same job from other publishers: the closest match first, then the best rated.

All Read Only Local Postgres alternatives →
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • Neon
    Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
    A
  • PostgreSQL
    MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.
    B
  • PostgreSQL MCP Server
    PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
    B
  • Quarry
    Safety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.
    A

More from hove.capital →