Postgres MCP
by tyrchen
Standardized MCP interface for interacting with PostgreSQL databases, including schema exploration and query execution.
What it does
Postgres MCP provides a robust interface for AI agents to manage and interact with PostgreSQL databases. It allows agents to register multiple connections, execute queries, modify data, and explore table structures with built-in SQL validation for safety.
Tools
pg_mcp register: Connects to a new PostgreSQL database and returns a connection ID.pg_mcp unregister: Removes a database connection by ID.pg_mcp query: Executes a SELECT query on a specified connection.pg_mcp insert/update/delete: Performs DML operations on the database.pg_mcp create/drop: Manages tables and indexes.pg_mcp describe: Returns the structure of a specific table.
Installation
Install via Cargo:
cargo install postgres-mcp
Add to your MCP configuration:
{
"mcpServers": {
"postgres": {
"command": "postgres-mcp",
"args": ["stdio"]
}
}
}
Supported hosts
- Cursor
- Claude
Quick install
cargo install postgres-mcpInformation
- Pricing
- free
- Published
- 4/18/2026
- stars






