# SQL Database

> Use this tool when you need to securely interact with PostgreSQL, SQLite, and MySQL databases, providing read-only access by default and optional write operations. It solves problems related to database introspection, query execution, and security, offering features such as table listing, schema description, and query plan analysis. Ideal for use cases requiring robust database connectivity with built-in security measures to prevent SQL injection and enforce transaction-level safety.

Canonical page: https://skillsregistry.net/skills/mehdig-dev-sql  
JSON: https://api.skillsregistry.net/v1/skills/mehdig-dev-sql

## Description

Provides SQL database connectivity for PostgreSQL, SQLite, and MySQL databases with read-only safety by default and optional write operations. Features comprehensive database introspection including table listing, schema description with foreign key relationships, sample data preview, query execution with automatic LIMIT injection, and query plan analysis. Implements robust security measures including SQL injection prevention, transaction-level read-only enforcement, query timeouts, and identifier sanitization.

## Trust

- **Trust score (0–1):** 0.88
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

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

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/mehdig-dev-sql)
- **Repository:** <https://github.com/mehdig-dev/mcp-sql>

## 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": "mehdig-dev-sql"
    }
  }
}
```

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