MySQL MCP Server

by sajithamma

1 288 downloads Not rated yet
GitHub

About

# MySQL MCP Server A powerful database management tool built with FastMCP that provides an interactive interface for managing SQLite databases. This project includes both a server component and a client interface for easy database operations. ## Features - List all tables in the database - Get detailed schema…

Explore

- List all tables in the database
- Get detailed schema information for any table
- Execute SQL queries with formatted results
- Interactive client interface for database operations

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 MySQL MCP 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

- Python 3.8 or higher
- pip (Python package installer)

python3.12 -m venv venv

1. Start the MCP server:

fastmcp run mcpserver.py:mcp --transport sse --host 127.0.0.1 --port 8000

2. In a separate terminal, run the client:

python mcpclient.py

Create a .env file in the project root with the following variables:


Claude Desktop / Cursor

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

{
    "mcpServers": {
        "mysql mcp server": {
            "mysql-mcp-server-sajithamma": {
                "command": "python",
                "args": [
                    "sqlite_fixture.py"
                ]
            }
        }
    }
}

McpServers

{
    "mysql-mcp-server-sajithamma": {
        "command": "python",
        "args": [
            "sqlite_fixture.py"
        ]
    }
}

A powerful database management tool built with FastMCP that provides an interactive interface for managing SQLite databases. This project includes both a server component and a client interface for easy database operations.

Features

- List all tables in the database
- Get detailed schema information for any table
- Execute SQL queries with formatted results
- Interactive client interface for database operations

Prerequisites

- Python 3.8 or higher
- pip (Python package installer)

Setup

1. Clone the repository:

git clone [email protected]:sajithamma/mysql-mcp-server.git
cd mysql-mcp-server

2. Create and activate a virtual environment:
```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.