Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ—„๏ธ Databases
  3. Read Only Local Mysql MCP Server
Read Only Local Mysql MCP Server logo
Health: ActiveRecent health check succeeded.Last checked 10/5/2026, 2:01:04 AM

Read Only Local Mysql MCP Server

User RatingsBe the first to rate and review this MCP server!
View Repository7 GitHub StarsTotal stargazers on GitHub for the source repository (7 stars).Visit Website
mysqldatabaseread-onlysql

Runs validated, read-only MySQL queries through MCP with configurable default and runtime database connections.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Configure Environment Variables (API Keys, Tokens, Options):
Add required secrets below โ€” values are included directly in the generated snippet so you can copy and paste with confidence.
Quick Add:
Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "read-only-local-mysql-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hovecapital/read-only-mysql-mcp-server@latest"
      ],
      "env": {
        "DB_HOST": "YOUR_VALUE_HERE",
        "DB_PORT": "YOUR_VALUE_HERE",
        "DB_DATABASE": "YOUR_VALUE_HERE",
        "DB_USERNAME": "YOUR_VALUE_HERE",
        "DB_PASSWORD": "YOUR_VALUE_HERE",
        "DB_ALLOWED_HOSTS": "YOUR_VALUE_HERE"
      }
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (3) Directory Badge Claim listing Alternatives๐Ÿ—„๏ธ More in Databases

Overview

The read-only-local-mysql-mcp-server MCP server connects AI clients to MySQL databases through read-only SQL tools. It uses environment variables for a default connection, while runtime and per-query connection strings can target other permitted databases. Reach for it when an agent needs to inspect schemas or retrieve data without write access.

Use cases

โ€ขInspect database schemas through natural-language requests
โ€ขRetrieve filtered records from MySQL tables
โ€ขCount or summarize read-only database data
โ€ขSwitch between permitted MySQL databases at runtime

Key features

โ€ขRead-only MySQL SQL queries
โ€ขPersistent and per-query connection switching
โ€ขSQL statement validation
โ€ขJSON-formatted results
โ€ขEnvironment-based database configuration

Capabilities & Tool Schemas (3) ~87 tokensApproximate context cost of this serverโ€™s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server โ€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Read Only Local Mysql MCP Server.

connect

Connect to a MySQL database using a connection string. The connection persists for subsequent queries until changed or disconnected.

disconnect

Disconnect from the current runtime database and revert to the default environment-configured connection. Takes no parameters.

query

Run a read-only SQL query against the currently connected database.

How Read Only Local Mysql MCP Server works

What read-only-local-mysql-mcp-server MCP server does

The read-only-local-mysql-mcp-server MCP server lets an MCP-compatible client work with MySQL through natural-language requests that the client turns into SQL. It is intended for inspecting database structure and reading records, not for modifying data.

The server exposes three tools: connect selects a runtime database from a MySQL connection string, disconnect ends that runtime selection and returns to the environment-configured database, and query executes a read-only SQL statement. Query results are returned in JSON format.

Typical requests include listing tables, inspecting a table definition, retrieving a limited set of rows, counting records, and filtering results.

How it works

At startup, the server reads the default database connection from environment variables. A call to connect changes the active connection for later queries until disconnect is called. The query tool can also receive a connection string for a single request, which takes precedence over the persistent runtime connection and the environment-based default.

The read-only-local-mysql-mcp-server MCP server accepts a MySQL URL in the form mysql://username:password@hostname:port/database_name. Host access is restricted: the configured DB_HOST and loopback addresses are allowed, and additional destinations can be supplied through DB_ALLOWED_HOSTS.

Before execution, SQL is validated. Supported statement forms are SELECT, WITH, SHOW, DESCRIBE, and EXPLAIN. The validation permits one statement and rejects comments. Queries also run in a server-side read-only transaction, providing an additional safeguard against changes.

Setup and configuration

