Basic information
About MySQL MCP Server
# MySQL MCP Server
MySQL MCP Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by actstorms. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: database, mcp, mcp-mysql-server.
Setup
{
"mcpServers": {
"mcp-mysql-server-actstorms": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}
{
"mcpServers": {
"mcp-mysql-server-actstorms": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}
{
"servers": {
"mcp-mysql-server-actstorms": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}
MySQL MCP Server — by actstorms config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-mysql-server-actstorms": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}
MySQL MCP Server — by actstorms tools
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.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MySQL MCP Server?
MySQL MCP Server is a Model Context Protocol (MCP) server that enables MCP clients (such as AI assistants) to query and modify data in a MySQL database. It connects to a user-configured MySQL instance and exposes tools for executing SQL statements over standard input/output (stdio).
How to use MySQL MCP Server?
Install dependencies with npm install, build the TypeScript code with npm run build, then run mysql-server (if linked globally) or node build/index.js. Configure connection via environment variables: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE (required), and optionally MYSQL_PORT (default 3306). Set MYSQL_ALLOW_WRITE_OPS=true to enable write tools (insert, update, delete); otherwise only read-only queries are allowed.
Key features of MySQL MCP Server
- Connects to MySQL using standard connection parameters.
- Provides MCP tools for executing SQL queries and statements.
- Read-only queries (
SELECT,SHOW,DESCRIBE) via thequerytool. - Write operations (
INSERT,UPDATE,DELETE) via separate tools. - Write tools are gated by the
MYSQL_ALLOW_WRITE_OPSenvironment variable. - Communicates over standard input/output (stdio).
Use cases of MySQL MCP Server
- AI assistants executing read-only reports or analytics on a MySQL database.
- Automating data entry with INSERT statements through a chat interface.
- Managing small-scale updates or deletions in a database via natural language.
Frequently asked questions
1 What does MySQL MCP Server do?
It acts as a bridge between MCP clients and a MySQL database, allowing AI assistants to run SQL queries and optionally modify data.
2 What are the dependencies for running MySQL MCP Server?
Node.js and npm are required to install and build the server. It also needs access to a running MySQL server and the corresponding connection credentials.
3 Where does the data reside?
All data stays in the user’s configured MySQL database. The server does not store or cache data externally.
4 What transport does MySQL MCP Server use?
It uses standard input/output (stdio) for communication with MCP clients.
5 How is authentication handled for MySQL?
Authentication is provided via the required environment variables MYSQL_USER and MYSQL_PASSWORD. Write operations can be further restricted by the optional MYSQL_ALLOW_WRITE_OPS variable, which defaults to false.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In