Python MCP server for PostgreSQL database inspection and querying
Use this profile to copy client config, check auth requirements, review tools and resources, and compare related MCP servers before adding it to an AI client.
uvx mdev-postgresql-mcp-server{
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
"POSTGRES_USER": "YOUR_VALUE_HERE",
"POSTGRES_PASSWORD": "YOUR_SECRET_VALUE",
"POSTGRES_DB": "YOUR_VALUE_HERE",
"POSTGRES_READ_QUERY_LIMIT": "1000"
}Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
{
"mcpServers": {
"io-github-musaddiq-dev-postgresql-mcp-server": {
"command": "uvx",
"args": [
"mdev-postgresql-mcp-server"
],
"env": {
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
"POSTGRES_USER": "YOUR_VALUE_HERE",
"POSTGRES_PASSWORD": "YOUR_SECRET_VALUE",
"POSTGRES_DB": "YOUR_VALUE_HERE",
"POSTGRES_READ_QUERY_LIMIT": "1000"
}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNo remote HTTP endpoint is advertised. Use the package or stdio setup shown in Install.
PostgreSQL MCP Server is an MCP server for Python MCP server for PostgreSQL database inspection and querying. It supports STDIO transport.
Use the generated config in Install. This server runs with uvx mdev-postgresql-mcp-server; add any required environment variables before starting your client.
Choose the Claude Desktop tab in Install and copy the config for uvx mdev-postgresql-mcp-server. Add required environment variables before starting Claude Desktop.
Choose the Claude Code tab in Install and copy the config for uvx mdev-postgresql-mcp-server. Add required environment variables before starting Claude Code.
Choose the Codex tab in Install and copy the config for uvx mdev-postgresql-mcp-server. Add required environment variables before starting Codex.
Choose the Cursor or VS Code tab in Install and copy the config for uvx mdev-postgresql-mcp-server. Add required environment variables before starting Cursor or VS Code.
PostgreSQL MCP Server uses STDIO transport. Use the package or command config in Install.
PostgreSQL MCP Server inventory is listed when the MCP endpoint exposes tools, resources, or prompts. Some servers require auth first.
PostgreSQL MCP Server is marked with Auth required by registry metadata auth. You may need provider login, an API key, a bearer token, or a session header.
| Package | Registry | Version | Inputs |
|---|---|---|---|
mdev-postgresql-mcp-serverstdio | pypi | 0.1.2 | Env: POSTGRES_HOST required Env: POSTGRES_PORT required Env: POSTGRES_USER required Env: POSTGRES_PASSWORD secret Env: POSTGRES_DB required Env: POSTGRES_READ_QUERY_LIMIT |