MySQL MCP server project
Connect MySQL to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MySQL MCP server project. The mysql mcp server is what makes that connection.
This is a Model Context Protocol (MCP) server that provides access to a MySQL database. It allows agent to execute SQL queries against a MySQL database.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
run_sql_query — Executes a read-only SQL query (SELECT statements only) against the MySQL databasecreate_table — Parameters: - query: The SQL CREATE TABLE query to executeinsert_data — Parameters: - query: The SQL INSERT INTO query to executeupdate_data — Example: json { "query": "UPDATE products SET price = 899.99 WHERE name = 'Laptop'" }delete_data — Parameters: - query: The SQL DELETE FROM query to executeSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
Configuration is passed through the environment: MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MySQL's toolset — run_sql_query, create_table, insert_data and 2 more — is a fair guide to whether it matches your workflow. It is maintained by michael7736; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| run_sql_query | Executes a read-only SQL query (SELECT statements only) against the MySQL database. |
| create_table | Parameters: - query: The SQL CREATE TABLE query to execute. |
| insert_data | Parameters: - query: The SQL INSERT INTO query to execute. |
| update_data | Example: json { "query": "UPDATE products SET price = 899.99 WHERE name = 'Laptop'" } |
| delete_data | Parameters: - query: The SQL DELETE FROM query to execute. |
| 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 |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
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.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.