X

Xianzong85 Mysql Server MCP Server

A TypeScript - based MySQL database MCP service that provides SQL query execution capabilities and configures database connections through environment variables
2 points
15

What is the MySQL MCP Server?

The MySQL MCP Server is a middleware service developed based on TypeScript. It provides MySQL database access capabilities for applications through the Model Context Protocol (MCP). It acts as a bridge between the database and the application, simplifying database operations.

How to use the MySQL MCP Server?

You need to configure the database connection information and then send SQL query requests through the MCP protocol. The server will process the queries and return the results.

Use cases

Suitable for applications that require secure and unified access to MySQL databases, especially development projects based on the Claude Desktop platform.

Main features

SQL query toolProvides the ability to execute any SQL query, supporting all MySQL operations such as SELECT, INSERT, UPDATE, etc.
Secure connectionConfigure database credentials through environment variables to ensure the security of connection information.

Advantages and limitations

Advantages
Simplify the database access process
Unify interface specifications for easy integration
Support standard SQL syntax
Limitations
Only support MySQL databases
Require pre - configuration of connection information
Relatively complex to debug

How to use

Install dependencies
Ensure that the Node.js environment is installed, and then install project dependencies.
Configure environment variables
Set MySQL connection information.
Build the server
Compile TypeScript code.
Add to Claude Desktop
Add server settings to the configuration file.

Usage examples

Query user dataGet specific user information from the users table.
Add a new productInsert new product data into the products table.

Frequently Asked Questions

How to debug server issues?
Which MySQL versions does the server support?
How to ensure connection security?

Related resources

MCP protocol documentation
Official documentation of the Model Context Protocol
MySQL official documentation
Official reference documentation for the MySQL database
MCP Inspector tool
A visualization tool for debugging MCP servers
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
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
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#
565
5 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
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
283
4.5 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase