Postgresql Psql

🌐Community
by mrgoonie · vlatest · Repository

Executes PostgreSQL queries via psql, retrieving data and performing actions within a specified database.

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 mrgoonie-postgresql-psql npx -- -y @trustedskills/mrgoonie-postgresql-psql
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "mrgoonie-postgresql-psql": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/mrgoonie-postgresql-psql"
      ]
    }
  }
}

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 PostgreSQL databases using psql, a command-line tool. It can execute SQL queries, manage database connections, and retrieve data from PostgreSQL instances. The agent can be instructed to perform tasks like retrieving specific records or updating table entries based on given instructions.

When to use it

  • Data Extraction: Retrieve information from a PostgreSQL database for reporting or analysis purposes.
  • Database Administration: Execute administrative commands such as creating tables, users, or granting permissions.
  • Application Integration: Interact with applications that store data in PostgreSQL, allowing the agent to perform actions like updating customer records.
  • Troubleshooting: Run diagnostic queries and check database status for troubleshooting issues.

Key capabilities

  • Execute SQL commands via psql.
  • Manage database connections.
  • Retrieve data from PostgreSQL instances.

Example prompts

  • "Run the query 'SELECT * FROM customers WHERE city = 'New York'' against the database named 'sales'."
  • "Create a table called 'products' with columns for id, name, and price."
  • "Connect to the PostgreSQL server at 192.168.1.100 on port 5432 using username 'dbuser' and password 'password'."

Tips & gotchas

  • Requires a working PostgreSQL database instance and psql client installed and accessible.
  • Ensure the AI agent has appropriate credentials to connect to and interact with 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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
mrgoonie
Installs
2

🌐 Community

Passed automated security scans.