mcp-mysql-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-mysql-serverlist tables in the inventory database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP mysql
Overview
MCP mysql is a Model Context Protocol server for Cursor. It connects directly to MySQL/MariaDB.
Not a phpMyAdmin integration. phpMyAdmin does not expose an MCP API. This plugin talks to the database server itself — the same kind of backend phpMyAdmin can use — not to the phpMyAdmin web UI.
The repo ships as a local Cursor plugin (.cursor-plugin/plugin.json + mcp.json) and includes an agent skill at skills/mysql-best-practices/SKILL.md.
Author | |
Repository | |
License | |
Docs | |
Privacy | |
Support | |
Security |
Related MCP server: Mysql-mcp
Features
Area | Capabilities |
Discover | List databases and tables |
Schema | Describe columns, primary keys, and foreign keys |
Resources | Full schema via MCP resources (per DB / per table) |
DDL | Create/drop tables · add/drop columns |
DML | Select, insert, update, delete rows (write mode dependent) |
Security
Starts in read-only by default.
Mode | Behavior |
| Writes disabled |
| Read access only (recommended to start) |
| Allows |
Prefer a least-privilege MySQL user. Never commit real passwords to shared configs.
Requirements
Node.js 20+
MySQL or MariaDB reachable from this machine
Database credentials
Quick start
Full guides: docs/INSTALL.md · docs/es/INSTALL.md
npm install
npm run buildInstall as a local Cursor plugin (example path on Windows):
C:\Users\<YOUR_USER>\.cursor\plugins\local\mcp-mysql-serverThen enable MCP mysql in Cursor and set MYSQL_* + MCP_WRITE_MODE.
The plugin
mcp.jsonuses./dist/index.js(relative) to avoid Windows path bugs such asC:\c:\Users\....
Development
# watch / run from source
npm run dev
# production build
npm run build
npm startMCP tools
Read
Tool | Description |
| List available databases |
| List tables in a database |
| Column metadata for a table |
| Full schema for a database |
| Primary and foreign keys |
| Read rows with simple filters |
Write / schema
Tool | Description |
| Insert a row |
| Update rows (filters required) |
| Delete rows (filters + confirmation) |
| Create a table |
| Drop a table (confirmation required) |
| Add a column |
| Drop a column (confirmation required) |
MCP resources
URI | Returns |
| Available databases |
| Full schema (tables, columns, keys, relations) |
| Single-table detail |
Limitations
No free-form arbitrary SQL execution
Identifiers limited to alphanumeric characters and
_Filters support:
=,!=,>,>=,<,<=,LIKE,IN
Support, privacy & security
Topic | Document |
Docs index | |
End-user support | |
Contributing | |
Code of conduct | |
Privacy policy | |
Security reporting | |
License | LICENSE (MIT) |
Support is provided by the publisher via GitHub Issues (use the bug / feature templates). Cursor / Anysphere do not provide support for this third-party plugin.
Contributing
See docs/CONTRIBUTING.md for the issue process, development setup, and PR guidelines.
Documentation
All guides live under docs/ (English) and docs/es/ (Spanish).
Document | English | Español |
Docs index | ||
Installation | ||
Contributing | ||
Support | ||
Privacy | ||
Security | ||
Code of conduct | — |
This server cannot be deployed
Maintenance
Related MCP Connectors
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
- dataOAuthco.thinair
Read-only PostgreSQL, MySQL, SQL Server access via MCP — 24 dialect-aware hosted tools.
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceFacilitates interaction with a local MySQL database via a RESTful API, supporting database queries and real-time updates with integration for Cursor MCP services.4-
- AlicenseNot gradedqualityCmaintenanceA specialized MySQL MCP server for Cursor that enables users to query table structures, execute SQL, and generate database documentation. It features multiple security modes to ensure safe interaction while providing tools for database overviews and query caching.5MIT
- AlicenseAqualityDmaintenanceMCP server for SQLite — query databases, inspect schemas, explain queries, and export data from your IDE.578 npm3MIT
- AlicenseNot gradedqualityBmaintenanceRead-only MCP server for exploring WordPress MySQL/MariaDB databases. Provides schema inspection, relationship mapping, and safe SQL querying.6MIT