MCP server
PostgreSQL MCP Server
io.github.musaddiq-dev/postgresql-mcp-server
Checked 25 Oct 2026, 21:11 UTC · Still published on its registry; checked against OSV.dev; never run by us
Python MCP server for PostgreSQL database inspection and querying
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Runs on your computer
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code
- Last checked
- 25 Oct 2026, 21:11 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. It then runs the package on your computer with your permissions. For other apps, copy the setup below.
Claude Code
claude mcp add postgresql-mcp-server --env POSTGRES_HOST=YOUR_VALUE --env POSTGRES_PORT=YOUR_VALUE --env POSTGRES_USER=YOUR_VALUE --env POSTGRES_DB=YOUR_VALUE -- uvx mdev-postgresql-mcp-server@0.1.2
Claude Desktop
{"mcpServers":{"postgresql-mcp-server":{"command":"uvx","args":["mdev-postgresql-mcp-server@0.1.2"],"env":{"POSTGRES_HOST":"YOUR_VALUE","POSTGRES_PORT":"YOUR_VALUE","POSTGRES_USER":"YOUR_VALUE","POSTGRES_DB":"YOUR_VALUE"}}}}
Codex (config.toml)
[mcp_servers.postgresql-mcp-server]
command = "uvx"
args = ["mdev-postgresql-mcp-server@0.1.2"]
env = { POSTGRES_HOST = "YOUR_VALUE", POSTGRES_PORT = "YOUR_VALUE", POSTGRES_USER = "YOUR_VALUE", POSTGRES_DB = "YOUR_VALUE" }
Gemini CLI
{"mcpServers":{"postgresql-mcp-server":{"command":"uvx","args":["mdev-postgresql-mcp-server@0.1.2"],"env":{"POSTGRES_HOST":"YOUR_VALUE","POSTGRES_PORT":"YOUR_VALUE","POSTGRES_USER":"YOUR_VALUE","POSTGRES_DB":"YOUR_VALUE"}}}}
Cursor
{"mcpServers":{"postgresql-mcp-server":{"command":"uvx","args":["mdev-postgresql-mcp-server@0.1.2"],"env":{"POSTGRES_HOST":"YOUR_VALUE","POSTGRES_PORT":"YOUR_VALUE","POSTGRES_USER":"YOUR_VALUE","POSTGRES_DB":"YOUR_VALUE"}}}}
VS Code
{"servers":{"postgresql-mcp-server":{"type":"stdio","command":"uvx","args":["mdev-postgresql-mcp-server@0.1.2"],"env":{"POSTGRES_HOST":"YOUR_VALUE","POSTGRES_PORT":"YOUR_VALUE","POSTGRES_USER":"YOUR_VALUE","POSTGRES_DB":"YOUR_VALUE"}}}}
Runs on your computer with your permissions: check the package and its source before installing. Replace YOUR_VALUE with your own POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_DB.
Browse
Related MCP servers
- Dependency Health MCP
Package alive? Verdict with evidence: deprecated, archived, stale or active; plus runtime EOL dates. - iNutriPlan Supplement Database MCP Server
MCP server exposing supplements database used by iNutriPlan.com - InsideOut (Riley)
Designs, prices, and deploys AWS/GCP cloud infrastructure from plain-English requirements. - Googleapis
Create, manage, and query your Google Cloud SQL resources. - Redu
Agent-native cloud, EU-hosted. Provision VMs, networks & databases on redu.cloud via MCP. - UpCloud MCP by usefulapi
Inspect servers, storage, networks, databases and billing, and start, stop or back up servers. - Civo MCP by usefulapi
List Civo instances, Kubernetes clusters, networks and DNS; reboot instances, add rules. - PlainQuery | MCP DB Agent
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Badge for your README
[](https://aptlynx.net/servers/io.github.musaddiq-dev/postgresql-mcp-server)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents