What it does
The server provides Claude Code with tools to interact with MySQL databases. It supports both read operations (SELECT queries) and write operations (INSERT, UPDATE, DELETE, and DDL like CREATE TABLE or ALTER TABLE). This allows Claude to fetch data, modify records, inspect schemas, or run migrations as part of a conversation workflow.
Who it's for
Backend engineers, database administrators, or developers running Claude Code with access to a MySQL instance who want Claude to assist with queries, schema migrations, bulk data operations, or ad-hoc database maintenance without leaving the editor.
Common use cases
- Query a local or remote MySQL database and return results in Claude Code
- Run database migrations (CREATE TABLE, ALTER TABLE, DROP INDEX) via Claude
- Insert, update, or delete records for testing or data corrections
- Bulk operations across multiple rows or tables
- Execute stored procedures or complex multi-table queries
Setup pitfalls
- Requires a running MySQL server with accessible hostname, port, and valid database credentials
- Database user must have appropriate permissions: SELECT for reads, INSERT/UPDATE/DELETE for writes, and DDL grants for schema changes
- Package adoption is limited (0 GitHub stars, ~7600 weekly npm downloads); review the code before connecting it to production databases
- Credentials must be managed carefully and never committed to version control; use environment variables or secure configuration files