# mcp-sql-guard

> Use this tool when you need to secure and validate SQL queries to prevent unauthorized data access and modifications. It solves problems related to data security and compliance by ensuring queries are read-only, limited, and masked according to user roles. The tool takes SQL queries as input and outputs validated and masked queries, along with a tamper-evident audit log, making it ideal for use cases requiring robust data protection and offline operation.

Canonical page: https://skillsregistry.net/skills/tahasiddiquii-mcp-sql-guard  
JSON: https://api.skillsregistry.net/v1/skills/tahasiddiquii-mcp-sql-guard

## Description

Validates SQL queries via AST parsing, ensuring they are single read-only SELECTs on allowed tables with enforced LIMITs, and masks PII columns based on user roles. Provides a tamper-evident audit log and runs fully offline.

## Trust

- **Trust score (0–1):** 0.69
- **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/mx4i6y8sgv)
- **Repository:** <https://github.com/tahasiddiquii/mcp-sql-guard>

## 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": "tahasiddiquii-mcp-sql-guard"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/tahasiddiquii-mcp-sql-guard` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/tahasiddiquii-mcp-sql-guard/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
