mcpbeat Sign in

Database MCP Mysql MCP Server

local only

Database MCP Mysql runs on your own machine — the client starts it, so there is no endpoint to ping. 147 installs a week from npm. Last commit 17 Oct 2026.

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

Installs per day peak 573 · avg 38 · -61% w/w
a month agotoday
147
Installs / week
pypi · database-mcp-mysql
5
Stars
1 open issue
17 Oct 2026
Last commit
from GitHub
MIT
License
Rust

What the code does

We read the source, 1 d ago · rules 995398eba69f

Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

Claims read-only, but the code runs commands conformance/leak-check.mjs:23, conformance/run.mjs:101
const child = spawn(command, args, { env: process.env });
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

const child = spawn(command, args, { env: process.env });

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

We found things in this code

Code changes quietly between releases, and nobody reads the diff of a dependency. We do, on every release — watch Database MCP Mysql and you get told the day something new turns up.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add database-mcp-mysql -e 'MYSQL_HOST=<MYSQL_HOST>' -e 'MYSQL_USER=<MYSQL_USER>' -e 'MYSQL_DATABASE=<MYSQL_DATABASE>' -- uvx database-mcp-mysql
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "database-mcp-mysql": {
      "command": "uvx",
      "args": [
        "database-mcp-mysql"
      ],
      "env": {
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_USER": "<MYSQL_USER>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.database-mcp-mysql]
command = "uvx"
args = ["database-mcp-mysql"]
env = { MYSQL_HOST = "<MYSQL_HOST>", MYSQL_USER = "<MYSQL_USER>", MYSQL_DATABASE = "<MYSQL_DATABASE>" }
.cursor/mcp.json
{
  "mcpServers": {
    "database-mcp-mysql": {
      "command": "uvx",
      "args": [
        "database-mcp-mysql"
      ],
      "env": {
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_USER": "<MYSQL_USER>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "database-mcp-mysql": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "database-mcp-mysql"
      ],
      "env": {
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_USER": "<MYSQL_USER>"
      }
    }
  }
}

Put your own values in place of <MYSQL_HOST> (Database host), <MYSQL_USER> (Database user (a read-only user is recommended)), <MYSQL_DATABASE> (Database name). The author’s registry entry marks them as required.

Optional settings from the registry entry, left out of the block above: MYSQL_PASSWORD (Database password (or use MYSQL_PASSWORD_FILE)).

Alternatives to Database MCP Mysql

same job, measured the same way
Database MCP Postgres
by arifulislamat

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

114 installs/wk local only
Database MCP Mariadb
by arifulislamat

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

99 installs/wk local only
Database MCP Sqlite
by arifulislamat

MCP server for SQLite databases. Read-only by default, row caps, statement timeouts.

137 installs/wk local only
Database MCP Libsql
by arifulislamat

MCP server for libSQL/Turso, local or remote. Read-only by default, row caps, timeouts.

96 installs/wk local only
Mcpg
by devopam

Production-grade PostgreSQL MCP server — 254 tools for query, tuning & ops, read-only by default.

220 installs/wk local only
Rowbase
by djstreet11

Safe, read-only-by-default MySQL, PostgreSQL & SQLite access for AI agents. TOON output.

95 installs/wk local only
Read Only Local Mysql MCP Server
by hove

MCP server for read-only MySQL database queries in Claude Desktop

199 installs/wk local only
R
Read Only Mysql MCP Server
by hove

MCP server for read-only MySQL database queries in Claude Desktop

local only

Database MCP Mysql — questions

Answers built from our own checks of this server.

Why is there no uptime for Database MCP Mysql?
Database MCP Mysql runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package database-mcp-mysql was installed 147 times last week.
How do I connect Database MCP Mysql?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls database-mcp-mysql straight from pypi; nothing to host, nothing to sign up for.
How many people use Database MCP Mysql?
The pypi package database-mcp-mysql was installed 147 times in the last week. Week over week that is -61%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Database MCP Mysql open source?
Yes — it is published under the MIT licence, written in Rust, 5 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.