MCP server · Data & Databases
PostgreSQL
Read-only access to PostgreSQL schemas and queries for safe database exploration.
91Trust score / 100
Permissions and access
Review these capabilities before installing. Required environment variables are never included with their values.
Required environment variables
Tools exposed
List tablesDescribe schemaRun query
Catalog tool · get_listing
Checked by AgentStack MCP
A sample MCP tools/call request for this listing and the corresponding catalog result.
Tool call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_listing",
"arguments": {
"slug": "postgres"
}
}
}Tool response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"id\": \"mcp-postgres\",\n \"slug\": \"postgres\",\n \"name\": \"PostgreSQL\",\n \"description\": \"Read-only access to PostgreSQL schemas and queries for safe database exploration.\",\n \"type\": \"mcp\",\n \"category\": \"Data & Databases\",\n \"tags\": [\n \"sql\",\n \"database\",\n \"postgres\"\n ],\n \"githubUrl\": \"https://github.com/modelcontextprotocol/servers\",\n \"author\": \"modelcontextprotocol\",\n \"stars\": 68000,\n \"toolsExposed\": [\n \"List tables\",\n \"Describe schema\",\n \"Run query\"\n ],\n \"requiredEnvVars\": [\n \"POSTGRES_CONNECTION_STRING\"\n ],\n \"permissions\": [\n \"database\"\n ],\n \"compatibleTools\": [\n \"copilot\",\n \"cursor\",\n \"claude-code\",\n \"codex\",\n \"windsurf\"\n ],\n \"install\": {\n \"npmPackage\": \"@modelcontextprotocol/server-postgres\",\n \"command\": \"npx -y @modelcontextprotocol/server-postgres\",\n \"repoUrl\": \"https://github.com/modelcontextprotocol/servers\"\n },\n \"trustScore\": 91,\n \"lastTested\": \"2025-02-12\",\n \"verified\": true\n}"
}
]
}
}Works with
CopilotCursorClaude CodeCodexWindsurf