Basic information
About MCP Server for MySQL based on NodeJS
Mirror of
MCP Server for MySQL based on NodeJS is a MCP server in the Databases category listed in the AddMCP.net directory, published by MCP-Mirror. Supported transport: stdio. Runtime: node. License: MIT license. Source code is hosted on github.com. Related topics: mcp-server, mysql, nodejs.
Setup
{
"mcpServers": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "db_name"
}
}
}
}
{
"mcpServers": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "db_name"
}
}
}
}
{
"servers": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "db_name"
}
}
}
}
MCP Server for MySQL based on NodeJS (MCP-Mirror/hkk101_mcp-server-mysql) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_server_mysql": {
"command": "npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "db_name"
}
}
}
}
MCP Server for MySQL based on NodeJS (MCP-Mirror/hkk101_mcp-server-mysql) 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 MCP Server for MySQL based on NodeJS?
A Model Context Protocol server that provides read-only access to MySQL databases. It enables LLMs to inspect database schemas and execute read-only SQL queries. This server is designed for developers using MCP clients like Claude Desktop.
How to use MCP Server for MySQL based on NodeJS?
Add the provided configuration to the mcpServers section of your claude_desktop_config.json. Set environment variables MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, and MYSQL_DB. If npx is not in your default PATH, specify the full binary path and include PATH in the environment.
Key features of MCP Server for MySQL based on NodeJS
- Read-only SQL query execution via the
mysql_querytool - All queries run within a READ ONLY transaction
- Automatic discovery of table schemas from database metadata
- JSON schema output including column names and data types
- Simple configuration for Claude Desktop integration
Use cases of MCP Server for MySQL based on NodeJS
- Allowing an LLM to explore a MySQL database schema before generating queries
- Enabling AI assistants to answer questions by querying a MySQL database
- Providing read-only data access for natural language to SQL workflows
- Automating database inspection and documentation
Frequently asked questions
1 Is this server read-only?
Yes. All queries are executed within a READ ONLY transaction. No write operations are supported.
2 What environment variables are required?
MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, and MYSQL_DB must be set. MYSQL_DB can be left blank to retrieve all databases.
3 How do I troubleshoot connection errors?
If you see "Could not connect to MCP server", you may need to explicitly set the full path to the npx binary and include the PATH environment variable in the configuration.
4 What license does this server use?
This MCP server is licensed under the MIT License.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In