Skip to main content
Glama
lemonq3q

MySQL Ops MCP

by lemonq3q

# 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: keevor-mysql-mcp-server

Tools

  • mysql_current_config

  • mysql_list_databases

  • mysql_list_tables

  • mysql_describe_table

  • mysql_show_indexes

  • mysql_show_triggers

  • mysql_query_readonly

  • mysql_explain

  • mysql_execute_sql

  • mysql_execute_file

  • mysql_create_backup_sql

High-risk SQL such as DROP DATABASE, TRUNCATE TABLE, and UPDATE or DELETE without WHERE requires confirmHighRisk=true.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A MySQL MCP server for local stdio clients, enabling database queries and management with read-only/write modes, audit logging, and configurable security.
    1,081
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A robust MCP server for interacting with MySQL databases through AI agents, providing tools for schema analysis, query execution, and dynamic connection management with read-only security.
    121
    MIT

Latest Blog Posts

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