MySQL MCP Server

MySQL MCP Server

mysql_mcp•byboyzoid

A Model Context Protocol server offering read-only access to MySQL databases, letting MCP clients explore schemas, inspect table structures, and run SELECT queries safely.

License: ISC•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides a describe_table tool that shows table structure including columns, types, and keys.
  • •Provides a query tool that executes validated read-only SQL queries limited to SELECT statements.
  • •Exposes resources listing available database schemas and tables within a schema.
  • •Enforces read-only access by parsing and validating all queries, rejecting any modifying statements.

BEST FOR

  • •Exploring MySQL database schemas and relationships through guided exploration.
  • •Inspecting table structures such as columns, types, and keys.
  • •Safely running read-only SELECT queries against a MySQL database.

ABOUT MYSQL_MCP

MySQL MCP Server is cataloged as an MCP server attributed to boyzoid. A Model Context Protocol server offering read-only access to MySQL databases, letting MCP clients explore schemas, inspect table structures, and run SELECT queries safely. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: ISC. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MySQL MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can this server modify data in the database?

No. It permits only SELECT statements and rejects INSERT, UPDATE, DELETE, or other modifying statements.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 02ef597165b0 · 采集于 2026-11-13 11:07:13 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MySQL MCP Server

A Model Context Protocol (MCP) server that provides read-only access to MySQL databases. This server allows MCP clients (like Claude Desktop or other AI assistants) to explore database schemas, inspect table structures, and execute SELECT queries safely.

Features

Tools

  • describe_table - Shows table structure including columns, types, and keys
  • query - Executes validated read-only SQL queries (SELECT statements only)

Resources

  • mysql://schemas - Lists all available database schemas
  • mysql://schemas/{schema}/tables - Lists tables in a specific schema

Prompts

  • explore-schema - Guided exploration of a database schema's structure and relationships
  • query-builder - Interactive help for constructing SELECT queries

Prerequisites

  • Node.js (v18 or higher recommended)
  • Access to a MySQL database

Installation

  1. Clone the repository and install dependencies:
npm install
  1. Build the TypeScript source:
npm run build

Configuration

Create a .env file based on the example:

cp .env.example .env

Edit .env with your MySQL connection details:

MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=your_username
MYSQL_PASSWORD=your_password

Usage

Running Directly

npm start

Configuring with an MCP Client

Add the server to your MCP client configuration. For example, in Claude Desktop's config file:

{
  "mcpServers": {
    "mysql": {
      "command": "node",
      "args": ["/path/to/mysql_mcp/dist/index.js"],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your_username",
        "MYSQL_PASSWORD": "your_password"
      }
    }
  }
}

Security

This server enforces read-only access by parsing and validating all queries before execution. Only SELECT statements are permitted. Any attempt to run INSERT, UPDATE, DELETE, or other modifying statements will be rejected.

License

ISC

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MySQL MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mysql_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage