M

Mysql Server MCP Server

An MCP server based on TypeScript, providing a MySQL database query tool, supporting database connection configuration through environment variables and execution of SQL queries.
2 points
12

What is MySQL MCP Server?

This is an MCP protocol server developed based on TypeScript, specifically designed to connect to and operate MySQL databases. As an intermediate layer, it enables users to securely execute SQL queries through simple commands without directly operating the database.

How to use MySQL MCP Server?

You need to configure the database connection information first, and then send query requests through applications that support the MCP protocol, such as Claude Desktop. The server will process the requests and return the query results.

Use cases

Suitable for scenarios where secure access to MySQL databases from AI assistants or applications is required, such as data query, report generation, or simple data modification operations.

Main features

SQL query toolProvides a secure SQL query execution function, supporting standard SQL statements such as SELECT, INSERT, and UPDATE
Connection managementConfigure database connections through environment variables to ensure security and flexibility

Advantages and limitations

Advantages
Simplify the database access process without directly operating the database
Provide a standardized interface through the MCP protocol
Simple configuration, only need to set environment variables to connect to the database
Limitations
Currently only supports MySQL databases
Requires pre - configuration of database connection information
Relatively complex to debug, requiring additional tools

How to use

Install dependencies
Ensure that the Node.js environment is installed, and then run the following command to install the required dependencies
Configure environment variables
Set the MySQL database connection information
Start the server
Run the following command to start the MCP server
Configure Claude Desktop
Add MCP server settings to the Claude Desktop configuration file

Usage examples

Query user informationGet the basic information of all users in the user table
Update product pricesIncrease the price of specific products by 10%

Frequently Asked Questions

How to ensure the security of database connections?
Which SQL statements are supported?
How to debug query issues?

Related resources

Official documentation of the MCP protocol
Official technical documentation of the Model Context Protocol
Official documentation of MySQL
Official reference documentation of the MySQL database
MCP Inspector tool
A tool for debugging MCP server communication
Installation
Copy the following command to your Client for configuration
{
  "mcpServers": {
    "mysql": {
      "command": "/path/to/mysql-server/build/index.js",
      "env": {
        "MYSQL_HOST": "your-mysql-host",
        "MYSQL_USER": "your-mysql-user",
        "MYSQL_PASSWORD": "your-mysql-password",
        "MYSQL_DATABASE": "your-mysql-database"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.
Featured MCP Services
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
97
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
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
150
4.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
838
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#
573
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 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
289
4.5 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase