describe_table
Show table structure
Run read-only SELECTs against a MySQL database under fixed length, row and time ceilings, with a separate tool for INSERT, UPDATE and DELETE.
LABSCO SUMMARY
mysql_query takes SELECT only and enforces 4096 characters, 1000 rows and 30 seconds, which puts a limit on what an exploratory question can cost; anything that changes data goes through mysql_execute, with params passed separately and the affected row count and insert ID coming back. list_tables and describe_table mean the model can read the schema instead of guessing column names, and the split between the two query tools is visible to whoever grants access.
A four-tool MySQL server that separates reading from writing and exposes enough schema to build a query against.
A reachable MySQL database and five environment variables: MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS and MYSQL_DB.
One command plus credentials — npx -y @kevinwatt/mysql-mcp, then supply credentials
USE CASES
Read the table list, get the structure of the ones that matter so the column names are right, then run the SELECT under the server's own length, row and time ceilings.
Confirm the column layout first, then run the INSERT, UPDATE or DELETE as a parameterised statement and read back the affected row count.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
describe_tableShow table structure
list_tablesList all tables in current database
mysql_executeExecute data modification queries (INSERT/UPDATE/DELETE).
mysql_queryExecute read-only SELECT queries against the MySQL database.
BEFORE YOU INSTALL
4 tools when we connected. mysql_query is SELECT-only and capped at 4096 characters, 1000 rows and 30 seconds; every write goes through mysql_execute.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @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_MYSQL_DB>"
}
}
}
}