Skip to content
Back to skills

Postgresql Mcp Server

ASecurity

Agent access to PostgreSQL data and queries through MCP.

  • 67 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 8, 2026
ai-agentspythongosqlgitdatabasesecuritydocumentation

Works with

  • claude code
  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill postgresql-mcp-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Postgresql Mcp Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Postgresql Mcp Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-postgresql-mcp-server/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-postgresql-mcp-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "PostgreSQL MCP Server"
slug: "postgresql-mcp-server"
description: "Agent access to PostgreSQL data and queries through MCP."
github_stars: 86557
verification: "security_reviewed"
source: "https://github.com/modelcontextprotocol/servers"
author: "Model Context Protocol"
publisher_type: "open_source_collective"
category: "Data Extraction & Transformation"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "modelcontextprotocol/servers"
  github_stars: 86557
  npm_package: "@modelcontextprotocol/server-postgres"
  npm_weekly_downloads: 395921
---

# PostgreSQL MCP Server

Agent access to PostgreSQL data and queries through MCP.

## Prerequisites

PostgreSQL database access, credentials, MCP client or host environment

## Installation

Use the upstream install or setup path that matches your environment:
- npx -y @modelcontextprotocol/server-memory
- pip install mcp-server-git
- Follow [these](https://docs.astral.sh/uv/getting-started/installation/) instructions to install uv / uvx and [these](https://pip.pypa.io/en/stable/installation/) to install pip.

Requirements and caveats from upstream:
- [Python MCP SDK](https://github.com/modelcontextprotocol/python-sdk)
- **[MCP Plexus](https://github.com/Super-I-Tech/mcp_plexus)**: A secure, **multi-tenant** and Multi-user MCP python server framework built to integrate easily with external services via OAuth 2.1, offering scalable and...
- **[mxcp](https://github.com/raw-labs/mxcp)** (Python) - Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.

Basic usage or getting-started notes:
- The servers in this repository are intended as **reference implementations** to demonstrate MCP features and SDK usage. They are meant to serve as educational examples for developers building their own MCP servers, no...
- **[Fetch](src/fetch)** - Web content fetching and conversion for efficient LLM usage.
- **[mcp.run](https://mcp.run)** - A hosted registry and control plane to install & run secure + portable MCP Servers.

- Source: https://github.com/modelcontextprotocol/servers
- Extracted from upstream docs: https://raw.githubusercontent.com/modelcontextprotocol/servers/HEAD/README.md

## Documentation

- https://github.com/modelcontextprotocol/servers

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/postgresql-mcp-server/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.