MCP server that provides direct access to MySQL databases
MCP server that provides direct access to MySQL databases. The mysql mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 9 defined tools rather than through you.
A powerful MCP server that provides direct access to MySQL databases. This server enables AI agents to interact with MySQL databases, execute SQL queries, and manage database content through a simple interface.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
Everything the assistant can do here goes through one of these:
create_note — Create new text notes in the databaselist_tables — List all tables in the connected databasecount_tables — Get the total number of tables in the databasesearch_tables — Search for tables using LIKE patterndescribe_table — Get the structure of a specific tableexecute_sql — Execute custom SQL queriesResources — The Resources tool exposed by this serverTools — The Tools tool exposed by this serverDebugging — Use the MCP Inspector to debug the server: bash npm run inspectorYou will need 4 environment variables: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MySQL's toolset — create_note, list_tables, count_tables and 6 more — is a fair guide to whether it matches your workflow. It is maintained by LeonMelamud; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| create_note | Create new text notes in the database |
| list_tables | List all tables in the connected database |
| count_tables | Get the total number of tables in the database |
| search_tables | Search for tables using LIKE pattern |
| describe_table | Get the structure of a specific table |
| execute_sql | Execute custom SQL queries |
| Resources | The Resources tool exposed by this server. |
| Tools | The Tools tool exposed by this server. |
| Debugging | Use the MCP Inspector to debug the server: bash npm run inspector |
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | 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.