easy-mysql-admin-mcp
Provides tools for managing MySQL databases, including listing, creating, dropping databases; creating, altering, and dropping users; granting and revoking privileges; with safety tokens for destructive actions.
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., "@easy-mysql-admin-mcplist databases"
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.
easy-mysql-admin-mcp
High-privilege MySQL admin MCP server for database and user/grant management.
Features
List, create, and inspect databases
List, create, and update users
Grant and revoke privileges at database scope
Protect destructive actions with short-lived confirmation tokens
Related MCP server: mysql-mcp-server
Available Tools
Tool | Description |
| List databases in the current MySQL instance |
| Create a database |
| Inspect database charset and collation settings |
| Request database deletion and return a confirmation token |
| List MySQL users |
| Create a MySQL user |
| Change a MySQL user password |
| Grant database privileges to a user |
| Revoke database privileges from a user |
| Show grants for a user |
| Request user deletion and return a confirmation token |
| Confirm and execute a destructive action token |
Safety
No raw SQL passthrough
No table, view, index, or trigger management
DROP DATABASEandDROP USERrequiremysql_confirm_taskConfirmation tokens are random, single-use, and expire quickly
Configuration
Use environment variables, matching the rest of the easy-*-mcp family.
Variable | Required | Default | Description |
| Yes | - | MySQL host name or IP address |
| No |
| MySQL port |
| Yes | - | MySQL user name |
| Yes | - | MySQL password |
| Yes | - | Default database/schema used for the admin connection |
| No |
| Maximum number of active pool connections |
| No |
| Maximum number of idle pool connections |
| No |
| Idle connection timeout in milliseconds |
| No |
| Maximum queued connection requests |
| No |
| Whether the pool waits when all connections are busy |
| No |
| Whether TCP keep-alive is enabled |
| No |
| Initial TCP keep-alive delay in milliseconds |
| No |
| Confirmation token lifetime in seconds |
Example
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=mysql
MYSQL_ADMIN_TOKEN_TTL_SECONDS=120Claude Desktop Example
{
"mcpServers": {
"easy-mysql-admin-mcp": {
"command": "npx",
"args": ["-y", "easy-mysql-admin-mcp"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "mysql",
"MYSQL_ADMIN_TOKEN_TTL_SECONDS": "120"
}
}
}
}Codex config.toml Example
[mcp_servers.easy-mysql-admin-mcp]
args = ["-y", "easy-mysql-admin-mcp"]
command = "npx"
enabled = true
[mcp_servers.easy-mysql-admin-mcp.env]
MYSQL_HOST = "localhost"
MYSQL_PORT = "3306"
MYSQL_USER = "root"
MYSQL_PASSWORD = "your_password"
MYSQL_DATABASE = "mysql"
MYSQL_ADMIN_TOKEN_TTL_SECONDS = "120"OpenCode opencode.jsonc Example
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"easy-mysql-admin-mcp": {
"type": "local",
"command": ["npx", "-y", "easy-mysql-admin-mcp"],
"enabled": true,
"environment": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "mysql",
"MYSQL_ADMIN_TOKEN_TTL_SECONDS": "120",
},
},
},
}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
- 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/chenkumi/easy-mysql-admin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server