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. License: MIT. Source code is hosted on github.com. Related topics: mcp-server, mysql, nodejs.
Setup
{
"mcpServers": {
"mcp_server_myqsl": {
"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_myqsl": {
"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_myqsl": {
"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/benborla_mcp-server-mysql) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_server_myqsl": {
"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/benborla_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?
MCP Server for MySQL based on NodeJS is 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.
How to use MCP Server for MySQL based on NodeJS?
Add the server configuration to the mcpServers section of your Claude Desktop configuration file (claude_desktop_config.json), using npx with environment variables (MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB). The mysql_query tool can then be invoked for read‑only queries.
Key features of MCP Server for MySQL based on NodeJS
- Read-only access to MySQL databases
- Inspect database schemas automatically
- Execute custom SQL queries via the
mysql_querytool - All queries run within a READ ONLY transaction
- Exposes JSON schema information for each table
- Table schemas discovered from database metadata
Use cases of MCP Server for MySQL based on NodeJS
- LLM-driven database schema exploration
- Running read-only analysis queries against a MySQL database
- Automating data retrieval for reporting or summarization
Frequently asked questions
1 What does the server do?
It provides a Model Context Protocol interface that gives an LLM read-only access to a MySQL database, allowing schema inspection and safe query execution.
2 How do I configure the database connection?
Set the environment variables MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, and MYSQL_DB in the server configuration inside claude_desktop_config.json.
3 Is the server truly read-only?
Yes. All SQL queries are executed within a READ ONLY transaction, preventing any write operations.
4 What resources does the server expose?
It exposes JSON schema information for each table, including column names and data types, automatically discovered from the database metadata.
5 What are the runtime requirements?
The server requires Node.js and npx. If the server fails to connect, you may need to explicitly set the PATH environment variable in the configuration to include the location of Node.js binaries.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In