Index / Data & Search / No. 043
DAT · Data & Search · Official server
PostgreSQL (reference, archived)
Read-only Postgres access with schema inspection. Archived reference server.
- Transport
- Local (stdio)
- Status
- Official · Model Context Protocol
- Auth method
- Database connection string
- Scopes / permissions
- Not documented
- Last verified
- Oct 15, 2026
- Tools listed
- 02
§1What it does
The original reference PostgreSQL server provides read-only queries and table schema resources. It has been moved to the servers-archived repo and is no longer maintained, so consider DBHub or a vendor server for new projects.
§2Setup
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
}
}
}Snippets adapted from the official documentation. Check the official page for current options and auth requirements.
§3Prompts to try
- “How many users signed up last month?”
- “Describe the schema of the orders table.”