Db Query Executor

🌐Community
by aleister1102 · vlatest · Repository

Executes SQL queries against specified databases to retrieve data based on natural language instructions.

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 db-query-executor npx -- -y @trustedskills/db-query-executor
2

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

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

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

About This Skill

What it does

The db-query-executor skill allows AI agents to execute SQL queries against a database. It retrieves data based on provided SQL statements and returns the results in a structured format, enabling agents to access and process information stored within databases. This facilitates tasks requiring dynamic data retrieval and analysis.

When to use it

  • Data Reporting: Generate reports by querying specific tables and columns for key metrics.
  • Inventory Management: Retrieve real-time stock levels or product details from a database.
  • Customer Relationship Management (CRM): Access customer information, order history, and support tickets stored in a CRM database.
  • Financial Analysis: Extract financial data like transaction records or account balances for analysis.

Key capabilities

  • SQL query execution
  • Structured result retrieval
  • Database interaction

Example prompts

  • "Execute the SQL query: SELECT * FROM customers WHERE city = 'New York'."
  • "Run this query and show me the results in a table: SELECT product_name, price FROM products ORDER BY price DESC LIMIT 10."
  • "Get all orders placed after January 1st, 2023 from the database using SQL."

Tips & gotchas

  • Ensure the AI agent has appropriate database connection credentials and permissions.
  • Be mindful of potential security risks when constructing SQL queries dynamically; sanitize inputs to prevent SQL injection vulnerabilities.

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
aleister1102
Installs
11

🌐 Community

Passed automated security scans.