# mcp-postgres

> Use this tool when you need to safely query a PostgreSQL database, run SELECT queries, or explore database structures without risking data modification. It solves problems related to read-only data access, schema exploration, and protection against SQL injection attacks. The tool accepts SQL queries as input and returns query results, table listings, or column descriptions as output.

Canonical page: https://skillsregistry.net/skills/gbfeliped-mcp-postgres-readonly  
JSON: https://api.skillsregistry.net/v1/skills/gbfeliped-mcp-postgres-readonly

## Description

Read-only PostgreSQL MCP server that enables running SELECT queries, listing tables and schemas, and describing columns, with built-in protection against writes and malicious SQL attacks.

## Trust

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

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/gw4gzdk2v0)
- **Repository:** <https://github.com/gbfeliped/mcp-postgres-readonly>

## 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": "gbfeliped-mcp-postgres-readonly"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/gbfeliped-mcp-postgres-readonly` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/gbfeliped-mcp-postgres-readonly/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
