Adamic Support

MySQL MCP Server v3.2.2

The ultimate MySQL MCP Server for AI-driven database operations. Features smart tool filtering to save context tokens, HTTP streaming for remote deployments, and strict OAuth 2.1 authentication.

  • Token Efficiency: Intelligent tool filtering automatically trims unnecessary context, maximizing your AI assistant's context window.
  • Remote Ready: First-class HTTP streaming (SSE) support enables seamless deployment across distributed networks.
  • Enterprise Security: Secured by strict OAuth 2.1 (RFC 9728/8414) authentication for safe, enterprise-grade data access.
GitHub npm Docker Hub Search Docs

Latest Release — v3.2.2

Highlights

  • Harden Code Executions: Defend against sandbox escapes with rigorous V8 engine restrictions and frozen prototype isolation.
  • Ensure CLI Reliability: Eliminate startup hangs during global npm installations for a flawless developer experience.
  • Fortify CI/CD Pipelines: Catch dependency and transport failures before deployment with new Docker smoke tests.

New Features

  • CI/CD: Added Docker smoke test job to docker-publish.yml that verifies binary loading and HTTP transport starts successfully before images are pushed to the registry
  • CI/CD: Added Docker smoke test job to lint-and-test.yml for PR-level validation, catching dependency resolution failures before merge

Changes

  • CLI: Fixed an issue where the MCP Server would hang indefinitely on startup when installed globally via npm (e.g., using @modelcontextprotocol/inspector mysql-mcp). The isMainModule check incorrectly evaluated to false on symlinked global binaries, causing the Node process to exit cleanly without starting the transport or logging errors.
  • Docs: Standardized README.md layout, badges, and headers to match the fleet
  • Docs: Rewrote CONTRIBUTING.md — was entirely postgres-mcp copy-paste (all references, connection strings, Docker commands, error class names, and URLs corrected to mysql-mcp)
  • Docs: Fixed tool group counts in README.md and DOCKER_README.md — performance (8→11), admin (6→7), backup (4→7), stats (8→20)
  • Docs: Added missing introspection (6 tools) and migration (6 tools) groups to tool group tables — header updated from "25 Available" to "27 Available"
  • Docs: Corrected shortcut counts in README.md and DOCKER_README.md — dev-power (47→63), ai-spatial (44→59), dba-monitor (36→39), dba-manage (34→38), base-core (49→50), base-advanced (41→53)
  • Docs: Fixed stale meta-group comment block in tool-constants.ts — all 12 shortcut totals now verified against actual group arrays
  • Docs: Updated mcp-config-example.json — added METADATA_CACHE_TTL_MS, CODEMODE_ISOLATION, and CODE_MODE_MAX_RESULT_SIZE env vars
  • Docs: Fixed a bug in scripts/generate-server-instructions.ts where README.md was accidentally compiled into the server's dynamic help payload.

Bug Fixes

  • Progress Notifications: Resolved TypeScript typing and ESLint errors in the backup and maintenance tools by ensuring RequestContext is properly typed with progressToken and server. Added backwards-compatible start() and progress() aliases to ProgressReporter for seamless integration.

Security

  • Code Mode: Added V8 codeGeneration restrictions ({ strings: false, wasm: false }) to vm.createContext — disables eval() and Function() at the engine level
  • Code Mode: Added frozen built-in prototypes inside the vm sandbox context — prevents dynamic constructor chain escapes (e.g., Error().constructor.constructor('return process')())
  • Code Mode: Nullified Proxy constructor in sandbox globals (Proxy: undefined) — prevents meta-object protocol abuse
  • Code Mode: Upgraded Reflect.construct blocked pattern to Reflect.* — covers getPrototypeOf, ownKeys, construct, etc.
  • Code Mode: Added Symbol.* blocked pattern — prevents hasInstance, toPrimitive, and other well-known symbol overrides
  • Code Mode: Added new Proxy( blocked pattern — defense-in-depth alongside Proxy nullification
  • Code Mode: Added RPC allowlist validation — host-side verification prevents workers from invoking unauthorized API methods
  • Code Mode: Added streaming egress boundary enforcement — JSON.stringify replacer aborts mid-flight when result exceeds CODE_MODE_MAX_RESULT_SIZE (default 100KB), preventing OOM
  • Code Mode: Added CODE_MODE_MAX_RESULT_SIZE environment variable (default 100KB, cap 50MB)
  • Code Mode: Reduced default maxResultSize from 10MB to 100KB (fleet standard)
  • Code Mode: Aligned maxYoungGenerationSizeMb formula to max(8, floor(memoryLimitMb/8)) (fleet standard)
  • Docs: Fixed SECURITY.md copy-paste errors referencing "postgres-mcp" instead of "mysql-mcp"

Full Changelog: https://github.com/neverinfamous/mysql-mcp/compare/v3.2.1...v3.2.2

Quick Start

npm install -g @neverinfamous/mysql-mcp@latest
docker pull writenotenow/mysql-mcp:v3.2.2