Postgres

•
1
•

Manages PostgreSQL database tasks through a Model Context Protocol server.

This Model Context Protocol (MCP) server enables LLM-powered agents and various MCP clients to interact with PostgreSQL databases. It provides a set of controlled tools for database inspection, reading data, and safely performing write operations confined to a specified schema. The server supports both standard I/O and streamable HTTP transports, including optional Bearer authentication for secure network access. It integrates seamlessly with popular MCP clients like OpenWebUI and can be deployed as a systemd service or accessed remotely via network configurations like Tailscale, offering a robust and secure way to programmatically manage PostgreSQL databases.

주요 기능

010 GitHub stars
02Supports both standard I/O (stdio) and streamable HTTP transports for flexible integration.
03Enforces write safety by confining operations to a dedicated 'mcp' schema and rejecting multi-statement queries.
04Exposes key PostgreSQL database operations (describe, read, write, health check) via MCP.
05Offers optional Bearer authentication for secure HTTP access.
06Provides a command-line interface for direct tool invocation and testing.

사용 사례

01Automate database inspection, data retrieval, and controlled writing operations programmatically.
02Integrate LLM-powered agents and chat clients with PostgreSQL databases for intelligent data interaction.
03Securely expose PostgreSQL functionality to remote clients over HTTP, including authentication and network configuration via services like Tailscale.