Back to Home
kyagoshi icon

pgmcp

Verified Safe

by kyagoshi

Overview

Provides an MCP server to retrieve PostgreSQL database schema information, including tables, columns, indexes, foreign keys, and ER diagrams.

Installation

Run Command
uvx --from git+https://github.com/kyagoshi/pgmcp pgmcp

Environment Variables

  • PGHOST
  • PGPORT
  • PGDATABASE
  • PGUSER
  • PGPASSWORD

Security Notes

The server correctly uses environment variables for PostgreSQL connection details, avoiding hardcoded secrets. All SQL queries are parameterized using `psycopg2`, effectively preventing SQL injection vulnerabilities. No 'eval' or other dynamic code execution patterns were identified.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-06

Tags

PostgreSQLDatabaseSchemaER DiagramMCP