Connects MCP clients to MySQL for parameterized queries, data changes, table listing, and schema inspection.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Mysql Server.
The f4ww4z/mcp-mysql-server MCP server gives AI models a standardized MCP interface for working with a MySQL database. It supports establishing a database connection, reading data with SELECT statements, changing data with INSERT, UPDATE, or DELETE statements, listing tables, and inspecting an individual table's structure.
The project is implemented for Node.js and includes TypeScript support. It is intended for use from MCP clients such as Claude Desktop, with configuration examples also provided for Codex on macOS and Windows.
The client starts the server with npx and supplies database connection details. Configuration can use a single MySQL URI, such as a connection string containing the user, password, host, port, and database name. Alternatively, the settings can be supplied through MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE environment variables.
After the server has access to the database, the client can call these tools:
connect_db establishes a connection using supplied credentials.query runs SELECT statements and accepts optional prepared-statement parameters.execute runs INSERT, UPDATE, or DELETE statements with optional parameters.list_tables returns the tables in the connected database.describe_table reports the structure of a named table.The query and execute examples use ? placeholders with a separate params array. The project describes automatic connection management and cleanup, along with validation and error messages for connection failures, invalid queries, missing parameters, and database errors.
Install or run the package with the Node package runner:
An MCP configuration can pass the connection URI as an argument:
The alternative environment-based configuration passes the package without a URI and defines the four MySQL variables in the MCP server's env section. Replace the example credentials and database values with the target database's actual settings. The README also documents this package in Claude Desktop configuration and in Codex configuration files.
The f4ww4z/mcp-mysql-server MCP server provides database access at the level of explicit MCP tool calls rather than a separate application interface. Its documented capabilities include:
Prepared statements are documented as a measure against SQL injection. Connections are automatically closed when finished, according to the project documentation.
The supplied material documents MySQL support only. It does not specify support for other database engines, migrations, transactions, stored procedures, or administrative operations. The execute tool is described for INSERT, UPDATE, and DELETE statements; other SQL statement types should not be assumed to be supported.
Database credentials and connection details must be supplied by the operator. The README shows both URI-based and environment-variable-based configuration, but it does not describe a built-in credential store or OAuth flow. The project is released under the MIT license.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/f4ww4z-mcp-mysql-server)<a href="https://allmcps.com/mcp/f4ww4z-mcp-mysql-server"><img src="https://allmcps.com/api/badge/f4ww4z-mcp-mysql-server?style=directory" alt="MCP Mysql Server on AllMCPs" /></a>