High performance MySQL MCP Server using mysql2
High performance MySQL MCP Server using mysql2
A lightweight Model Context Protocol (MCP) server that lets AI assistants inspect and query a MySQL database through a safe, structured tool interface.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| mysql_manual | Return the built-in manual. Use this first when you are unsure how to use MySQL tools or need help diagnosing an operation error |
| mysql_query | Execute a SQL query intended for data retrieval, such as SELECT |
| mysql_execute | Execute a data modification statement, such as INSERT, UPDATE, or DELETE |
| mysql_schema_execute | Execute schema modification statements in advanced mode, such as CREATE TABLE, ALTER TABLE, CREATE VIEW, CREATE TRIGGER, and CREATE INDEX |
| mysql_batch_execute | Execute one data modification statement repeatedly with multiple parameter sets |
| mysql_import_csv | Import a UTF-8 CSV file into a table using the header row as column names |
| mysql_export_csv | Export all rows from a table to a UTF-8 CSV file |
| explain_query | Run EXPLAIN for a SQL query and return the execution plan |
| list_tables | List base tables in the current database, including approximate row counts and comments |
| list_views | List views in the current database |
| describe_table | Show column information for one or more tables |
| describe_index | Show indexes for a table |
| list_triggers | List triggers in the current database |
| get_current_privileges | Show the current MySQL user and grants |
{
"mcpServers": {
"easy-mysql-mcp": {
"command": "npx",
"args": ["-y", "easy-mysql-mcp"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "YOUR USERNAME",
"MYSQL_PASSWORD": "YOUR PASSWORD",
"MYSQL_DATABASE": "YOUR DB NAME"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | Optional |
| MYSQL_PORT | Configuration value read at startup. | Optional |
| MYSQL_USER | Configuration value read at startup. | Optional |
| MYSQL_PASSWORD | Configuration value read at startup. | Optional |
| MYSQL_DATABASE | Configuration value read at startup. | Optional |
| MYSQL_LOG_PATH | Filesystem location the server is allowed to use. | Optional |
| TEST_HOST | Endpoint or connection string the server talks to. | Optional |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.