# db-query-mcp

> db-query-mcp — mark3lim-db-query-mcp. Use this tool when you need to securely execute SQL queries on MySQL or MariaDB databases, while keeping connection credentials protected and controlling data access. It solves problems related to data retrieval, manipulation, and management, with use cases including data analysis, reporting, and automation. The tool takes SQL queries as input and returns limited query results, making it ideal for applications requiring secure and controlled database interactions.

Canonical page: https://skillsregistry.net/skills/mark3lim-db-query-mcp  
JSON: https://api.skillsregistry.net/v1/skills/mark3lim-db-query-mcp

## Description

Enables AI to execute SQL queries (SELECT, DML, DDL) on MySQL/MariaDB databases with strong security: connection credentials never exposed to AI, write queries require user approval, read-only connections enforced, and query results limited to 50 rows.

## Trust

- **Trust score (0–1):** 0.69
- **Verification tier:** scanned
- **Last scanned:** 2026-09-03

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-03

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/r6bvdyshct)
- **Repository:** <https://github.com/mark3lim/db_query_mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "mark3lim-db-query-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/mark3lim-db-query-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/mark3lim-db-query-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
