drio
Open app

@f4ww4z/mcp-mysql-server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

@f4ww4z/mcp-mysql-server is a Model Context Protocol server that facilitates MySQL database operations, allowing AI models to interact with MySQL databases through a standardized interface.

To use the server, you can install it via Smithery or manually using the provided commands. Configuration requires setting specific environment variables in your MCP settings.

  • Secure connection handling with automatic cleanup - Prepared statement support for query parameters - Comprehensive error handling and validation - TypeScript support - Automatic connection management
  1. Connecting AI models to MySQL databases for data retrieval and manipulation.
  2. Executing complex SQL queries through a standardized interface.
  3. Managing database connections securely and efficiently.

Add to your AI client

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

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "f4ww4z-mcp-mysql-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-f4ww4z-mcp-mysql-server-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": {
    "f4ww4z-mcp-mysql-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-f4ww4z-mcp-mysql-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

How do I install the server?

You can install it using the command: `npx -y @smithery/cli install @f4ww4z/mcp-mysql-server --client claude`.

What security measures are in place?

The server uses prepared statements to prevent SQL injection and supports secure password handling through environment variables.

Can I contribute to the project?

Yes! Contributions are welcome, and you can submit a Pull Request on GitHub.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":657,"uuid":"db65350c-c60f-46c8-bac7-a9760ebf397c","name":"f4ww4z_mcp-mysql-server","title":"@f4ww4z/mcp-mysql-server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:25:24.145Z","updated_at":"2025-02-23T07:15:12.777Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp-mysql-server,database,AI-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/f4ww4z_mcp-mysql-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/8dcffcab2fb30d9fc26f3398a0d4830da447da39b89674b6c2d58e028583ee30/68747470733a2f2f736d6974686572792e61692f62616467652f4066347777347a2f6d63702d6d7973716c2d736572766572","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"}]]}]