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 $0.00030 $0.00152
Sonnet 5 $0.00012 $0.00061
Haiku 4.5 $0.00006 $0.00030

Measured 9d ago against content hash a9fc3f9ee9ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 9d 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. 9d 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 24d ago), licensed MIT. It adds 60 tokens to every session and 304 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

sqlike

Check SQL with sqlike — deterministic static analysis (validity, anti-patterns, rewrites, index advice) and query-equivalence verification. Use whenever you write, edit, review, or rewrite a SQL query, or need to prove two queries return the same results. Requires the sqlike MCP server (@sqlike/mcp) or the sqlike CLI…

orifisher2/sqlike · 81 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/cdc-health-mcp-server · 85 tokens

api-mirror

Stand up a persistent, self-refreshing local mirror of a bulk upstream dataset with the MirrorService (@cyanheads/mcp-ts-core/mirror). Use when a server wraps a large or slow API and should query a synced local index (embedded SQLite + FTS5) instead of paginating the live API per request.

cyanheads/cdc-health-mcp-server · 68 tokens

whodb

Query and explore databases via MCP. Use when the user asks to inspect schemas, run SQL, browse tables, analyze data quality, generate ER diagrams, or work with PostgreSQL, MySQL, MariaDB, TiDB, SQLite, MongoDB, Redis, ClickHouse, Elasticsearch, or DuckDB.

clidey/whodb · 64 tokens

schema-designer

Help design database schemas, create tables, and plan data models. Activates when users ask to create tables, design schemas, or model data relationships.

clidey/whodb · 34 tokens

query-builder

Convert natural language questions into SQL queries. Activates when users ask data questions in plain English like "show me users who signed up last week" or "find orders over $100".

clidey/whodb · 40 tokens