Simple Mysql Mcp Server (python Based)

by bintariq

1 364 downloads Not rated yet MIT
GitHub

About

# Simple MySQL MCP Server A minimal FastAPI-based MCP server that lets GitHub Copilot or other MCP-compatible tools securely query your local or Dockerized MySQL database. --- ## ⚡ Features - 🔌 Connects to any MySQL instance (XAMPP, Docker, Linux-native, etc.) - 🚀 Fast and lightweight (built with FastAPI) - 🛡️…

Details

License
MIT

Explore

- 🔌 Connects to any MySQL instance (XAMPP, Docker, Linux-native, etc.)
- 🚀 Fast and lightweight (built with FastAPI)
- 🛡️ Auto-blocks destructive SQL (DROP, DELETE, etc.)
- 📊 Logs queries with timing
- 🧩 MCP.so-compatible (mcp.json included)

---

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 Mysql Mcp Server (python Based)
    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

```bash
git clone https://github.com/your-username/simple-mysql-mcp-server.git
cd simple-mysql-mcp-server
cp config.sample.json config.json
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8081

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "simple mysql mcp server (python based)": {
            "default": {
                "command": "python",
                "args": [
                    "main.py"
                ]
            }
        }
    }
}

McpServers

{
    "default": {
        "command": "python",
        "args": [
            "main.py"
        ]
    }
}

A minimal FastAPI-based MCP server that lets GitHub Copilot or other MCP-compatible tools securely query your local or Dockerized MySQL database.

---

⚡ Features

- 🔌 Connects to any MySQL instance (XAMPP, Docker, Linux-native, etc.)
- 🚀 Fast and lightweight (built with FastAPI)
- 🛡️ Auto-blocks destructive SQL (DROP, DELETE, etc.)
- 📊 Logs queries with timing
- 🧩 MCP.so-compatible (mcp.json included)

---

🛠 Installation (Python)

```bash
git clone https://github.com/your-username/simple-mysql-mcp-server.git
cd simple-mysql-mcp-server
cp config.sample.json config.json
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8081

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.