Postgresql
Connects to PostgreSQL databases via chat, executes queries, and retrieves results directly within the conversation.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add chaterm-postgresql npx -- -y @trustedskills/chaterm-postgresql
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"chaterm-postgresql": {
"command": "npx",
"args": [
"-y",
"@trustedskills/chaterm-postgresql"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with and query PostgreSQL databases directly from a terminal. It provides functionality for executing SQL commands, retrieving data, and managing database objects within a secure and controlled environment. The agent can use this skill to automate database tasks or answer questions based on stored information.
When to use it
- Data Extraction: Retrieve specific datasets from a PostgreSQL database for reporting or analysis.
- Database Administration: Execute SQL commands to create, modify, or delete tables and other database objects.
- Automated Reporting: Generate reports directly from the database based on user-defined criteria.
- Troubleshooting: Diagnose and resolve database issues by executing diagnostic queries.
Key capabilities
- SQL command execution
- Data retrieval
- Database object management
Example prompts
- "Run a query to find all customers in California."
- "Create a table called 'products' with columns for name, price, and description."
- "Show me the total sales for each product category."
Tips & gotchas
The agent requires appropriate database credentials (username, password, host) to connect to the PostgreSQL server. Ensure these are provided securely and that the agent has the necessary permissions within the database.
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.