Back to MCP directory
publicPublicdnsLocal runtime

MySQL-MCP-Server

一个基于MCP协议的MySQL数据库连接服务器,提供表结构查询和只读SQL执行功能,支持LLM模型进行数据分析。

article

README

🚀 MCP MySQL服务器

这是一个借助模型上下文协议(MCP)连接到MySQL数据库的服务器。它将数据库的表结构作为资源公开,让LLM模型能够访问数据库结构,执行只读的SQL查询,还能利用预定义提示开展数据分析工作。

🚀 快速开始

此服务器借助模型上下文协议(MCP),实现与MySQL数据库的连接。它把数据库表结构公开为资源,方便LLM模型进行操作。LLM模型可借此访问数据库结构,执行只读SQL查询,并利用预定义提示开展数据分析。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client