$ timeahead.in
mcp/cano721mysql-mcp-server/install/claude-code

install @cano721/mysql-mcp-server on Claude Code

Requires the runtime declared in the upstream repo — check the README before running. Claude Code persists MCP servers via its CLI — no config file to edit, just run the command below once. Paste the config below, then follow the reload step to register @cano721/mysql-mcp-server.

run this in your terminal
cli: Run the command below in your terminal — Claude Code persists it for you.
claude mcp add mysql --env MYSQL_HOST=your-mysql-host --env MYSQL_PORT=3306 --env MYSQL_USER=your-mysql-user --env MYSQL_PASSWORD=your-mysql-password --env MYSQL_DATABASE=your-default-database --env MYSQL_CONNECTION_LIMIT=1 --env MYSQL_QUERY_TIMEOUT=60000 --env MYSQL_QUEUE_LIMIT=0 --env MYSQL_CONNECT_TIMEOUT=10000 --env MYSQL_IDLE_TIMEOUT=60000 --env MYSQL_MAX_IDLE=10 --env MYSQL_ALLOW_EXPLAIN=true --env MYSQL_ALLOW_ANALYZE=true -- npx @cano721/mysql-mcp-server@latest
then: No reload needed — the next session picks up the new server.
other clients
Claude DesktopCursorWindsurfVS Code (Copilot)
← back to @cano721/mysql-mcp-server