MCPs/postgresql
2026-06-23 15:09:54 +02:00
..
Dockerfile feat: update fleet to tested MCPs + add 10 new MCPs with Dockerfiles + Woodpecker CI 2026-06-23 15:09:54 +02:00
README.md feat: update fleet to tested MCPs + add 10 new MCPs with Dockerfiles + Woodpecker CI 2026-06-23 15:09:54 +02:00

postgresql-mcp

MCP server for PostgreSQL database operations.

Source: @modelcontextprotocol/server-postgres

Environment Variables

Variable Required Description
DATABASE_URL Yes Full PostgreSQL connection URL (e.g. postgresql://user:pass@host:5432/db?sslmode=disable)

Usage

docker run -d \
  --name postgresql-mcp \
  -p 8109:8109 \
  -e DATABASE_URL=postgresql://user:pass@host:5432/mydb \
  forgejo.corentic.eu/corentic/mcp-fleet-postgresql:latest

Tools

  • query — Execute read-only SQL queries (SELECT, EXPLAIN, etc.)
  • execute — Execute write SQL (INSERT, UPDATE, DELETE, DDL)
  • list_tables — List tables in the database
  • describe_table — Get schema info for a specific table
  • get_table_stats — Row counts and table statistics