MySQL (security-first) MCP Server
by kurok1io.github.Kurok1/mcp-server-mysqlv2.1.0
Security-first MySQL MCP server with AST validation, table whitelist, schema resources, and audit.
context tax
queued
security
queued
cold start
queued
freshness
Active25d ago
Install MySQL (security-first) MCP server
Install in Claude Code
claude mcp add mysql-kurok1 -e MYSQL_MCP_PASSWORD='<mysql-mcp-password>' -- docker run -i --rm -e MYSQL_MCP_PASSWORD ghcr.io/kurok1/mcp-server-mysql:2.1.0 --config /data/config.yamlInstall in Cursor
{
"mcpServers": {
"mysql-kurok1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MYSQL_MCP_PASSWORD",
"ghcr.io/kurok1/mcp-server-mysql:2.1.0",
"--config",
"/data/config.yaml"
],
"env": {
"MYSQL_MCP_PASSWORD": "<mysql-mcp-password>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"mysql-kurok1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MYSQL_MCP_PASSWORD",
"ghcr.io/kurok1/mcp-server-mysql:2.1.0",
"--config",
"/data/config.yaml"
],
"env": {
"MYSQL_MCP_PASSWORD": "<mysql-mcp-password>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"mysql-kurok1": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MYSQL_MCP_PASSWORD",
"ghcr.io/kurok1/mcp-server-mysql:2.1.0",
"--config",
"/data/config.yaml"
],
"env": {
"MYSQL_MCP_PASSWORD": "<mysql-mcp-password>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"mysql-kurok1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MYSQL_MCP_PASSWORD",
"ghcr.io/kurok1/mcp-server-mysql:2.1.0",
"--config",
"/data/config.yaml"
],
"env": {
"MYSQL_MCP_PASSWORD": "<mysql-mcp-password>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MYSQL_MCP_PASSWORD | — | yes | MySQL password, referenced from config.yaml as ${MYSQL_MCP_PASSWORD} |
Freshness
Active — last maintenance signal 25d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-15 · 25d ago · GitHub
Latest release
2026-09-15 · 25d ago · GitHub · v2.1.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-15 · 25d ago · official registry · v2.1.0
FAQ
›How do I install the MySQL (security-first) MCP server in Claude Code?
Run: claude mcp add mysql-kurok1 -e MYSQL_MCP_PASSWORD='<mysql-mcp-password>' -- docker run -i --rm -e MYSQL_MCP_PASSWORD ghcr.io/kurok1/mcp-server-mysql:2.1.0 --config /data/config.yaml. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does MySQL (security-first) require an API key?
Yes. It expects MYSQL_MCP_PASSWORD, of which 1 is a secret.
›Can I use MySQL (security-first) as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is MySQL (security-first) in the official MCP registry?
Yes, as io.github.Kurok1/mcp-server-mysql.
Alternatives to MySQL (security-first)
Other database MCP servers.