MySQL MCP Server
@tqvthu-works
关于 MySQL MCP Server
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MySQL MCP Server?
A Model Context Protocol (MCP) server for interacting with MySQL databases directly within Cursor IDE. It allows users to execute SQL queries (read‑only by default), inspect database schemas, and optionally enable write operations through configuration.
How to use MySQL MCP Server?
Install dependencies with npm install, then create a .env file with your MySQL connection details and write‑permission flags. Add the server configuration to your project’s .cursor/mcp.json, specifying npx ts-node as the command and the required environment variables. The server can then be invoked from Cursor IDE.
Key features of MySQL MCP Server
- Execute SQL queries (read-only by default).
- Inspect database schemas.
- Configurable write permissions for INSERT, UPDATE, DELETE.
Use cases of MySQL MCP Server
- Query MySQL databases directly from Cursor IDE during development.
- Safely inspect table structures and relationships.
- Enable controlled write operations (e.g., INSERT) when explicitly allowed.
- Run ad‑hoc SELECT queries without leaving the editor.
- Manage database interactions without switching to a separate SQL client.
FAQ from MySQL MCP Server
Is the server read‑only by default?
Yes. Write operations (INSERT, UPDATE, DELETE) are disabled by default. They can be enabled by setting the corresponding environment variables to true.
How do I enable write permissions?
Set ALLOW_INSERT_OPERATION, ALLOW_UPDATE_OPERATION, and ALLOW_DELETE_OPERATION in your .env or MCP configuration to true. Each flag controls its respective operation independently.
What dependencies are required?
You need Node.js, the npm packages listed in package.json (installed via npm install), and ts-node to run the TypeScript entry point.
Where should the server be configured?
The server is configured in .cursor/mcp.json within your Cursor IDE project. The connection details and permission flags are passed as environment variables in the MCP server entry.
Does the server support authentication?
Connection authentication uses the MySQL credentials provided in the environment variables (MYSQL_USER, MYSQL_PASS). No additional authentication layer is described.
数据库 分类下的更多 MCP 服务器
MCP Server for Milvus
zilliztechModel Context Protocol Servers for Milvus
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
mcp_mysql_server
xwb602625136Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Postgres Mcp
crystaldbaPostgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
评论