Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mysql

Skill by sanjay3290

Runs read-only SQL queries against multiple configured MySQL databases. Built for querying data, exploring schemas and checking database contents.

  • Score 79
  • 459 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/mysql

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mysql in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

Add to stack

Loading.