Postgres (read-only) MCP Server
io.github.contextflo/postgres-mcp
What this kind of tool is for
- Query, inspect, or seed a database without writing a one-off script.
- Let your agent look up schema details before it writes migration code.
- Move a small dataset between tools without leaving the terminal.
How to compare servers like this
- Engine match:
- Confirm it speaks your exact database and version, not just the family.
- Access scope:
- Read-only connections are the safe default — start there before granting writes.
- Safety rails:
- Check whether destructive statements need an explicit confirmation before they run.
- Maintenance signal:
- Database drivers change; a recently updated tool is less likely to break mid-query.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the Postgres (read-only) MCP server?
Read-only Postgres: drop-in for the archived server-postgres, with schema context.
How to install Postgres (read-only)
Copy-paste configuration for popular MCP clients.
DATABASE_URLrequiredsecretPostgres connection string. Use a read-only role.
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@contextflo/postgres-mcp"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Related MCP servers
Read-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis.
View repository →Semantic search knowledge base with serverless LanceDB. Zero setup, 100% local, 25+ file types

io.github.costkits/costkits-mcp
MCP server for CostKits: live healthcare procedure cost estimates and provider pricing.
Connect AI agents to Couchbase clusters for natural language data exploration, querying, and management.
Your team's knowledge, always in context. SOPs, coding standards, and workflows for Claude.
View repository →
ContextStream MCP Server
Persistent memory and millisecond code search for AI agents across sessions.


