如何配置环境变量?
在 JSON 的 `env` 字段中设置 MYSQL_HOST、MYSQL_PORT、MYSQL_DATABASE、MYSQL_USERNAME、MYSQL_PASSWORD 等,MYSQL_ENABLED 默认可以不用填。
@the-nine-nation
Basic information
An MCP server that allows the model to safely obtain information from the MySQL database.
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTool 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.
这是一个基于 MCP(Model Context Protocol)的 MySQL 只读查询服务器,允许通过安全的只读查询接口访问 MySQL 数据库。适用于需要安全只读数据库访问的 AI 助手场景。
安装 Python 3.10+ 和 MySQL 5.7+,克隆仓库并执行 pip install -e .。在客户端的 config.json 中配置 command 为 Python 可执行文件,args 为 main.py 的绝对路径,并通过 env 设置 MYSQL_HOST、MYSQL_PORT、MYSQL_DATABASE、MYSQL_USERNAME、MYSQL_PASSWORD 等环境变量。
在 JSON 的 `env` 字段中设置 MYSQL_HOST、MYSQL_PORT、MYSQL_DATABASE、MYSQL_USERNAME、MYSQL_PASSWORD 等,MYSQL_ENABLED 默认可以不用填。
是必需的,用于定义可用的查询接口,提升模型对数据库结构的理解能力。
默认限制为 20 行,可通过环境变量调整。
服务只允许只读操作,防止多语句执行,并使用参数化查询防止 SQL 注入。建议数据库用户只有只读权限。
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Comments