# Postgres Query

> Use this tool when you need to securely execute read-only SQL queries against a PostgreSQL database, solving problems such as data analysis and retrieval while preventing unintended write operations. It takes a connection string as input and outputs query results, providing a validated and timeout-protected interface. Ideal for use cases requiring controlled database access, such as data exploration and reporting.

Canonical page: https://skillsregistry.net/skills/postgres-query  
JSON: https://api.skillsregistry.net/v1/skills/postgres-query

## Description

A read-only PostgreSQL query server for Claude Desktop that provides secure, validated database access through the MCP protocol. Implements strict query validation to prevent write operations, includes a 10-second timeout mechanism, and allows users to execute SELECT queries against configured PostgreSQL databases by passing a connection string directly via command line arguments.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-09-02

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-02

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/postgres-query)
- **Repository:** <https://github.com/rathoddarshil/mcp-postgres-query-server>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "postgres-query"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/postgres-query` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/postgres-query/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
