mcp-server-mysql logo

mcp-server-mysql一项模型背景协议server,提供只读访问MySQL数据库。该server允许LLMs检视数据库架构并执行只读查询。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

一项模型背景协议server,提供只读访问MySQL数据库。该server允许LLMs检视数据库架构并执行只读查询。 该server的关键特性包括以下内容:只读默认,通过环境标志可通过写操作,支持Claude Code集成,以及SSH隧道支持。此外,还提供了架构特定权限、PII数据红箱,并支持远程数据库和多DB模式。

主要功能

  • 读写禁用,默认
  • 写入操作可选择通过环境变量标志
  • Claude Code集成
  • SSH隧道支持
  • 多DB模式
  • 架构特定权限
  • 结果中自动对敏感数据进行遮掩
  • 优化为Anthropic的Claude Code CLI

价格

模型
Free
评分
暂无评价

使用场景

"基于AI的数据分析"

"使用mcp-server-mysql使LLMs能够分析MySQL数据库中的数据,检视架构并执行只读查询。"

"与Claude Code结合进行数据探索"

"将mcp-server-mysql与Claude Code集成,以使LLMs能够探索和查询MySQL数据库。"

优点 & 缺点

优点

  • 允许LLMs检视数据库架构并执行只读查询
  • 多个数据库无需重新连接
  • 结果中自动对敏感数据进行遮掩
  • 优化为Anthropic的Claude Code CLI

缺点

  • 禁用写入操作,需要环境变量标志配置
  • 需要Node.js v20+和MySQL 5.7+ (8.0+推荐)

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the system requirements?

Node.js v20+ and MySQL 5.7+ (8.0 recommended). The MySQL user must have the necessary privileges for the databases you wish to expose. No local setup is needed if you run it in the cloud.

Asked by Victor Nguyen · Jan 22, 2026

Can I protect sensitive data when querying?

Yes. The server automatically redacts PII in query results. Schema‑specific permissions can be configured to restrict access to certain tables or columns, ensuring sensitive information is masked or blocked.

Asked by Xavier Costa · Jan 5, 2026

What integrations does it support?

It is optimized for Anthropic’s Claude Code CLI and can be invoked via the Model Context Protocol. It also works with SSH tunnels, supports remote MySQL over HTTP with bearer token and TLS/mTLS, and can handle multiple databases in a single session.

Asked by Youssef El-Sayed · Jan 6, 2026

How does mcp-server-mysql handle write operations?

By default it is read‑only. Write commands (INSERT, UPDATE, DELETE) can be enabled by setting the environment flag ALLOW_INSERT_OPERATIONS. Without this flag any write attempt will be rejected.

Asked by Tobias Hartmann · Nov 10, 2025

提问

服务配缩器 的替代品