Postgresql

🌐Community
by chaterm · vlatest · Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add chaterm-postgresql npx -- -y @trustedskills/chaterm-postgresql
2

Or manually add to ~/.claude/settings.json

~/.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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
chaterm
Installs
8

🌐 Community

Passed automated security scans.