Are you the author? Sign in to claim
An MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLM
An MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLMs.
npm install -g @kevinwatt/mysql-mcp
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mysql-mcp"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "your_database"
}
}
}
}
mysql_query
sql (string): SQL SELECT query to executemysql_execute
sql (string): SQL statement (INSERT/UPDATE/DELETE)params (array, optional): Parameters for the SQL statementlist_tables
describe_table
table (string): Table name to describeAsk your LLM to:
"Show me all tables in the database"
"Describe the structure of users table"
"Select all active users from the database"
"Insert a new record into orders table"
If needed, start the server manually:
npx @kevinwatt/mysql-mcp
MIT
Dewei Yen
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official MongoDB integration — query collections, run aggregations, inspect schemas
Secure MCP server for MySQL database interaction, queries, and schema management
Run Claude Code as an MCP server so any agent can delegate coding tasks to it