Install Postgres (read-only) in Claude Code
claude mcp add postgres-read-only -e DATABASE_URL=... -- npx -y @contextflo/postgres-mcp{
"mcpServers": {
"postgres-read-only": {
"command": "npx",
"args": [
"-y",
"@contextflo/postgres-mcp"
],
"env": {
"DATABASE_URL": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the Postgres (read-only) MCP server do?
Read-only Postgres: drop-in for the archived server-postgres, with schema context.
Is the Postgres (read-only) MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does Postgres (read-only) run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Postgres (read-only) to Claude Code?
Run: claude mcp add postgres-read-only -e DATABASE_URL=... -- npx -y @contextflo/postgres-mcp
More databases MCP servers
View allQuarry
yiminspace/quarry
Safety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.
Plesk Lite
mohamedbenhariz/mcp-plesk-lite
MCP server for Plesk: manage domains, DNS, mail, SSL, backups, databases and WordPress via AI.
rowstile
rowstile/rowstile
Check, test, prove and review a rowstile policy: access rules for Postgres row-level security
oraclemcp
MuhDur/oraclemcp
Engine-free, governed Oracle Database MCP server with a fail-closed SQL guard (unofficial).
SQL Server Analyst
coregentdevspace/sql-server-analyst-mcp
Read-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis.
Obambu cPanel
RodrigueDev13/obambu-cpanel-mcp
MCP server exposing cPanel UAPI (domains, DNS, email, MySQL, files) as tools for AI assistants.