To read the DB, use mcp-postgres MCP tools.
Plan B - If MCP tools unavailable or timeout:
- •Use
psqlCLI as fallback. The project's connection string can be extracted withcat .cursor/mcp.json | grep -oP '(?<="DATABASE_URI": ")[^"]*' | head -n1Then execute queries with:psql "$DATABASE_URI" -c "SELECT ..." - •Most DATABASE_URI from mcp.json include the search_path in the options parameter. Keep it implicit.