MySQL MCP Server
@wuwen1030
About MySQL MCP Server
A MySQL implementation of the Model Context Protocol (MCP) server. This server allows AI models to interact with MySQL databases through a standardized interface.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mysql": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mysql-mcp-server/dist/index.js"
],
"env": {
"MYSQL_HOST": "",
"MYSQL_PORT": "",
"MYSQL_USER": "",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": ""
}
}
}
}Tools
No tools detected
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?
A MySQL implementation of the Model Context Protocol (MCP) server that allows AI models to interact with MySQL databases through a standardized read-only interface.
How to use MySQL MCP Server?
Install with npm install and build with npm run build, then configure the server in your Claude Desktop app's claude_desktop_config.json by providing the absolute path to the built index.js and setting environment variables for MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE.
Key features of MySQL MCP Server
- List available database tables
- Get table schemas
- Execute read-only SQL queries
- Safe transaction handling with automatic rollback
Use cases of MySQL MCP Server
- Explore a MySQL database schema through an AI assistant
- Run read-only queries to retrieve data without risk of modification
- Enable AI models to answer questions backed by live database content
FAQ from MySQL MCP Server
What dependencies or runtime does MySQL MCP Server require?
Node.js is required. After cloning, run npm install and npm run build to compile the server.
How is authentication handled?
Authentication is configured via environment variables (MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE) passed to the server process.
Are write operations supported?
No. The server intentionally only supports read-only SQL queries and uses safe transaction handling with automatic rollback.
Where does the data live?
Data remains in the user's own MySQL database. The server does not store or persist any data externally.
What transport does the server use?
The server communicates over stdio, as configured in the Claude Desktop app's claude_desktop_config.json using the command and args fields.
Frequently asked questions
What dependencies or runtime does MySQL MCP Server require?
Node.js is required. After cloning, run `npm install` and `npm run build` to compile the server.
How is authentication handled?
Authentication is configured via environment variables (`MYSQL_HOST`, `MYSQL_PORT`, `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_DATABASE`) passed to the server process.
Are write operations supported?
No. The server intentionally only supports read-only SQL queries and uses safe transaction handling with automatic rollback.
Where does the data live?
Data remains in the user's own MySQL database. The server does not store or persist any data externally.
What transport does the server use?
The server communicates over stdio, as configured in the Claude Desktop app's `claude_desktop_config.json` using the `command` and `args` fields.
Basic information
More Databases MCP servers

nuzur
nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
Chroma MCP Server
chroma-coreA Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma
ClickHouse MCP Server
ClickHouseConnect ClickHouse to your AI assistants.
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
Elasticsearch/OpenSearch MCP Server
cr7258A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
Comments