pg-mcp-server

stuzero/pg-mcp-server
★ 535 stars Python 🗄️ Database Updated 1mo ago
An MCP server.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "pg-mcp-server": {
      "command": "uvx",
      "args": [
        "pg-mcp-server"
      ]
    }
  }
}

Or install with pip: pip install pg-mcp-server

README Excerpt

A Model Context Protocol (MCP) server for PostgreSQL databases with enhanced capabilities for AI agents. More info on the pg-mcp project here: PG-MCP is a server implementation of the [Model Context Protocol](https://modelcontextprotocol.io) for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.