MCP Server for MySQL database schema inspection and interaction. Current stable version is 1.0.2, released with weekly cadence. It provides tools for listing tables, describing table structure, retrieving full schema, generating TypeScript types, and executing read-only queries. Differentiators include native MCP protocol support, simple environment variable configuration, and integration with Codex, Claude Code, Cursor, VS Code, Windsurf, and OpenCode. It is a lightweight alternative to Prisma or TypeORM for AI-assisted database exploration.
npm install pmlrjyrk-mysql-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run the MySQL MCP server with environment variables set; server starts and listens on stdio for MCP commands.
Set MYSQL_PASSWORD environment variable or ensure mysql connection without password if allowed.
Ensure unique transport configuration when running multiple MCP servers.
Review source code or pin version to avoid supply chain risks.
Use npx -y pmlrjyrk-mysql-mcp to auto-install dependencies.
Set MYSQL_HOST to the correct hostname or IP of your MySQL server.
Verify MYSQL_USER and MYSQL_PASSWORD environment variables are correct.
Set MYSQL_DATABASE environment variable to your database name.