MySQL

•

Enables AI assistants to securely interact with MySQL databases through a controlled Model Context Protocol (MCP) server.

This PHP-based Model Context Protocol (MCP) server empowers your AI assistant (such as Claude, Cursor, or OpenAI Codex) with secure, controlled access to MySQL databases. It features three strictly enforced access levels (read, write, admin) that can only be changed by a human operator, never by the AI. The server supports multiple databases, allowing AI to list, switch, and query across them seamlessly, while a robust security model prevents privilege escalation and SQL injection.

主要功能

010 GitHub stars
02Support for multiple databases with tools to list, switch, and query
03Human-only control over access level changes, preventing AI privilege escalation
04Three enforced access levels (read, write, admin) for MySQL operations
05Robust security model with HMAC-signed state, prepared statements, and input validation
06Available tools for SQL execution, table listing/description, and database management

使用案例

01Allowing AI assistants to perform data retrieval and analysis from MySQL databases
02Enabling AI-driven data manipulation (insert, update, delete) under human supervision
03Integrating MySQL database interactions into AI-powered development workflows for code generation and debugging