Feedback

MySQL MCP Server — by malove86

@malove86 Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
malove86
Submitted by
Community
Quality
25
Stars
9

About MySQL MCP Server

Access MySQL databases, run SQL queries, and retrieve data easily with configurable parameters. Compatible with MySQL Workbench and Studio.

MySQL is a MCP server in the Databases category listed in the AddMCP.net directory, published by malove86. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 9 GitHub stars. Source code is hosted on github.com. Related topics: ai-integration, community, database, databases, mcp-mysql-server.

Setup

{
    "mcpServers": {
        "mysql": {
            "command": "npx",
            "args": [
                "-y",
                "@malove86/mcp-mysql-server"
            ],
            "env": {
                "MYSQL_HOST": "your_host",
                "MYSQL_USER": "your_user",
                "MYSQL_PASSWORD": "your_password",
                "MYSQL_DATABASE": "your_database",
                "MYSQL_PORT": "3306"
            }
        }
    }
}

MySQL MCP Server — by malove86 config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mysql": {
            "command": "npx",
            "args": [
                "-y",
                "@malove86/mcp-mysql-server"
            ],
            "env": {
                "MYSQL_HOST": "your_host",
                "MYSQL_USER": "your_user",
                "MYSQL_PASSWORD": "your_password",
                "MYSQL_DATABASE": "your_database",
                "MYSQL_PORT": "3306"
            }
        }
    }
}

MySQL MCP Server — by malove86 tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MySQL?

一个基于Model Context Protocol的MySQL数据库操作服务器,使AI模型能够通过标准化接口与MySQL数据库进行交互。适合需要让AI助手直接执行数据库查询和管理操作的开发者。

How to use MySQL?

可通过npx直接运行,支持本地运行模式和远程URL模式。本地模式需在MCP设置中配置环境变量(MYSQL_HOST、MYSQL_USER、MYSQL_PASSWORD、MYSQL_DATABASE、可选MYSQL_PORT);远程模式需在服务器上设置相同环境变量后启动MCP服务器,客户端通过URL指向远程服务器。

Key features of MySQL

  • 通过预处理语句防止SQL注入,增强安全性
  • 支持本地命令行运行和远程URL连接两种模式
  • 自动数据库连接及连接池管理(最多50并发连接)
  • 多用户并发支持与请求级别隔离
  • 提供connect_db、query、list_tables、describe_table等工具
  • 自动重连和优雅容错机制

Use cases of MySQL

  • AI助手直接查询数据库中的业务数据并返回结构化结果
  • 通过对话式界面列出数据库表并获取表结构
  • 使用预处理语句安全地执行参数化查询
  • 在多用户AI应用环境中并发访问同一数据库实例
  • 远程部署数据库操作服务,客户端无需暴露数据库凭据

Frequently asked questions

1 需要哪些环境变量?

MYSQL_HOST、MYSQL_USER、MYSQL_PASSWORD、MYSQL_DATABASE是必需的,MYSQL_PORT可选(默认3306)。

2 如何确保SQL查询的安全性?

服务器使用预处理语句参数执行查询,在执行前进行验证,并自动关闭连接,以防止SQL注入。

3 支持哪些部署模式?

支持本地运行模式(通过npx命令运行)和远程URL模式(v0.2.2+,客户端通过URL连接远程服务器)。

4 是否支持多用户并发?

v0.2.4+支持多用户并发,使用改进的连接池管理最多50个并发连接,并实现请求级别隔离。

5 远程模式下数据库凭据安全吗?

是的,敏感数据库凭据仅存在于服务器端,不会暴露在客户端对话中,提高了安全性。

Videos

Tutorials, guides, and showcases related to MySQL MCP Server — by malove86. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