MySQL Database Access
STDIOMCP server implementation integrating with MySQL databases, providing secure database access for LLMs.
MCP server implementation integrating with MySQL databases, providing secure database access for LLMs.
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