MySQL MCP server: browse schema, query, CRUD. Delete/drop gated by user approval.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MySQL Ops MCP.
list_databasesList all databases
list_tablesList tables in a database
describe_tableShow table columns and types
get_table_infoFull table details: columns, indexes, DDL, stats
queryRun a SELECT query
create_tableCreate a table (CREATE TABLE only)
English | ็ฎไฝไธญๆ
A MySQL database MCP Server. Let AI tools like Claude Code / Cursor / Codex talk to your MySQL databases in natural language โ browse databases and tables, inspect schemas, run queries, and perform CRUD operations, with destructive operations (DELETE / DROP) gated behind explicit user approval.
SELECT queries against any databasedelete_data and drop_table always require explicit user confirmation in the clientnpx, configured entirely through environment variablesRequires Node.js 18+. No clone or build needed โ npx fetches and runs the published npm package on first use (see the config below).
To build from source instead (e.g. for development):
Build output goes to dist/; the entry point is dist/index.js.
In each project where you want to use this tool, create (or append to) .mcp.json:
If you built from source, point the command at the local build instead: "command": "node", "args": ["/absolute/path/to/mysql-ops-mcp/dist/index.js"].
| Variable | Required | Description |
|---|---|---|
DB_HOST | No | MySQL host, default localhost |
DB_PORT | No | MySQL port, default 3306 |
DB_USER | No | MySQL user, default root |
DB_PASSWORD | No | MySQL password |
DB_DATABASE | No | Default database; if omitted, pass database per tool call |
Once configured, just ask in natural language in your AI tool:
Destructive operations (delete_data, drop_table) are always confirmed by the MCP client before execution โ nothing irreversible happens silently.
| Tool | Description |
|---|---|
list_databases | List all databases |
list_tables | List tables in a database |
describe_table | Show table columns and types |
get_table_info | Full table details: columns, indexes, DDL, stats |
query | Run a SELECT query |
create_table | Create a table (CREATE TABLE only) |
insert | Insert rows (INSERT only) |
update | Update rows (UPDATE only) |
delete_data | Delete rows โ requires user approval |
drop_table | Drop a table โ requires user approval |
execute_sql | Run any custom SQL statement |
delete_data and drop_table are gated by the MCP client's tool-call confirmation โ approve or reject each one.query rejects anything but SELECT).root in production โ create a MySQL user scoped to the databases the AI may touch..env / .mcp.json with real passwords must stay out of version control (.gitignore already covers .env).After configuring .env (copy from env.example), you can verify connectivity before wiring up the client:
MIT ยฉ 2026 mysql-ops-mcp
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mysql-ops-mcp)<a href="https://allmcps.com/mcp/mysql-ops-mcp"><img src="https://allmcps.com/api/badge/mysql-ops-mcp?style=directory" alt="MySQL Ops MCP on AllMCPs" /></a>