Read Only Postgres
Safely query and analyze PostgreSQL databases without write access, powered by jawwadfirdousi's read-only agent.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add read-only-postgres npx -- -y @trustedskills/read-only-postgres
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"read-only-postgres": {
"command": "npx",
"args": [
"-y",
"@trustedskills/read-only-postgres"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows an AI agent to query and retrieve data from a PostgreSQL database, but without write access. It can execute SELECT statements to extract information based on provided queries, enabling read-only analysis of stored data. The agent cannot modify any data within the database.
When to use it
- Data Reporting: Generate reports or summaries based on existing data in a PostgreSQL database (e.g., sales figures, inventory levels).
- Business Intelligence: Retrieve specific datasets for analysis and visualization by connecting to a reporting database.
- Information Retrieval: Answer questions that require accessing information stored within a PostgreSQL database without needing write permissions.
- Data Validation: Verify data integrity by querying the database and comparing results against expected values.
Key capabilities
SELECTstatement execution- Read-only access to PostgreSQL databases
- Data retrieval based on user-provided queries
Example prompts
- "Retrieve all customer names from the 'customers' table."
- "What were the total sales for Q3 2023?"
- "Show me a list of products with a quantity in stock less than 10."
Tips & gotchas
- Requires valid database connection credentials (host, port, username, password, database name).
- The agent will return an error if any attempt is made to execute commands that modify data.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.