This is a read-only MySQL query tool that connects to multiple databases through a JSON config file. You can run SELECT queries, explore schemas, and list tables without worrying about accidentally modifying data. It enforces read-only mode at the MySQL session level and blocks anything that isn't a SELECT or SHOW command. The multi-database setup with descriptions is clever since Claude can auto-select the right connection based on what you're asking about. Watch out for the credentials sitting in a local JSON file, though the docs do tell you to chmod 600 it. Good for ad-hoc queries and exploration when you want guardrails against destructive operations.

skills.sh installs
430
GitHub stars
454
last updated
Aug 21, 2026

Install

$ npx -y skills add sanjay3290/ai-skills --skill mysql --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

chmod 600 connections.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

Sponsors

Details

Repository
github.com/sanjay3290/ai-skills
Categories
Backend & APIs, AI & Agent Building, Databases
License
Apache-2.0
First seen
Jun 3, 2026

More from sanjay3290/ai-skills

All 20
1jezweb avatarfirebase-firestorejezweb/claude-skillsBuild with Firestore NoSQL database - real-time sync, offline support, and scalable document storage. Use when: creating collections, querying documents, settin426skills.sh installs
2personamanagmentlayer avatarpostgresql-expertpersonamanagmentlayer/pclExpert-level PostgreSQL database administration, advanced queries, performance tuning, and production operations425skills.sh installs
3wispbit-ai avatarpostgresql-expert-best-practices-code-reviewwispbit-ai/skillsPostgreSQL database design, migration, and performance optimization best practices. This skill should be used when writing, reviewing, or refactoring database s390skills.sh installs
4patricio0312rev avatarauth-security-reviewerpatricio0312rev/skillsReviews authentication and authorization implementation for session management, CSRF, cookie security, and auth flow vulnerabilities with findings, severity ass352skills.sh installs
5memtensor avatarmemos-cloud-servermemtensor/memos-cloud-skillExternal long-term memory and knowledge base backed by the MemOS Cloud API. Capabilities — search prior memory, add conversation messages, delete or correct mem336skills.sh installs
6jezweb avatarcloudflare-mcp-serverjezweb/claude-skillsBuild MCP servers on Cloudflare Workers - the only platform with official remote MCP support. TypeScript-based with OAuth, Durable Objects, and WebSocket hibern328skills.sh installs