psql2csv
$ psql2csv Community Med Riskpsql2csv (psql2csv) — Run a query in psql and output the result as CSV. Verified across Homebrew Core; included for structured shell automation under FCRS-1.0 baseline review.
brew install psql2csv Pure CLI utility (psql2csv); directly invoked in shell workflows without an equivalent MCP server layer.
At a Glance
- Command
- $ psql2csv
- FCRS-1.0 Score
- 65/100 (Usable w/ Caveats)
- Evidence Tier
- Low Confidence
- CLI vs MCP
- CLI Only
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Registry-verified CLI binary (psql2csv); inspect --help output before assuming structured JSON flags.
- Indexed in Homebrew Core
Classified as medium risk based on database-data scope and upstream package metadata.
- Install channel verified via
brew install psql2csv - Declared license: MIT
Installable via brew install psql2csv across macos, linux.
- Primary install:
brew install psql2csv
Run a query in psql and output the result as CSV
- Official homepage/source: https://github.com/fphilipe/psql2csv
community lineage tool maintained by fphilipe.
- Upstream repository: fphilipe/psql2csv
Upstream documentation linked at https://github.com/fphilipe/psql2csv; baseline FCRS cap applies until local probe runs.
- https://github.com/fphilipe/psql2csv
Security, Auth & Guardrails
Local execution tool; typically requires no external credentials unless targeting remote endpoints.
Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.
When invoking `psql2csv`, verify flags with `psql2csv --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
psql2csv --help
Discover supported flags and subcommands for psql2csv before constructing automated calls.
psql2csv --version
Confirm psql2csv is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in Homebrew Core with reproducible install via
brew install psql2csv - + Standalone CLI binary (
psql2csv) directly composable in shell pipelines
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
psql2csv --helpto verify flags before scripting
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Database & Data
View category hub →High-performance, massive-scale Vector Database for the next generation of AI
Simplify and accelerate development on any Postgres application, existing or new
Essential JSON processor for slicing verbose CLI/API payloads down to minimal agent-ready fields.
In-process SQL analytics CLI for querying CSV, Parquet, and JSON files locally with `-json` output and `-readonly`.