# pg-mcp

> Use this tool when you need to query PostgreSQL databases using natural language, enabling easy access to data without requiring technical SQL knowledge. It solves the problem of complex database querying by translating user questions into validated SQL, executing read-only queries safely, and returning results to compatible clients. It takes natural language inputs and returns query results, making it ideal for users who want to retrieve data from PostgreSQL databases without writing SQL code.

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

## Description

Enables natural language querying of PostgreSQL databases through the Model Context Protocol. It translates user questions into validated SQL, executes read-only queries safely, and returns results to MCP-compatible clients like Claude Desktop.

## Trust

- **Trust score (0–1):** 0.83
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

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

## Source

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

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

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