proxysql

proxysql is a skill for Claude Code, Codex from neverinfamous/mysql-mcp. It costs 92 tokens per session (2,099 once invoked), scanned A, original, MIT.

A set of operating standards for ProxySQL, a service that sits between applications and MySQL databases to route, reuse, cache, and filter database connections and queries.

In plain words
What is it for?
It helps configure or troubleshoot connection multiplexing, query routing, query caching, firewall rules, and ProxySQL's in-memory and persistent configuration layers.
Why use it?
It prevents configuration changes from being mistaken for active changes and clarifies how to apply and save them safely.

Skill for Claude CodeCodex

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

Good fit It helps configure or troubleshoot connection multiplexing, query routing, query caching, firewall rules, and ProxySQL's in-memory and persistent configuration layers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/mysql-mcp/proxysql
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 proxysql
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 proxysql

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/mysql-mcp/proxysql"><img src="https://agentmods.dev/badge/skills/neverinfamous/mysql-mcp/proxysql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,099 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00092 $0.02099
Opus 5 $0.00046 $0.01050
Sonnet 5 $0.00018 $0.00420
Haiku 4.5 $0.00009 $0.00210

Measured 9d ago against content hash bb31ac875cd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

proxysql 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.

skills/proxysql/SKILL.md · 196 lines

How it starts

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

ProxySQL Production Standards

ProxySQL is a high-performance MySQL proxy providing connection multiplexing, query routing, caching, and firewalling.

3.1 Architecture & Three-Layer Configuration

ProxySQL uses a strict multi-layer configuration system designed for dynamic, zero-downtime updates:

Layer Purpose Mutability
MEMORY Staging area (in-memory SQLite). Modifications here do NOT impact traffic. Read/Write
RUNTIME Active in-memory data structures used by worker threads. Dictates proxy behavior. Read-only
DISK Persistent SQLite DB (proxysql.db). Survives restarts. Via SAVE

Configuration Workflow (CRITICAL):

-- Step 1: Make changes in MEMORY layer
INSERT INTO mysql_servers (hostgroup_id, hostname, port) VALUES (0, 'primary', 3306);

-- Step 2: Apply to RUNTIME (takes effect immediately)
LOAD MYSQL SERVERS TO RUNTIME;

-- Step 3: Persist to DISK (survives restarts)
SAVE MYSQL SERVERS TO DISK;

[!CAUTION] The #1 ProxySQL mistake: Modifying admin tables and assuming changes take effect. You MUST run LOAD <MODULE> TO RUNTIME for changes to activate, and SAVE <MODULE> TO DISK for persistence. Forgetting either step is the root cause of most ProxySQL configuration issues.

[!WARNING] Some global variables (mysql-interfaces, mysql-threads) require SAVE ... TO DISK and a full service restart — LOAD TO RUNTIME alone is insufficient.

3.2 Connection Multiplexing

Multiplexing lets thousands of frontend clients share a small pool of backend connections, solving the C10K problem.

Anti-Patterns That Kill Multiplexing (result in "pinned" connections):

  • Active transactions (BEGIN without COMMIT/ROLLBACK)
  • Temporary table creation
  • User-defined variables (SET @var)
  • Session-level state modifications (SET FOREIGN_KEY_CHECKS)
  • Held prepared statements (binary protocol statement IDs are tied to specific backend connections)
  • Long-running transactions

Read the full file on GitHub · 196 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. 9d ago First seen · 196 lines · 92 tokens per session scan A bb31ac875cd6

Subscribe to this mod's changes

proxysql is a skill published in the GitHub repository neverinfamous/mysql-mcp (10 stars, last pushed 2d ago), licensed MIT. It adds 92 tokens to every session and 2,099 once invoked, about $0.0005 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.