Skip to main content
Glama
lclpedro

MySQL Managing MCP

by lclpedro

MCPs

MySQL Managing MCP

How to use this MCP:

  1. Import imagem in the docker-compose with how to docker-compose.yml

version: '3.8'

services:
  mcp-mysql:
    image: lclpedro/mcp-mysql:latest
    container_name: mcp-mysql
    ports:
      - "3002:3002"
    environment:
      - MYSQL_DATABASE_HOST=mysql-db
      - MYSQL_DATABASE_PORT=3306
      - MYSQL_DATABASE_USER=test
      - MYSQL_DATABASE_PASSWORD=root
      - MYSQL_DATABASE_NAME=testdb
    depends_on:
      - testdb
    volumes:
      - poetry-cache:/root/.cache/pypoetry

  your-database-mysql:
    image: mysql:8.0
    environment:
      - MYSQL_DATABASE=couponsdbx
      - MYSQL_USER=test
      - MYSQL_PASSWORD=root
      - MYSQL_ROOT_PASSWORD=root
    ports:
      - "3306:3306"
    volumes:
      - mysql_data:/var/lib/mysql

volumes:
  your-database-mysql:
  1. Run docker-compose up -d

  2. Configure MCP Server in this IDE:

{
    "mcpServers": {
        "mysqlManaging":{
            "serverUrl": "http://localhost:3002/sse"
        }
    }
}
  1. Load MCPs in IDE.

Others Executions

If your running only MCP server, you can run it with:

> git clone https://github.com/lclpedro/mcp-mysql.git
> cd mcp-mysql
> cp .env.example .env
> poetry install
> poetry run python main.py

Tools available:

  • health_check

  • list_tables

  • get_table_schema

  • execute_query

  • show_indexes_table

  • show_explain_query

Contributing with this MCP

  1. Fork it

  2. Create your feature branch (git checkout -b feature/AmazingFeature)

  3. Commit your changes (git commit -m 'Add some AmazingFeature')

  4. Push to the branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables management and querying of multiple MySQL databases through natural language, allowing AI assistants to list databases, execute SQL queries, and explore database schemas.
    Last updated
    1
  • A
    license
    B
    quality
    -
    maintenance
    Enables secure interaction with MySQL databases through listing tables, reading data, and executing SQL queries with proper error handling and controlled access.
    Last updated
    1
  • F
    license
    -
    quality
    -
    maintenance
    Enables direct interaction with MySQL databases through SQL queries, table exploration, and schema inspection with support for prepared statements and connection pooling.
    Last updated
  • A
    license
    A
    quality
    C
    maintenance
    Enables interaction with MySQL databases (including AWS RDS and cloud instances) through natural language, supporting query execution, schema inspection, index management, and comprehensive database operations with secure SSL connections.
    Last updated
    8
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect to PlanetScale databases, branches, schema, query insights, and execute SQL

  • Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…

  • Run SOQL queries to explore and retrieve Salesforce data. Inspect records, fields, and relationshi…

View all MCP Connectors

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/lclpedro/mcp-mysql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server