Read Only Local Mysql MCP server
MCP server for read-only MySQL database queries in Claude Desktop
7 stars137 downloads/wk
Reviews
Write oneNobody has reviewed Read Only Local Mysql yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Read Only Local Mysql tools (3, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
connectConnect to a MySQL database using a connection string. The connection will be used for subsequent queries until changed.
disconnectDisconnect from the current runtime database and revert to the default environment-configured connection
querywrite actionRun a read-only SQL query against the currently connected database
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 21 days ago15/15
- Maintainer identitynamespace and repository owner differ; GitHub account older than a year; website matches verified namespace8/10
Install Read Only Local Mysql in Claude Code, Cursor or VS Code
Runs npx -y @hovecapital/read-only-mysql-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add read-only-local-mysql-mcp-server -- npx -y @hovecapital/read-only-mysql-mcp-server
What the publisher says
From the Read Only Local Mysql repository's README, as published. We do not edit it. Read it on GitHub
MySQL MCP Server
A Model Context Protocol (MCP) server that enables Claude Desktop to interact with MySQL databases through natural language queries.
Features
- Execute read-only SQL queries through Claude Desktop
- Dynamic connection configuration — connect to any MySQL database at runtime via connection string
- Built-in security with query validation (SELECT, WITH, SHOW, DESCRIBE and EXPLAIN only, one statement, no comments) plus a server-side read-only transaction
- Easy integration with Claude Desktop
- JSON formatted query results
- Environment-based configuration for database credentials
Quick Start
For Claude Code Users (Recommended - Easiest Method)
claude mcp add mysql -s user -- npx -y @hovecapital/read-only-mysql-mcp-server@latestThen set your database environment variables:
export DB_HOST=localhost
export DB_PORT=3306
export DB_DATABASE=your_database_name
export DB_USERNAME=your_username
export DB_PASSWORD=your_passwordDone! Restart Claude Code and ask: "What tables are in my database?"
For Claude Desktop Users (Manual Configuration)
1. Open your config file:
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json2. Add this configuration:
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@hovecapital/read-only-mysql-mcp-server@latest"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_DATABASE": "your_database_name",
"DB_USERNAME": "your_username",
"DB_PASSWORD": "your_password"
}
}
}
}3. Save, restart Claude Desktop, and test!
Prerequisites
- Node.js (v16 or higher) - If using mise, update the command path accordingly
- MySQL database server
- Claude Desktop application
Installation
Option 1: Install from MCP Registry (Recommended)
This server is published in the Model Context Protocol Registry as capital.hove/read-only-local-mysql-mcp-server.
Method A: Claude Code CLI (Easiest!)
claude mcp add mysql -s user -- npx -y @hovecapital/read-only-mysql-mcp-server@latestThen configure your database credentials using environment variables. Restart Claude Code and you're done!
Benefits:
- One command installation
- No manual JSON editing
- Automatic configuration
Method B: Manual JSON Configuration
For Claude Desktop:
Edit ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.json (Windows):
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["-y", "@hovecapital/read-only-mysql-mcp-server@latest"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_DATABASE": "your_database_name",
"DB_USERNAME": "your_username",
"DB_PASSWORD": "your_password"
}
}
}
}For Claude Code:
Edit ~/.config/claude-code/settings.json (macOS/Linux) or %APPDATA%\claude-code\settings.json (Windows):
{
"mcp": {
"servers": {
"mysql": {
"command": "npx",
"args": ["-y", "@hovecapital/read-only-mysql-mcp-server@latest"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_DATABASE": "your_database_name",
"DB_USERNAME": "your_username",
"DB_PASSWORD": "your_password"
}
}
}
}
}Option 2: Install from npm
npm install -g @hovecapital/read-only-mysql-mcp-serverShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Read Only Local Mysql: common questions
- Is Read Only Local Mysql MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Read Only Local Mysql safety report
- How do I install Read Only Local Mysql?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Read Only Local Mysql need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Read Only Local Mysql maintained?
- The last commit was 36 days ago (2026-09-07). The latest release is v0.1.1.
- What can I use instead of Read Only Local Mysql?
- Servers from other publishers that do the same job: DBHub MCP server, Quarry MCP server and Quarry MCP server. Compare all Read Only Local Mysql alternatives.
Alternatives to Read Only Local Mysql
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- QuarrySafety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.not reviewedGrowingA
- QuarrySafety-railed database access for agents: Postgres, MySQL, Redis. Read-only by default.not reviewedGrowingA
- MCP Local WPWordPress database access via Local by Flywheel. Execute read-only MySQL queries and inspect schema.not reviewedGrowingA
NeoSQL MCPSchemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.not reviewedGrowingA