drio
Open app

MySQL 执行器

Source

Catalog onlyCatalog onlySTDIO

Overview

Gen Data is a demo tool designed for generating MySQL test data, specifically for use in local development environments.

To use Gen Data, set the MYSQL_PASSWORD environment variable and run the main functionality code using the command: MYSQL_PASSWORD={MYSQL_PASSWORD} uv --directory /项目文件夹路径(gen-data) run 功能代码(main).py.

  • Generates test data for MySQL databases. - Designed for local development environments. - Easy to set up and use with minimal configuration.
  1. Creating sample data for testing database applications.
  2. Simulating data for development purposes without affecting production data.
  3. Facilitating the testing of database queries and performance.

Add to your AI client

Use these steps to connect MySQL 执行器 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": {
    "mysql-co-pine": {
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

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": {
    "mysql-co-pine": {
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mysql-co-pine": {
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

{
  "servers": {
    "mysql-co-pine": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mysql-co-pine": {
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mysql-co-pine": {
      "command": "uv",
      "args": [
        "--directory",
        "/项目文件夹路径(gen-data)",
        "run",
        "功能代码(main).py"
      ],
      "env": {
        "MYSQL_PASSWORD": "<password>"
      }
    }
  }
}

FAQ

Is Gen Data suitable for production use?

No, Gen Data is intended solely for local development environments.

How do I set the MYSQL_PASSWORD?

You can set the MYSQL_PASSWORD as an environment variable before running the command.

Where can I find the documentation?

Detailed documentation is available at: https://mp.weixin.qq.com/s/C296RuLpH03jRRurKZSIlg.7:["$","div",null,{"cl