Price Per TokenPrice Per Token
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

GitHub 1 872 uses Remote
0

About

MCP-MySQL-Ops is a comprehensive MySQL database monitoring and operations tool that provides 19 specialized capabilities for database administration, performance analysis, and system health monitoring through natural language queries. Key capabilities include: - Performance monitoring using MySQL's Performance Schema for query analytics, slow query identification, and execution statistics. - Schema and structure discovery with detailed table, index, and column analysis across multiple databases. - Real-time connection and process monitoring to diagnose locks, connection issues, and active operations. - Storage engine intelligence with InnoDB status monitoring and table optimization recommendations. - Storage analysis and capacity planning with table size metrics and growth insights. - User and configuration exploration for database security and settings review. Compatible with MySQL 5.7+, MySQL 8.0+, AWS RDS, and Aurora MySQL. Operates in read-only mode for production safety.

README

MCP Server for MySQL Operations and Monitoring

[](https://opensource.org/licenses/MIT)

[](https://smithery.ai/server/@call518/mcp-mysql-ops) [](https://www.buymeacoffee.com/call518)

[](https://github.com/call518/MCP-MySQL-Ops/actions/workflows/pypi-publish.yml)

---

Architecture & Internal (DeepWiki)

[](https://deepwiki.com/call518/MCP-MySQL-Ops)

---

Overview

You are working with the MCP MySQL Operations Server, a powerful tool that provides comprehensive MySQL database monitoring and analysis capabilities through natural language queries. This server offers 19 specialized tools for database administration, performance monitoring, and system analysis. Leverages MySQL's Performance Schema and Information Schema for deep insights into database operations and performance metrics.

---

Features

  • Zero Configuration: Works with MySQL 5.7+ and 8.0+ out-of-the-box with automatic version detection.
  • Natural Language: Ask questions like "Show me slow queries" or "Analyze table sizes."
  • Production Safe: Read-only operations, AWS RDS/Aurora MySQL compatible with regular user permissions.
  • Performance Schema Integration: Advanced query analytics using MySQL's built-in Performance Schema.
  • Comprehensive Database Monitoring: Storage engine analysis, connection monitoring, and performance insights.
  • Smart Query Analysis: Query performance identification using Performance Schema statistics.
  • Schema & Structure Discovery: Database structure exploration with detailed table and index analysis.
  • Storage Engine Intelligence: InnoDB monitoring, table optimization recommendations.
  • Multi-Database Operations: Seamless cross-database analysis and monitoring.
  • Enterprise-Ready: Safe read-only operations with AWS RDS/Aurora MySQL compatibility.
  • Developer-Friendly: Simple codebase for easy customization and tool extension.
  • 🔧 Advanced Capabilities

  • Performance Schema-based query monitoring and analysis.
  • Real-time connection and process monitoring.
  • Storage engine status and optimization analysis.
  • Database capacity and table size analysis.
  • Index usage and efficiency tracking.
  • Tool Usage Examples

    ---

    ---

    ---

    ⭐ Quickstart (5 minutes)

    > Note: The mysql container included in docker-compose.yml is intended for quickstart testing purposes only. You can connect to your own MySQL instance by adjusting the environment variables as needed.

    > If you want to use your own MySQL instance instead of the built-in test container: > - Update the target MySQL connection information in your .env file (see MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE). > - In docker-compose.yml, comment out (disable) the mysql and mysql-init-data containers to avoid starting the built-in test database.

    Flow Diagram of Quickstart/Tutorial

    1. Environment Setup

    > Note: The system automatically handles user permissions - both root users and regular users are supported with appropriate access control.

    git clone https://github.com/call518/MCP-MySQL-Ops.git
    cd MCP-MySQL-Ops

    Copy and check environment configuration

    cp .env.example .env

    Default configuration (works out-of-the-box):

    #### MySQL Root Configuration for Docker:
    MYSQL_ROOT_HOST=%
    MYSQL_ROOT_PASSWORD=changeme!@34

    #### MySQL Host Configuration: MYSQL_HOST=host.docker.internal MYSQL_PORT=13306 MYSQL_USER=root MYSQL_PASSWORD=${MYSQL_PASSWORD} MYSQL_DATABASE=test_ecommerce

    For your own MySQL server:

    # Edit .env file with your MySQL connection details
    MYSQL_HOST=your-mysql-server.com
    MYSQL_PORT=3306
    MYSQL_USER=your_username     # Will auto-grant permissions on test DBs
    MYSQL_PASSWORD=your_password
    MYSQL_DATABASE=your_default_db

    Then disable built-in containers in docker-compose.yml

    Comment out: mysql and mysql-init-data services

    > Note: The MySQL container is configured with proper volume

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81
    Saju Insights

    Saju Insights

    hjsh200219

    Saju Insights provides personalized Korean traditional Four Pillars of Destiny (Saju) fortune-telling based on birth data. It calculates destiny charts using the eight characters (four heavenly stems and four earthly branches) derived from birth year, month, day, and hour. Key capabilities include: - Birth chart calculation with automatic True Solar Time adjustment (Jintaeyangsi -30min correction) - Fortune analysis covering personality, career, wealth, health, and love prospects - Relationship compatibility analysis comparing two people's Saju charts - 10-year luck cycle (Daewon) predictions for long-term planning - Yongsin (favorable element) guidance on lucky colors, directions, and career paths - Lunar-solar calendar conversion supporting 1900-2200 with leap month handling - Daily fortune readings and seasonal power calculations - Multiple interpretation schools including Ziping, DTS, and modern methodologies

    Entertainment
    7 11