# readonly-db-mcp

> Use this tool when you need to safely explore and query MySQL databases without risking data modification. It solves the problem of protecting databases from unintended writes by AI agents, providing a read-only interface for querying and schema inspection. The readonly-db-mcp tool accepts SQL queries as input and returns query results, schema information, or error messages as output, making it ideal for use cases where data integrity is paramount.

Canonical page: https://skillsregistry.net/skills/mir-shakir-readonly-db-mcp  
JSON: https://api.skillsregistry.net/v1/skills/mir-shakir-readonly-db-mcp

## Description

Safe MySQL database exploration for AI agents via MCP, enabling read-only queries and schema inspection with three-layer write protection.

## Trust

- **Trust score (0–1):** 0.68
- **Verification tier:** scanned
- **Last scanned:** 2026-08-30

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/bqm7n7pq7p)
- **Repository:** <https://github.com/mir-shakir/readonly-db-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": "mir-shakir-readonly-db-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/mir-shakir-readonly-db-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/mir-shakir-readonly-db-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
