D

Dpflucas Mysql MCP Server

MySQL database read - only access MCP service, providing functions such as database listing, table structure query, and secure SQL query
2 points
10

What is the MySQL Database Access MCP Server?

The MySQL Database Access MCP Server is a database reading tool designed for non - technical users. It allows you to easily access data in the MySQL database through simple commands.

How to use the MySQL Database Access MCP Server?

Just set the environment variables and run the command to start using it. You can perform various query operations, such as listing databases, tables, and executing SQL queries.

Applicable Scenarios

Suitable for developers, analysts, and business personnel who need to access the MySQL database regularly, especially those who want to quickly obtain data without in - depth knowledge of database technology.

Main Features

Read - only AccessSupports read - only SQL operations such as SELECT, SHOW, DESCRIBE, and EXPLAIN to ensure data security.
SQL Injection ProtectionBuilt - in verification mechanism to prevent malicious input and ensure system stability and security.
Query Timeout ControlAutomatically terminates long - running queries to optimize resource utilization.
ResultSet LimitLimits the amount of returned data to avoid excessive memory consumption.

Advantages and Limitations

Advantages
Easy to install and configure
Supports multiple database operations
Powerful security measures
Limitations
Limited to read - only access, unable to modify the database
Limited support for complex queries

How to Use

Install the MCP Server
Install the MCP Server globally or locally via NPM.
Configure Environment Variables
Set the MySQL connection information (such as hostname, port, username, and password).
Start the MCP Server
Run the MCP Server to connect to the MySQL database.

Usage Examples

List all databasesUse the list_databases tool to view all databases on the MySQL server.
Query table dataUse the execute_query tool to query data from a specific table.

Frequently Asked Questions

How to install the MCP Server?
Does the MCP Server support modifying the database?
How to solve the connection failure problem?

Related Resources

Official Documentation
Detailed guide on using the MCP Server.
GitHub Repository
Source code of the open - source project and contribution guidelines.
Tutorial Video
Quick - start video.
Installation
Copy the following command to your Client for configuration
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["mysql-mcp-server"],
      "env": {
        "MYSQL_HOST": "your-mysql-host",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your-mysql-user",
        "MYSQL_PASSWORD": "your-mysql-password",
        "MYSQL_DATABASE": "your-default-database"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

{
  "mcpServers": {
    "mysql": {
      "command": "node",
      "args": ["/path/to/mysql-mcp-server/build/index.js"],
      "env": {
        "MYSQL_HOST": "your-mysql-host",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your-mysql-user",
        "MYSQL_PASSWORD": "your-mysql-password",
        "MYSQL_DATABASE": "your-default-database"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.
Featured MCP Services
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
141
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
86
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
830
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
567
5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
754
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
284
4.5 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase