mysqlsh

mysqlsh is a skill for Claude Code, Codex from neverinfamous/mysql-mcp. It costs 89 tokens per session (1,722 once invoked), scanned B, original, MIT.

A set of standards for MySQL Shell, the command-line tool for querying and automating MySQL databases. It covers database administration, imports and exports, and InnoDB Cluster management.

In plain words
What is it for?
Use it for ad-hoc SQL queries, automation scripts, parallel data transfers, and configuring or troubleshooting InnoDB Clusters.
Why use it?
It provides consistent rules for choosing MySQL Shell modes and managing database clusters safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for ad-hoc SQL queries, automation scripts, parallel data transfers, and configuring or troubleshooting InnoDB Clusters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/mysql-mcp/mysqlsh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neverinfamous/mysql-mcp --skill mysqlsh
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/mysql-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mysqlsh

README.md
[![agentmods](https://agentmods.dev/badge/skills/neverinfamous/mysql-mcp/mysqlsh/github.svg)](https://agentmods.dev/skills/neverinfamous/mysql-mcp/mysqlsh)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/mysql-mcp/mysqlsh"><img src="https://agentmods.dev/badge/skills/neverinfamous/mysql-mcp/mysqlsh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mysqlsh

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/mysql-mcp/mysqlsh"><img src="https://agentmods.dev/badge/skills/neverinfamous/mysql-mcp/mysqlsh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,722 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.01722
Opus 5.5 $0.00036 $0.00689
Sonnet 5.5 $0.00018 $0.00344
Haiku 4.5 $0.00009 $0.00172

Measured 3mo ago against content hash 597b38a1c9b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mysqlsh scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Restrict file permissions: `chmod 600 ~/.mylogin.cnf`.
skills/mysqlsh/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MySQL Shell (mysqlsh) Production Standards

MySQL Shell is an advanced client and automation tool with JavaScript, Python, and SQL modes. It is the only supported interface for InnoDB Cluster management via the AdminAPI.

2.1 Execution Modes

Mode Activate Use Case
SQL (\sql) --sql Ad-hoc querying
JavaScript (\js) --js AdminAPI, automation, util.* functions
Python (\py) --py AdminAPI, automation, util.* functions
  • [ALWAYS] use \js or \py modes for administrative and automation tasks.
  • [ALWAYS] use \sql mode strictly for ad-hoc querying.

2.2 AdminAPI & InnoDB Cluster Management

The dba global object (AdminAPI) is the only recommended way to deploy and manage InnoDB Cluster, ClusterSet, and ReplicaSet topologies.

Setup Rules:

  • [ALWAYS] run dba.configureInstance('user@host:3306') before adding a node. It validates prerequisites (Performance Schema, InnoDB engine, server_id).
  • [ALWAYS] create a dedicated cluster admin account via the clusterAdmin option.
  • [ALWAYS] require an odd number of nodes (minimum 3) for quorum, distributed across different physical fault domains.
  • [ALWAYS] use stable hostnames defined in DNS or /etc/hosts.
  • [NEVER] use dba.deploySandboxInstance() for production. It is for local testing only.

Example:

dba.configureInstance('admin@node1:3306')
var cluster = dba.createCluster('myCluster')
cluster.addInstance('admin@node2:3306')
cluster.addInstance('admin@node3:3306')
cluster.status()

Key AdminAPI Operations:

Method Purpose
dba.createCluster() Create new InnoDB Cluster
dba.getCluster() Get handle to existing cluster
cluster.addInstance() Add node to cluster
cluster.removeInstance() Remove node from cluster
cluster.status() Full topology status
cluster.switchToMultiPrimaryMode() Switch to multi-primary
cluster.switchToSinglePrimaryMode() Switch to single-primary
cluster.setPrimaryInstance() Force primary election
cluster.rescan() Re-scan for topology changes
dba.createClusterSet() Create multi-datacenter ClusterSet

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 170 lines · 89 tokens per session scan B 597b38a1c9b8

Subscribe to this mod's changes

mysqlsh is a skill published in the GitHub repository neverinfamous/mysql-mcp (10 stars, last pushed 7d ago), licensed MIT. It adds 89 tokens to every session and 1,722 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mysqlsh compared with skills from other repositories

mysqlsh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mysqlshneverinfamous/mysql-mcpSkill107d agoMITB89Claude Code, Codex
dbxt8y2/dbxSkill32ktodayApache-2.0A74Claude Code, Codex
whodbclidey/whodbSkill5.1ktodayApache-2.0A29Codex
schema-designerclidey/whodbSkill5.1ktodayApache-2.0A34Claude Code
new-pluginclidey/whodbSkill5.1ktodayApache-2.0A22Claude Code, Codex
query-builderclidey/whodbSkill5.1ktodayApache-2.0A40Claude Code
graphjin-evaldosco/graphjinSkill3.2kyesterdayApache-2.0A27Claude Code, Codex