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.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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.

Upstream README

View this exact version on GitHub

README.md · 02ef597165b0 · Fetched 2026-11-13 11:07:13 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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