Postgresql

🌐Community
by bagelhole · vlatest · Repository

Connects and queries PostgreSQL databases using secure, automated connections managed by bagelhole's infrastructure.

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

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

~/.claude/settings.json
{
  "mcpServers": {
    "bagelhole-postgresql": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/bagelhole-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 manage PostgreSQL databases. It enables querying data, executing SQL commands, and performing database administration tasks directly through natural language prompts. The agent can retrieve information, modify data, and automate routine database operations.

When to use it

  • Data Analysis: Quickly extract insights from a PostgreSQL database without needing to write complex SQL queries manually.
  • Database Administration: Automate tasks like creating tables, updating schemas, or backing up data.
  • Application Development: Generate SQL scripts for application development and testing purposes based on natural language requests.
  • Troubleshooting: Diagnose database issues by executing diagnostic queries and analyzing results.

Key capabilities

  • SQL Query Execution: Executes arbitrary SQL queries against a PostgreSQL database.
  • Data Retrieval: Retrieves data from tables using natural language descriptions.
  • Database Administration: Performs administrative tasks like table creation and schema updates.

Example prompts

  • "Show me all customers in California."
  • "Create a new table called 'products' with columns for name, price, and description."
  • "Backup the database to a file named 'backup.sql'."

Tips & gotchas

  • Requires access credentials (username/password) to connect to the PostgreSQL database.
  • The agent’s understanding of SQL syntax is dependent on the underlying model; complex queries may require refinement.

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
bagelhole
Installs
8

🌐 Community

Passed automated security scans.