Postgres

🏢Official
by planetscale · vlatest · Repository

Connects to and executes SQL queries against your PlanetScale PostgreSQL databases directly within the AI workflow.

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

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

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

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The PostgreSQL skill enables AI agents to interact with PostgreSQL databases, including querying data, managing schemas, and executing administrative tasks. It supports common SQL operations such as SELECT, INSERT, UPDATE, and DELETE, along with advanced features like transaction handling and query optimization.

When to use it

  • You need to retrieve or manipulate structured data stored in a PostgreSQL database.
  • Your application requires dynamic querying of relational data for reporting or analytics.
  • You are automating database maintenance tasks such as backups or schema migrations.

Key capabilities

  • Execute SQL queries against PostgreSQL databases
  • Manage database schemas and tables
  • Handle transactions and ensure data integrity
  • Perform basic administrative operations like user management

Example prompts

  • "Run a SELECT query to retrieve all users from the 'users' table."
  • "Insert a new record into the 'orders' table with the following details: order_id=100, customer_id=5, total_amount=25.99."
  • "Optimize the performance of the 'products' table by adding an index on the 'category' column."

Tips & gotchas

  • Ensure that your AI agent has proper authentication credentials and access permissions to interact with the PostgreSQL instance.
  • Be cautious when executing write operations (e.g., INSERT, UPDATE, DELETE) in production environments—always test queries first or use a transaction block.

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
planetscale
Installs
1.2k

🏢 Official

Published by the company or team that built the technology.