drio
Open app

MySQL MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MySQL MCP Server is a Model Context Protocol (MCP) server that provides MySQL database access functionality, allowing users to interact with MySQL databases seamlessly.

To use the MySQL MCP Server, clone the repository, install the dependencies, build the project, and set the necessary environment variables for MySQL connection. The server will start automatically when the MCP system initializes it.

  • List database tables and their schemas - Execute read-only SQL queries - Secure connection handling with connection pooling
  1. Accessing and managing MySQL databases in a secure manner.
  2. Executing read-only queries for data analysis.
  3. Integrating with other applications that require MySQL database access.

Add to your AI client

Use these steps to connect MySQL MCP Server 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": {
    "mcp-server-mamp-mysql-kerongon": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-mamp-mysql-kerongon"
      ]
    }
  }
}

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": {
    "mcp-server-mamp-mysql-kerongon": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-mamp-mysql-kerongon"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What is the purpose of the MySQL MCP Server?

The MySQL MCP Server provides a secure and efficient way to access MySQL databases through the Model Context Protocol.

How do I install the MySQL MCP Server?

You can install it by cloning the repository, installing dependencies, and building the project as described in the installation section.

Is there a limit on the number of connections?

Yes, the default connection pool limit is set to 10, but it can be configured through the environment variables.