drio
Open app

@enemyrr/mcp-mysql-server

Source

Catalog onlyCatalog onlySTDIO

Overview

@enemyrr/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 clone the repository, build it, and configure it in your Cursor IDE settings.

  • Multiple connection methods (URL, workspace, direct credentials) - Prepared statement support for secure query execution - Schema management tools for database structure handling - Comprehensive error handling and validation - TypeScript support for enhanced development experience
  1. Connecting AI models to MySQL databases for data retrieval and manipulation.
  2. Executing complex SQL queries through a standardized interface.
  3. Managing database schemas and structures programmatically.

Add to your AI client

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

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

Claude Code

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

.mcp.json (project root)

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

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can I connect to any MySQL database?

Yes! You can connect to any MySQL database using the provided connection methods.

Is it secure to use this server?

Yes! The server uses prepared statements to prevent SQL injection and supports secure password handling.

How do I contribute to the project?

Contributions are welcome! You can submit a Pull Request on the GitHub repository.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2285,"uuid":"28cdc6ff-c3e6-40c4-98ef-c9938ad94a6f","name":"mcp-mysql-server","title":"@enemyrr/mcp-mysql-server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/183293722?v=4","created_at":"2025-03-09T07:22:59.110Z","updated_at":"2025-03-12T10:21:16.549Z","status":"created","author_name":"enemyrr","author_avatar_url":"https://avatars.githubusercontent.com/u/183293722?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/enemyrr/mcp-mysql-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/59a011e43da2a00d5a1d2824afe0d378f0fed17782639c4b5da12e42175b60ef/68747470733a2f2f736d6974686572792e61692f62616467652f40656e656d7972722f6d63702d6d7973716c2d736572766572","type":null,"metadata":"{\"star\":\"22\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-29 16:26:46\"}","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"}]]}]