MySQL Ops MCP
Provides tools for interacting with MySQL databases, enabling listing databases and tables, describing tables, showing indexes and triggers, running read-only and write SQL queries (write enabled by config), and creating backup SQL files.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MySQL Ops MCPshow me the structure of the policies table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
# MySQL Ops MCP
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.
Related MCP server: MySQL Custom MCP Server
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lemonq3q/MCP-MySQL'
If you have feedback or need assistance with the MCP directory API, please join our Discord server