MCPizy
BrowseGuidesDocsFor publishersSubmit

TL;DR

MySQL is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent mySQL database integration for AI queries. Install in 1 minute with mcpizy install mysql.

๐Ÿฌ

MySQL

Install verified 4 tools

Databases

Last updated September 23, 2026 ยท By MCPizy team

MySQL database integration for AI queries

Official homepage

Install MySQL

Via MCPizy CLI (recommended):
mcpizy install mysql
Or run directly:
npx -y mcp-server-mysql

Tools exposed

4 tools available
query

Run a read-only SQL query

Inputs

  • sqlstringrequired
list_databases

List all databases on the server

list_tables

List tables in the current database

describe_table

Show columns, types, and keys for a table

Inputs

  • tablestringrequired

Configuration

Works identically across clients. Only the config file path differs.

Claude Code~/.claude.json
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@benborla29/mcp-server-mysql"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "",
        "MYSQL_DATABASE": "mydb"
      }
    }
  }
}
Cursor.cursor/mcp.json
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@benborla29/mcp-server-mysql"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "",
        "MYSQL_DATABASE": "mydb"
      }
    }
  }
}
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@benborla29/mcp-server-mysql"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "",
        "MYSQL_DATABASE": "mydb"
      }
    }
  }
}

Authentication setup

  1. 1

    Connect with a read-only MySQL user for safety

    Get it MYSQL_USER

What you can do with MySQL MCP

Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.

โ€œDescribe the schema of the `orders` tableโ€

Uses: describe_table

โ€œShow me every table in the current database with row countsโ€

Uses: list_tables, query

โ€œTop 10 products by revenue in Q1โ€

Uses: query

Works with

Claude Code
Claude Desktop
Cursor
Windsurf
VS Code + Copilot
Any MCP Client

Alternatives to MySQL

If MySQL doesn't fit your stack, these Databases MCP servers solve similar problems.

Frequently asked questions

What is the MySQL MCP server?

MySQL is listed as an Databases Model Context Protocol server whose documented purpose is to let an MCP-compatible agent mySQL database integration for AI queries. Client support, permissions and authentication remain specific to the upstream project.

How do I install MySQL MCP with Claude Code?

The fastest way is the MCPizy CLI: run `mcpizy install mysql` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y mcp-server-mysql` and restarting Claude Code.

Does MCPizy charge to view or install MySQL MCP?

No. Reading this profile and copying its install guidance is free. Upstream software, API, account or usage costs are separate, and licence coverage should be checked from the linked source when available.

Does MySQL MCP work with Cursor and Windsurf?

The MCP standard is supported by those clients, but a specific server can still have client-specific setup or transport limits. Use the configuration shown on this page when present and verify the upstream instructions before installation.

What can I do with MySQL MCP?

Its documented purpose is to let an MCP-compatible agent mySQL database integration for AI queries. The exact tools, permissions and write capabilities depend on the server version and configuration shown by the upstream project.

Compare before you commit

Put this server beside an alternative, or return to the full evidence directory.

Compare MCP serversBack to directory