mysql
Skill by sanjay3290
Runs read-only SQL queries against multiple configured MySQL databases. Built for querying data, exploring schemas and checking database contents.
Install mysql
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sanjay3290/ai-skills /tmp/ai-skills && mkdir -p ~/.claude/skills && cp -r /tmp/ai-skills/skills/mysql ~/.claude/skills/mysqlRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sanjay3290/ai-skills /tmp/ai-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-skills/skills/mysql ~/.gemini/antigravity-cli/skills/mysqlAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
MySQL is an agent skill that runs read-only SQL queries against one or more configured MySQL databases. It can list configured databases, list tables, show schemas, and run SELECT queries with an optional row limit. Each database has a description, which the assistant uses to pick the right connection for a request.
The skill reads connection details from a connections.json file, placed in the skill directory or at ~/.config/claude/mysql-connections.json. It sets the MySQL session to read only and allows only SELECT, SHOW, DESCRIBE, EXPLAIN and WITH queries. The source says it is meant for querying databases, exploring schemas, running data analysis queries and checking contents, and that it blocks write operations such as INSERT, UPDATE, DELETE and DROP.
Written from the project's SKILL.md and checked against it.
What it can do
- List databasesShows the databases configured in connections.json using --list.
- Explore tablesLists the tables in a configured database using --tables.
- Show schemaDisplays the schema of a configured database using --schema.
- Run SELECT queriesRuns a single read-only query such as SELECT or WITH against a chosen database.
- Limit resultsCaps the number of returned rows with the --limit option.
- Auto-select databaseMatches the user's request to database descriptions to choose a connection.
What you need
- Python 3.8 or later
- mysql-connector-python package
- A MySQL database with a configured user and password
- A connections.json file with database details
Try asking
- Show me the tables in the production database
- List the schema for the analytics database
- Run a SELECT query on orders in production, limited to 100 rows
Good to know
- Only SELECT, SHOW, DESCRIBE, EXPLAIN and WITH queries are allowed.
- Multiple statements in one query are rejected.
- Queries have a 30-second timeout and need MySQL 5.7.8+ or MariaDB 10.1.1+.
- Results are capped at 10,000 rows per query.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/mysql/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitignore282 B -
README.md2 KB -
SKILL.md4 KB -
connections.example.json945 B -
requirements.txt34 B
Show all 6 files
-
scripts/query.py10 KB
Alternatives to mysql
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
mysql: common questions
Can this skill change data in MySQL?
No. The source says it blocks write operations such as INSERT, UPDATE, DELETE and DROP, and it sets the session to read only.
How does it choose which database to query?
It matches the user's request to the description field of each database in the config. If the match is unclear, the source says to run --list and ask the user which database to use.
Where are database credentials stored?
They are stored in connections.json, either in the skill directory or at ~/.config/claude/mysql-connections.json. The source recommends setting the file permissions to 600 because it contains passwords.
How do I install mysql?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mysql free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mysql safe to use?
It scores 79 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mysql?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
