# pg-context

> pg-context — mewsyy-pg-context. Use this tool when you need to provide AI assistants with in-depth PostgreSQL context, including schema details and performance metrics, to inform data-driven decisions and optimize database operations. It solves problems related to database analysis, query optimization, and performance tuning by offering read-only access to key PostgreSQL metrics. The tool accepts database connections as input and outputs detailed context, such as schema DDL, index health, and query execution plans.

Canonical page: https://skillsregistry.net/skills/mewsyy-pg-context  
JSON: https://api.skillsregistry.net/v1/skills/mewsyy-pg-context

## Description

MCP server providing deep PostgreSQL context to AI assistants, including schema DDL, index health, foreign key associations, query execution plans, and performance statistics via read-only tools.

## 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/la8dhh6pp4)
- **Repository:** <https://github.com/mewsyy/pg-context>

## 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": "mewsyy-pg-context"
    }
  }
}
```

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