-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Chris edited this page Jun 6, 2026
·
7 revisions
- Node.js 24+ - Required for running the MCP server
- MySQL 5.7+ or 8.0+ - Server to connect to
- pnpm - Package manager
# Install globally
pnpm add -g @neverinfamous/mysql-mcp
# Run
mysql-mcp --transport stdio --mysql mysql://user:password@localhost:3306/database
# Or use npx without installing
npx @neverinfamous/mysql-mcp --transport stdio --mysql mysql://user:password@localhost:3306/database# Clone the repository
git clone https://github.com/neverinfamous/mysql-mcp.git
# Navigate to directory
cd mysql-mcp
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run the server
node dist/cli.js --transport stdio --mysql mysql://user:password@localhost:3306/databasedocker run -i --rm writenotenow/mysql-mcp:latest \
--transport stdio \
--mysql mysql://user:password@host.docker.internal:3306/databaseFor Docker setup details, see the Docker Hub page.
Test the server responds to MCP initialization:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"test","version":"0.1.0"}}}' | node dist/cli.js --transport stdio --mysql mysql://user:pass@localhost/db- Configuration - Configure MCP clients and environment variables
- Tool-Filtering - Reduce tool count for IDE limits