PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
Connect Runs on your machine
claude mcp add postgres-mcp -e DATABASE_URL=<DATABASE_URL> -- uvx postgres-mcp-pro==0.4.2
{
"mcpServers": {
"postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp-pro==0.4.2"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
{
"mcpServers": {
"postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp-pro==0.4.2"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
{
"servers": {
"postgres-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"postgres-mcp-pro==0.4.2"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DATABASE_URLRequired, secret | PostgreSQL connection URL, e.g. postgresql://user:pass@localhost:5432/dbname |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 21 Aug 2026 |
| Last updated | 21 Aug 2026 |
| Registry name | io.github.sparta2025/postgres-mcp |
More databases servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
