io.github.arifulislamat/database-mcp-mysql

io.github.arifulislamat/database-mcp-mysql

MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "database-mcp-mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/mysql@0.5.0"
      ],
      "env": {
        "MYSQL_HOST": "<your MYSQL_HOST>",
        "MYSQL_USER": "<your MYSQL_USER>",
        "MYSQL_PASSWORD": "<your MYSQL_PASSWORD>",
        "MYSQL_DATABASE": "<your MYSQL_DATABASE>"
      }
    }
  }
}
Environment variables
  • MYSQL_HOSTrequiredDatabase host
  • MYSQL_USERrequiredDatabase user (a read-only user is recommended)
  • MYSQL_PASSWORDsecretDatabase password (or use MYSQL_PASSWORD_FILE)
  • MYSQL_DATABASErequiredDatabase name

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
0.5.0
Registry
active
Published
10/17/2026
Browse all Databases →

Add the badge to your site

Show visitors that io.github.arifulislamat/database-mcp-mysql is listed here — it’s also the link we check for a free listing.

io.github.arifulislamat/database-mcp-mysql — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-arifulislamat-database-mcp-mysql?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="io.github.arifulislamat/database-mcp-mysql — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![io.github.arifulislamat/database-mcp-mysql — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-arifulislamat-database-mcp-mysql?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.