MySQL Ops MCP
# 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.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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