What are the runtime requirements?
Node.js 20.0.0 or higher and MySQL 5.7+ or MariaDB server are required.
@yuki777
Basic information
No overview available yet
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mysql-mcp-server-yuki777": {
"command": "npx",
"args": [
"-y",
"https://github.com/yuki777/mysql-mcp-server",
"--host",
"127.0.0.1",
"--port",
"13306",
"--user",
"root"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
MySQL MCP Server enables large language models (LLMs) to directly execute SQL queries on a local MySQL or MariaDB database by implementing the Model Context Protocol (MCP). It is built for developers and AI applications that need LLMs to safely interact with relational databases.
Run it via npx with database connection options, or use a JSON config file. The server starts in stdio mode and accepts tool calls for connecting, querying, and managing connections. Example: npx -y https://github.com/yuki777/mysql-mcp-server --host 127.0.0.1 --port 13306 --user root. After starting, LLMs invoke MCP tools like execute_query and connect_database.
Node.js 20.0.0 or higher and MySQL 5.7+ or MariaDB server are required.
Profiles are stored locally in `~/.mysql-mcp-connections.json` in the user’s home directory.
No, it uses stdio communication by default, avoiding port conflicts and improving security. An optional HTTP server port can be configured but is not used in stdio mode.
Yes, the server separates startup from database connection. You can use `connect_database` or `connect_by_profile` tools to switch between databases at runtime.
Use the `--query-timeout` (default 30000 ms) and `--max-results` (default 1000 rows) command‑line options or set them in the JSON config file.

Model Context Protocol Servers

Access millions of official legal and regulatory source documents from 155+ jurisdictions via MCP. Lawstronaut supports AI agents with structured legal research, legal data, laws, regulations, cases, guidance, official s
An official Qdrant Model Context Protocol (MCP) server implementation
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.
Comments