drio
Open app

MCP Server for MySQL based on NodeJS

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

MCP Server for MySQL is a Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.

To use this server, configure it in the "mcpServers" section of your claude_desktop_config.json file with the necessary MySQL connection details and run the server using the command provided in the documentation.

  • Execute read-only SQL queries against connected MySQL databases. - Automatically discover and provide JSON schema information for each table in the database. - Supports integration with the Claude Desktop app for enhanced functionality.
  1. Allowing LLMs to perform read-only queries on MySQL databases.
  2. Inspecting database schemas for better understanding and analysis.
  3. Facilitating data retrieval without modifying the underlying database.

Add to your AI client

Use these steps to connect MCP Server for MySQL based on NodeJS in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "benborla-mcp-server-mysql-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-benborla-mcp-server-mysql-mcp-mirror"
      ]
    }
  }
}

FAQ

Can I modify data using this server?

No, this server only allows read-only access to the database.

What do I need to run this server?

You need Node.js and a MySQL database to connect to.

Is there any licensing for this server?

Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":679,"uuid":"a5fdb179-55dd-495b-86f7-39024aeb3613","name":"benborla_mcp-server-mysql","title":"MCP Server for MySQL based on NodeJS","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:26:14.588Z","updated_at":"2025-02-23T07:16:03.072Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp-server,mysql,nodejs","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/benborla_mcp-server-mysql","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/63018550e894ba17849267881248eb5a28c3f9a6b105a3aaee64033f4c96ad82/68747470733a2f2f736d6974686572792e61692f62616467652f4062656e626f726c6132392f6d63702d7365727665722d6d7973716c","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

MCP Server for MySQL based on NodeJS — MCP Registry