mysql
Execute read-only SQL queries against multiple MySQL databases.
Skill by sanjay3290
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sanjay3290-mysql
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mysql
What's inside
- Skill name
mysql- Description
- Execute read-only SQL queries against multiple MySQL databases. Use when: (1) querying MySQL databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.
- License
- Apache-2.0
- Metadata
- author: sanjay3290 · version: 1.0
- Instructions
- 126 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (6)
- .gitignore
- README.md
- SKILL.md
- connections.example.json
- requirements.txt
- query.py · scripts/
SKILL.md (first lines)
# MySQL Read-Only Query Skill
Execute safe, read-only queries against configured MySQL databases.
## Requirements
- Python 3.8+
- mysql-connector-python: `pip install -r requirements.txt`
## Setup
Create `connections.json` in the skill directory or `~/.config/claude/mysql-connections.json`.
**Security**: Set file permissions to `600` since it contains credentials:
```bash
chmod 600 connections.json
```
```json
{
"databases": [
{
"name": "production",
"description": "Main app database - users, orders, transactions",
"host": "db.example.com",
"port": 3306,
"database": "app_prod",
"user": "readonly_user",
"password": "your-password",
"ssl_disabled": false
}
]
}
```
### Config Fields
| Field | Required | Description |
|-------|----------|-------------|
| name | Yes | Identifier for the database (case-insensitive) |
| description | Yes | What data this database contains (used for auto-selection) |
| host | Yes | Database hostname |
| port | No | Port number (default: 3306) |
| database | Yes | Database name |
| user | Yes | Username |
| password | Yes | Password |
| ssl_disabled | No | Set to `true` to disable SSL (default: false) |
| ssl_ca | No | Path to CA certificate file |
| ssl_cert | No | Path to client certificate file |
| ssl_key | No | Path to client private key file |
## Usage
### List configured databases
```bash
python3 scripts/query.py --list
```
### Query a database
```bash
python3 scripts/query.py --db production --query "SELECT * FROM users LIMIT 10"
```
### List tables
```bash
python3 scripts/query.py --db production --tables
```
### Show schema
```bash
python3 scripts/query.py --db production --schema
```
### Limit results
```bash
python3 scripts/query.py --db production --query "SELECT * FROM orders" --limit 100
```
## Database Selection
Match user intent to database `description`:
| User asks about | Look for description containing |
|-----------------|--------------------------------|
| users, accounts | users, accounts, customers |
| orders, sales | orders, transactions, sales |
| analytics, metrics | analytics, metrics, reports |
| logs, events | logs, events, audit |
If unclear, run `--list` and ask user which database.
## Safety Features
- **Read-only session**: Connection uses MySQL `SET SESSION TRANSACTION READ ONLY` (primary protection)
- **Query validation**: Only SELECT, SHOW, DESCRIBE, EXPLAIN, WITH queries allowed
- **Single statement**: Multiple statements per query rejected
- **SSL support**: Configurable SSL with CA, client cert, and key support
- **Query timeout**: 30-second max_execution_time enforced (MySQL 5.7.8+)
- **Memory protection**: Max 10,000 rows per query to prevent OOM
- **Column width cap**: 100 char max per column for readable output
- **Credential sanitization**: Error messages don't leak passwords
## Troubleshooting
| Error | Solution |
|-------|----------|
| Config not found | Create `connections.json` in skill directory |
| Authentication failed | Check username/password in config |
| Connection timeout | Verify host/port, check firewall/VPN |
| SSL error | Try `"ssl_disabled": true` for local databases |
| Permission warning | Run `chmod 600 connections.json` |
| max_execution_time not supported | Upgrade to MySQL 5.7.8+ or MariaDB 10.1.1+ |
## Exit Codes
- **0**: Success
- **1**: Error (config missing, auth failed, invalid query, database error)
## WorkflowFrom sanjay3290/ai-skills, Apache-2.0.
More from sanjay3290/ai-skills
- 0.765score
google-chat
sanjay3290
Interact with Google Chat - send, read, edit, delete and react to messages, share images and files, reply in threads, and manage spaces and DMs.
SkillBFreshness: B★ 444Claude Code +9 - 0.707score
atlassian
sanjay3290
Manage Jira issues and Confluence wiki pages in Atlassian Cloud.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
azure-devops
sanjay3290
Manage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
elevenlabs
sanjay3290
Convert documents and text to audio using ElevenLabs text-to-speech.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
gmail
sanjay3290
Interact with Gmail - search emails, read messages, send emails, create drafts, and manage labels.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-calendar
sanjay3290
Interact with Google Calendar - list calendars, view events, create/update/delete events, and find free time.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
apple-container
sanjay3290
Apple's open-source `container` CLI to build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS — no Docker daemon…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
telegram
sanjay3290
Send Telegram messages, files, and alerts via bot API; read replies; ask questions with inline buttons and wait for the answer (approve-from-phone).
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
whatsapp
sanjay3290
Send and receive WhatsApp messages via the unofficial linked-device client pywhats (pip install pywhats) — pair with QR, send text/images, group chat, read…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-drive
sanjay3290
Interact with Google Drive - search files, find folders, list contents, download files, upload files, create folders, move, copy, rename, and trash files.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-docs
sanjay3290
Interact with Google Docs - create documents, search by title, read content, and edit text.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
google-sheets
sanjay3290
Read and write Google Sheets spreadsheets - get content, update cells, append rows, fetch specific ranges, search for spreadsheets, and view metadata.
SkillCFreshness: C★ 444Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 444
- Forks
- 50
- Open issues
- 2
- Last commit (this folder)
- Feb 19, 2026 (8 months ago)
- Last release
- Jul 9, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Repository
- github.com/sanjay3290/ai-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sanjay3290
- 0.765score
google-chat
sanjay3290
Interact with Google Chat - send, read, edit, delete and react to messages, share images and files, reply in threads, and manage spaces and DMs.
SkillBFreshness: B★ 444Claude Code +9 - 0.707score
azure-devops
sanjay3290
Manage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies…
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
atlassian
sanjay3290
Manage Jira issues and Confluence wiki pages in Atlassian Cloud.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
elevenlabs
sanjay3290
Convert documents and text to audio using ElevenLabs text-to-speech.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
gmail
sanjay3290
Interact with Gmail - search emails, read messages, send emails, create drafts, and manage labels.
SkillCFreshness: C★ 444Claude Code +9 - 0.707score
apple-container
sanjay3290
Apple's open-source `container` CLI to build, run, and manage OCI/Linux containers as lightweight per-container VMs on Apple-silicon macOS — no Docker daemon…
SkillCFreshness: C★ 444Claude Code +9
Cite this page
mysql skill. Agent Mart. https://agentmart.dev/skills/sanjay3290-mysql (last updated 2026-10-24)