mcp-mysql-server
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ismaelrodimb/mcp-mysql-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server