MCP Server for MySQL based on NodeJS

by MCP-Mirror

302 downloads
Not rated
GitHub

About

A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read‑only queries. It is built on Node.js and is intended for developers who want their AI assistants to query MySQL safely.

Details

Author
MCP-Mirror
Downloads
302
Categories
Database

- Read‑only SQL execution via the mysql_query tool
- Automatic discovery of table schemas, columns, indexes, and foreign keys
- SQL injection prevention with prepared statements
- Configurable rate limiting, query complexity analysis, and SSL encryption
- Connection pooling, result caching, and streaming
- Query logging, performance metrics, and health check endpoints

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 MCP Server for MySQL based on NodeJS
    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

Install via Smithery, MCP Get, or npm/pnpm globally, then configure your LLM application with the required environment variables (e.g., MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB). For Claude Desktop, add the server entry to claude_desktop_config.json with the command npx -y @benborla29/mcp-server-mysql and the env block. Once configured, the server exposes a mysql_query tool for read‑only queries and provides table schema resources.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "mcp server for mysql based on nodejs": {
            "zhaoxin34_mcp-server-mysql": {
                "command": "npx",
                "args": [
                    "-y",
                    "@smithery/cli@latest",
                    "install",
                    "@benborla29/mcp-server-mysql",
                    "--client",
                    "claude"
                ]
            }
        }
    }
}

McpServers

{
    "zhaoxin34_mcp-server-mysql": {
        "command": "npx",
        "args": [
            "-y",
            "@smithery/cli@latest",
            "install",
            "@benborla29/mcp-server-mysql",
            "--client",
            "claude"
        ]
    }
}

MCP Server for MySQL based on NodeJS

smithery badge

Demo

A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

Installation

Using Smithery

The easiest way to install and configure this MCP server is through Smithery:

```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.