# mcp-read-only-sql

> Use this tool when you need to securely access PostgreSQL and ClickHouse databases for read-only operations, such as data analysis or reporting, with built-in safety features like timeouts and managed result files. It solves problems related to data security and integrity by enforcing read-only access and preventing unintended data modifications. The tool takes SQL queries as input and returns query results as output, making it ideal for use cases where sensitive data needs to be protected.

Canonical page: https://skillsregistry.net/skills/lukleh-mcp-read-only-sql  
JSON: https://api.skillsregistry.net/v1/skills/lukleh-mcp-read-only-sql

## Description

Provides secure read-only SQL access to PostgreSQL and ClickHouse databases with built-in safety features like read-only enforcement, timeouts, and managed result files.

## Trust

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

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/v915rw5tn1)
- **Repository:** <https://github.com/lukleh/mcp-read-only-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": "lukleh-mcp-read-only-sql"
    }
  }
}
```

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