Kysely Postgres

🌐Community
by qwexs · vlatest · Repository

Queries PostgreSQL databases using SQL; retrieves data, executes commands, and manages schemas via a structured interface.

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

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

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

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

About This Skill

What it does

This skill enables AI agents to interact with PostgreSQL databases using the Kysely query builder. It provides a type-safe and fluent interface for constructing SQL queries, simplifying database interactions and reducing potential errors. The agent can execute queries, retrieve data, and manage database connections.

When to use it

  • Data Extraction: Retrieve specific information from a PostgreSQL database based on user requests (e.g., "Get all customers in California").
  • Report Generation: Generate reports by querying and aggregating data stored within a PostgreSQL database.
  • Database Management: Perform basic database operations like creating tables or inserting data, although this is not the primary focus.
  • Data Validation: Validate user input against data constraints defined in a PostgreSQL database.

Key capabilities

  • Type-safe query building
  • Fluent API for SQL construction
  • Connection management to PostgreSQL databases
  • Query execution and result retrieval

Example prompts

  • "Fetch the names of all products with a price greater than $50."
  • "Get the total number of orders placed in the last month."
  • “Retrieve customer details for order ID 123.”

Tips & gotchas

  • Requires access to a PostgreSQL database and appropriate credentials.
  • The agent needs to be configured with the correct connection parameters (host, port, username, password, database name).

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
qwexs
Installs
5

🌐 Community

Passed automated security scans.