Postgres Mcp
Helps with PostgreSQL, MCP tools as part of working with databases and data persistence workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add postgres-mcp npx -- -y @trustedskills/postgres-mcp
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@trustedskills/postgres-mcp"
]
}
}
}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 manage PostgreSQL databases. It provides capabilities for executing SQL queries, retrieving data, and performing database administration tasks directly within an agent workflow. The skill simplifies common database operations without requiring manual intervention or complex scripting.
When to use it
- Data Extraction: Retrieve specific information from a PostgreSQL database to inform decision-making in an AI agent's task.
- Automated Reporting: Generate and update reports based on data stored within a PostgreSQL database, streamlining reporting processes.
- Database Administration: Perform basic administrative tasks such as checking table sizes or verifying connection status.
- Data Migration/Transformation: Move or transform data between different tables or databases using SQL commands executed through the agent.
Key capabilities
- SQL Query Execution
- Data Retrieval
- Database Administration Tasks
Example prompts
- "Run a query to find all customers who placed an order in the last month."
- "What is the size of the 'products' table?"
- "Execute this SQL statement:
CREATE TABLE new_table AS SELECT * FROM old_table WHERE condition = 'value';"
Tips & gotchas
The skill requires access to a PostgreSQL database and appropriate credentials. Ensure that the AI agent has the necessary permissions to perform the requested actions on the target 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.