MCPP MySQL is an MCP (Model Context Protocol) server that enables AI assistants (e.g., Cursor, Claude) to directly interact with MySQL databases. Version 1.1.0 supports direct connections and SSH tunnels for private databases like Alibaba Cloud RDS. It provides tools for listing databases/tables, describing schemas, executing read/write queries, and creating tables. Security features include 30s query timeout, 500-row limit, mandatory WHERE clause for UPDATE/DELETE, and blocking DROP/TRUNCATE. Requires an access key from https://mcp.hxstudio.website and Node.js >=18. ESM-only, ships TypeScript types.
npm install mcpp-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal configuration to connect mcpp-mysql to a MySQL database via MCP server config.
Obtain a valid access key from https://mcp.hxstudio.website and set it in the MCP_ACCESS_KEY environment variable.
Always add a WHERE condition to UPDATE/DELETE statements. Example: UPDATE users SET name='test' WHERE id=1.
Use write_query with INSERT/UPDATE/DELETE only. For DDL operations, connect directly via mysql client.
Set MCP_ACCESS_KEY in the env section of your MCP configuration.
Verify MYSQL_HOST and MYSQL_PORT are correct and accessible. For private databases, configure SSH tunnel variables.
Check the SQL syntax. Use database-specific SQL standards.