Node.js 16 or newer, a reachable MySQL server, and an MCP client are listed as prerequisites. The package can be launched with npx, installed globally from npm, or built locally after cloning the repository with npm install and npm run build.

For the default connection, configure these variables in the MCP client definition:

  • DB_HOST: MySQL hostname
  • DB_PORT: MySQL port
  • DB_DATABASE: database name
  • DB_USERNAME: MySQL user
  • DB_PASSWORD: password
  • DB_ALLOWED_HOSTS: optional comma-separated additional hosts permitted in connection strings

The documented npx command uses @hovecapital/read-only-mysql-mcp-server@latest. Claude Code can add it through the claude mcp add command, while Claude Desktop uses its MCP configuration file. After changing configuration, restart the client.

Tools and capabilities

  • connect(connectionString): establishes a persistent runtime connection.
  • disconnect(): closes the runtime connection and restores the environment-configured default.
  • query(sql, connectionString?): executes a read-only query, optionally using a connection string only for that request.
  • JSON-formatted query output.
  • Runtime database switching without restarting the server.
  • Validation for permitted read-only SQL statement types.

Limitations and notes

The read-only-local-mysql-mcp-server MCP server does not provide write operations. SQL outside the supported statement types, multiple statements, or statements containing comments are rejected. Host restrictions also prevent arbitrary connection targets unless they are the configured host, loopback, or listed in DB_ALLOWED_HOSTS.

The README documents Claude Desktop and Claude Code setup specifically. Credentials are supplied through environment variables or connection strings, so deployment should account for how the MCP client stores and passes those values.

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Databases View all alternatives
  • MySQL Ops MCP logoMySQL Ops MCP

    MySQL MCP server: browse schema, query, CRUD. Delete/drop gated by user approval.

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs MySQL Ops MCP โ†’
  • Read Only Local Postgres MCP Server logoRead Only Local Postgres MCP Server

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

    ๐Ÿ—„๏ธ Databases1 views
    Compare vs Read Only Local Postgres MCP Server โ†’
  • MCP Database Server logoMCP Database Server

    MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.

    ๐Ÿ—„๏ธ Databases1 views
    Compare vs MCP Database Server โ†’
  • MCP Server Mysql logoMCP Server Mysql

    MySQL database integration in NodeJS with configurable access controls and schema inspection

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs MCP Server Mysql โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
7
Stargazers on the source repository.
Last commit
7d ago
Most recent push to the default branch.
Tools exposed
3
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about Read Only Local Mysql MCP Server

read-only-local-mysql-mcp-server is an MCP server that connects AI clients to MySQL databases for read-only access. Its main tools are connect for selecting a runtime database, disconnect for restoring the default connection, and query for executing validated SELECT, WITH, SHOW, DESCRIBE, or EXPLAIN statements.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRead Only Local Mysql MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/read-only-local-mysql-mcp-server?style=directory)](https://allmcps.com/mcp/read-only-local-mysql-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/read-only-local-mysql-mcp-server"><img src="https://allmcps.com/api/badge/read-only-local-mysql-mcp-server?style=directory" alt="Read Only Local Mysql MCP Server on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ—„๏ธDatabases
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
ClientsClaude Desktop, Claude Code, Cursor, Cline / VS Code, Windsurf, VS Code (GitHub Copilot), Zed, OpenAI Codex CLI, Gemini CLI, JetBrains AI Assistant, Roo Code, Continue, LM Studio
Last updatedOct 6, 2026
15/15 checks healthy over the last 56d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars7
GitHub Star CountTotal stargazers on GitHub representing community popularity (7 stars).
Last commit7d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 28, 2026
52Quality signal: Good ยท 52/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools23/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev ยท @hovecapital/read-only-mysql-mcp-server@latest (npm)

โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ—„๏ธ Databases โ†’Best MCP servers for Databases โ†’Best MySQL MCP servers โ†’Alternatives to Read Only Local Mysql MCP Server โ†’Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients