# PostgreSQL

> Use this tool when you need to interact with PostgreSQL databases in a secure and controlled manner, enabling read-only access to inspect database schemas and execute SQL queries. It solves problems such as database schema exploration, SQL query generation, and data-driven insights, providing a flexible interface for AI agents to analyze relational data. Ideal for use cases where AI assistants require access to PostgreSQL databases to provide data-driven insights, generate queries, or explore database schemas.

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

## Description

This PostgreSQL MCP server, developed by Anthropic, provides a read-only interface for language models to interact with PostgreSQL databases. It enables AI agents to inspect database schemas and execute SQL queries through a controlled interface. The server integrates with Claude Desktop and can be run as a standalone application, offering deployment flexibility. By focusing on read-only access and using environment variables for configuration, it maintains data security while allowing AI systems to explore and analyze relational data. This implementation is particularly useful for AI assistants designed to perform database schema exploration, generate SQL queries, or provide data-driven insights using PostgreSQL as the backend.

## Trust

- **Trust score (0–1):** 0.30
- **Verification tier:** unverified
- **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/modelcontextprotocol-postgres)
- **Repository:** <https://github.com/modelcontextprotocol/servers-archived/tree/HEAD/src/postgres>

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

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