What limits are enforced on queries?
Maximum query length is 4096 characters, maximum result rows are 1000, and query timeout is 30 seconds.
@kevinwatt
Basic information
An MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLMs.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mysql-mcp": {
"command": "npx",
"args": [
"@kevinwatt/mysql-mcp"
]
}
}
}Execute read-only SELECT queries against the MySQL database. - Maximum query length: 4096 characters - Maximum result rows: 1000 - Query timeout: 30 seconds
Execute data modification queries (INSERT/UPDATE/DELETE). - Returns affected rows count and insert ID - Supports parameterized queries - Automatic transaction handling
List all tables in current database
Show table structure
MySQL MCP Server is an MCP server implementation that integrates with MySQL databases, providing secure database access capabilities for LLMs. It enables language models to execute SQL queries, list tables, describe schemas, and perform data modifications with transaction support.
Install via npm install -g @kevinwatt/mysql-mcp, then configure environment variables (MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB) and run with a compatible MCP host like Dive Desktop. Alternatively, start manually with npx @kevinwatt/mysql-mcp.
Maximum query length is 4096 characters, maximum result rows are 1000, and query timeout is 30 seconds.
Node.js 18+ and a running MySQL Server are required. The server must be used with an MCP‑compatible LLM service.
`mysql_execute` automatically wraps INSERT/UPDATE/DELETE in transactions, returning affected rows count and last insert ID.
Yes, the `mysql_query` tool enforces a read‑only transaction mode for all SELECT statements.
Connection is configured via environment variables for host, port, user, password, and database. No separate auth mechanism is mentioned beyond standard MySQL credentials.

Safety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
Comments