Is write support enabled by default?
No, all write operations (INSERT, UPDATE, DELETE) are disabled by default. They must be enabled individually via environment flags.
@benborla
基本信息
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "password",
"MYSQL_DB": "your_db",
"ALLOW_INSERT_OPERATION": "true",
"ALLOW_UPDATE_OPERATION": "true",
"ALLOW_DELETE_OPERATION": "true"
}
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
This server enables LLMs like Claude to interact with MySQL databases through the Model Context Protocol, allowing inspection of schemas, query execution, and optional write operations. It is designed for developers who want AI agents to query MySQL databases securely, with read-only access by default.
Install via npx @benborla29/mcp-server-mysql with environment variables for host, port, user, password, and database. For Claude Code, use claude mcp add; for other clients, configure a JSON entry in mcpServers. Write operations are opt-in using ALLOW_INSERT_OPERATION, ALLOW_UPDATE_OPERATION, and ALLOW_DELETE_OPERATION environment flags.
mysql://tables resourceNo, all write operations (INSERT, UPDATE, DELETE) are disabled by default. They must be enabled individually via environment flags.
Node.js v20+ and MySQL 5.7+ (8.0+ recommended). The MySQL user must have appropriate privileges.
The server includes built-in SSH tunnel support for securely accessing remote MySQL instances.
Set the environment variables `ALLOW_INSERT_OPERATION=true`, `ALLOW_UPDATE_OPERATION=true`, and `ALLOW_DELETE_OPERATION=true` as needed.
By default, it queries the configured database and exposes table metadata via the `mysql://tables` resource. Schema-specific permissions can be set per database.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
MCP server for interacting with Neon Management API and databases
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Connect ClickHouse to your AI assistants.
评论