Database Query
Helps with database, querying as part of working with databases and data persistence workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add database-query npx -- -y @trustedskills/database-query
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"database-query": {
"command": "npx",
"args": [
"-y",
"@trustedskills/database-query"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to execute queries against databases. It can retrieve specific data based on provided criteria, filter results, and perform basic aggregations. The agent can interact with various database types by providing appropriate connection details and query language (e.g., SQL).
When to use it
- Data Extraction: Retrieve customer order history from a sales database for analysis.
- Report Generation: Generate a summary report of server performance metrics stored in a monitoring database.
- Inventory Management: Check the current stock levels of specific products from an inventory management system.
- Troubleshooting: Query log files to identify error patterns and root causes of application issues.
Key capabilities
- Database query execution
- Data retrieval based on criteria
- Filtering of results
- Basic aggregations (not explicitly defined in source)
- Support for various database types (implied)
Example prompts
- "Get me all customer records from the 'customers' table where the city is 'New York'."
- "What are the total sales for product ID 12345?"
- "Show me a list of all orders placed in the last week."
Tips & gotchas
The agent will require connection details (hostname, username, password, database name) to access the target database. Ensure that appropriate permissions are granted to the AI agent user for querying the specified 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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.