drio
Open app

mysqldb-mcp-server MCP server

Source

An MCP server implementation that enables Claude AI to interact with MySQL databases.

Catalog onlyCatalog onlySTDIO

Overview

mysqldb-mcp-server is an MCP server implementation that allows Claude AI to interact seamlessly with MySQL databases, enabling efficient database management and query execution.

To use mysqldb-mcp-server, install the package via pip or uv, configure the necessary environment variables, and run the server to connect to your MySQL database and execute queries.

  • Connects to MySQL databases easily. - Executes SQL queries and returns results in JSON format. - Supports multiple queries in a single request. - Configurable environment settings for database connection.
  1. Automating database interactions for AI applications.
  2. Executing complex SQL queries from AI-driven tools.
  3. Integrating MySQL database functionalities into various applications.

Add to your AI client

Use these steps to connect mysqldb-mcp-server 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": {
    "mysqldb-mcp-server-burakdirin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mysqldb-mcp-server-burakdirin"
      ]
    }
  }
}

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

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mysqldb-mcp-server-burakdirin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mysqldb-mcp-server-burakdirin"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mysqldb-mcp-server-burakdirin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mysqldb-mcp-server-burakdirin"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mysqldb-mcp-server-burakdirin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mysqldb-mcp-server-burakdirin"
      ]
    }
  }
}

FAQ

What programming language is mysqldb-mcp-server written in?

mysqldb-mcp-server is written in Python.

Is there a way to run multiple queries at once?

Yes, you can send multiple queries separated by semicolons.

How do I configure the database connection?

You can configure the connection using environment variables such as MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, etc.