MySQL MCP
MCP server for one MySQL database: schema, read-only queries and guarded writes.
Documentation & Preview
{ "mcpServers": { "mcp-mcp-mysql-client-1cef5679a5dc727cd860": { "command": "npx", "args": [ "-y", "--package", "mcp-mysql-client@1.1.1", "mcp-mysql-client" ], "env": { "MYSQL_HOST": "${ENV_MYSQL_HOST}", "MYSQL_PORT": "${ENV_MYSQL_PORT}", "MYSQL_USER": "${ENV_MYSQL_USER}", "MYSQL_PASS": "${ENV_MYSQL_PASS}", "MYSQL_DB": "${ENV_MYSQL_DB}", "MYSQL_SSL": "${ENV_MYSQL_SSL}", "MYSQL_SSL_CA": "${ENV_MYSQL_SSL_CA}", "ALLOW_INSERT_OPERATION": "${ENV_ALLOW_INSERT_OPERATION}", "ALLOW_UPDATE_OPERATION": "${ENV_ALLOW_UPDATE_OPERATION}", "ALLOW_DELETE_OPERATION": "${ENV_ALLOW_DELETE_OPERATION}", "MYSQL_MAX_ROWS": "${ENV_MYSQL_MAX_ROWS}", "MYSQL_TIMEOUT_MS": "${ENV_MYSQL_TIMEOUT_MS}" } } }, "setup": { "fields": [ { "id": "ENV_MYSQL_HOST", "label": "MYSQL_HOST", "description": "Database host.", "required": false, "secret": false, "default": "127.0.0.1" }, { "id": "ENV_MYSQL_PORT", "label": "MYSQL_PORT", "description": "Database port.", "required": false, "secret": false, "default": "3306" }, { "id": "ENV_MYSQL_USER", "label": "MYSQL_USER", "description": "MySQL user. Use one with the least privileges the task needs, never root.", "required": true, "secret": false, "default": "" }, { "id": "ENV_MYSQL_PASS", "label": "MYSQL_PASS", "description": "Password for that user. Treat it as a secret; MYSQL_PASS_FILE reads it from a file instead.", "required": false, "secret": true, "default": "" }, { "id": "ENV_MYSQL_DB", "label": "MYSQL_DB", "description": "The one database this server is bound to. No tool can leave it.", "required": true, "secret": false, "default": "" }, { "id": "ENV_MYSQL_SSL", "label": "MYSQL_SSL", "description": "Require a TLS connection to the server.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_MYSQL_SSL_CA", "label": "MYSQL_SSL_CA", "description": "Path to the CA bundle verifying the server certificate; implies MYSQL_SSL.", "required": false, "secret": false, "default": "" }, { "id": "ENV_ALLOW_INSERT_OPERATION", "label": "ALLOW_INSERT_OPERATION", "description": "Allow INSERT statements through the execute tool.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_ALLOW_UPDATE_OPERATION", "label": "ALLOW_UPDATE_OPERATION", "description": "Allow UPDATE statements through the execute tool.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_ALLOW_DELETE_OPERATION", "label": "ALLOW_DELETE_OPERATION", "description": "Allow DELETE statements through the execute tool.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_MYSQL_MAX_ROWS", "label": "MYSQL_MAX_ROWS", "description": "Row cap for one read; the result is marked truncated when it is hit.", "required": false, "secret": false, "default": "1000" }, { "id": "ENV_MYSQL_TIMEOUT_MS", "label": "MYSQL_TIMEOUT_MS", "description": "Statement timeout in milliseconds; the connection is dropped on expiry.", "required": false, "secret": false, "default": "30000" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.gistrec/mcp-mysql-client", "registryVersion": "1.1.1", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.gistrec%2Fmcp-mysql-client/versions/1.1.1", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "mcp-mysql-client", "version": "1.1.1", "integrity": "sha512-JRkfdDxhPjK7oCeilMH48oyvpHwn1oCwF5NwVzdglP7f67WkkbtYVjz9FnITEns2PPOfhhuysPx6fBsXud+vZQ==", "registryNameMatched": "io.github.gistrec/mcp-mysql-client", "checkedAt": "2026-11-05T15:12:56.180Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }