MySQL Ops
FreeNot checkedA generic MCP server for MySQL operations, enabling listing databases/tables, describing schemas, running read-only SQL, and optionally executing write SQL with
About
A generic MCP server for MySQL operations, enabling listing databases/tables, describing schemas, running read-only SQL, and optionally executing write SQL with logging.
README
A generic MCP server for MySQL operations.
It supports:
- Listing databases and tables.
- Describing tables.
- Showing indexes and triggers.
- Running read-only SQL:
SELECT,SHOW,DESCRIBE,DESC,EXPLAIN. - Running explicitly requested write SQL when
MYSQL_WRITE_ENABLED=true. - Logging every executed write SQL file under
mysql-ops-logs/in the current project root.
Configuration
Copy .env.example to .env.local and set your MySQL connection:
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=change-me
MYSQL_DEFAULT_DATABASE=insurance
MYSQL_WRITE_ENABLED=true
MYSQL_EXECUTION_LOG_DIR=mysql-ops-logs
.env.local is ignored by Git.
Tools
mysql_current_configmysql_list_databasesmysql_list_tablesmysql_describe_tablemysql_show_indexesmysql_show_triggersmysql_query_readonlymysql_explainmysql_execute_sqlmysql_execute_filemysql_create_backup_sql
High-risk SQL such as DROP DATABASE, TRUNCATE TABLE, and UPDATE or DELETE without WHERE requires confirmHighRisk=true.
Installing MySQL Ops
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/lemonq3q/MCP-MySQLFAQ
Is MySQL Ops MCP free?
Yes, MySQL Ops MCP is free — one-click install via Unyly at no cost.
Does MySQL Ops need an API key?
No, MySQL Ops runs without API keys or environment variables.
Is MySQL Ops hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install MySQL Ops in Claude Desktop, Claude Code or Cursor?
Open MySQL Ops on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolCompare MySQL Ops with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
