Simple MCP MySQL Server

by alexcc4

295 downloads
Not rated
GitHub

About

A lightweight MCP server for MySQL, built with python

Details

Author
alexcc4
Downloads
295
Categories
Database

- List all MySQL tables in the database
- Retrieve detailed schema information for all tables
- Execute read-only SQL queries with error handling
- Secure database access through environment variables
- Simple configuration and deployment

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Simple MCP MySQL Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository and run uv sync to install dependencies. Set the five environment variables (DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME). Start manually with uv run main.py or integrate with Claude Desktop by adding the server configuration to claude_desktop_config.json. Then ask natural language queries like “Show me all tables” or “Top 10 rows from users table”.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "simple mcp mysql server": {
            "mcp-mysql-server-alexcc4": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-mysql-server-alexcc4": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

Simple MCP MySQL Server

A lightweight Model Context Protocol (MCP) server that enables secure interaction with MySQL databases. This server allows AI assistants like Claude to list tables, read data, and execute SQL queries through a controlled interface.

Features

List all MySQL tables in the database
Retrieve detailed schema information for all tables
Execute read-only SQL queries with proper error handling
Secure database access through environment variables

  • Simple configuration and deployment


Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.