mysql-context

mysql-context is a skill for Claude Code, Codex from velinussage/mysql-context-mcp. It costs 60 tokens per session (304 once invoked), scanned A, original, MIT.

A coding-agent skill that reads recent MySQL database changes from a binlog index, showing which fields changed and their before-and-after values.

In plain words
What is it for?
Use it to investigate changes to a watched table, inspect a particular database change, or compare a row before and after an update.
Why use it?
It helps the agent understand recent database changes without guessing or mistaking a full row for a change. It also keeps the returned change history compact.

Skill for Claude CodeCodex

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

Good fit Use it to investigate changes to a watched table, inspect a particular database change, or compare a row before and after an update.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/velinussage/mysql-context-mcp/mysql-context
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 velinussage/mysql-context-mcp --skill mysql-context
Clone the repo
git clone --depth 1 https://github.com/velinussage/mysql-context-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 mysql-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/velinussage/mysql-context-mcp/mysql-context/github.svg)](https://agentmods.dev/skills/velinussage/mysql-context-mcp/mysql-context)
Your own site
<a href="https://agentmods.dev/skills/velinussage/mysql-context-mcp/mysql-context"><img src="https://agentmods.dev/badge/skills/velinussage/mysql-context-mcp/mysql-context/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 mysql-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/velinussage/mysql-context-mcp/mysql-context"><img src="https://agentmods.dev/badge/skills/velinussage/mysql-context-mcp/mysql-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00060 $0.00304
Opus 5.5 $0.00024 $0.00122
Sonnet 5.5 $0.00012 $0.00061
Haiku 4.5 $0.00006 $0.00030

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

Security

Grade A, and why

mysql-context scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/mysql-context/SKILL.md · 33 lines

What it actually says

MySQL context

Call MCP tools on server mysql-context before guessing at live row state.

Binlog mode returns field diffs, not current rows. Each change has op, pk, and diff where each field is { from, to }.

Steps

  1. Call recent_changes (optional table). Read diff. Do not treat a missing after object as "here is the live row".
  2. If one change matters, call get_diff with that change_id for the full before/after images.
  3. After you have used the diffs, call ack_changes with those ids so the next turn stays small.
  4. Do not invent SQL. This server has no execute_sql.
  5. Do not install triggers or change MySQL grants unless the operator asked.

Success

  • You cited a change_id and at least one diff field from/to.
  • You did not describe current MySQL state from memory or by reading a whole row as if it were the change.
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. 2mo ago First seen · 33 lines · 60 tokens per session scan A a9fc3f9ee9ec

Subscribe to this mod's changes

mysql-context is a skill published in the GitHub repository velinussage/mysql-context-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 304 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mysql-context compared with skills from other repositories

mysql-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mysql-contextvelinussage/mysql-context-mcpSkill02mo agoMITA60Claude Code, Codex
sqlikeorifisher2/sqlikeSkill8yesterdayApache-2.0A81Claude Code, Codex
api-canvascyanheads/cdc-health-mcp-serverSkill57d agoApache-2.0A85Claude Code
api-mirrorcyanheads/cdc-health-mcp-serverSkill57d agoApache-2.0A68Claude Code
whodbclidey/whodbSkill5.1ktodayApache-2.0A29Codex
schema-designerclidey/whodbSkill5.1ktodayApache-2.0A34Claude Code
graphjin-evaldosco/graphjinSkill3.2kyesterdayApache-2.0A27Claude Code, Codex