Overview of MCP Server for MySQL Databases
The MCP Server is a robust solution designed to provide direct access to MySQL databases through an intuitive interface. This server is a vital component for AI agents, enabling them to execute SQL queries and manage database content efficiently. By leveraging the MCP Server, businesses can streamline their operations, enhance data management, and unlock the full potential of their AI-driven initiatives.
Use Cases
Enhanced Database Management: The MCP Server allows businesses to manage their MySQL databases with ease. AI agents can interact with the databases, execute SQL queries, and retrieve or manipulate data seamlessly.
AI-Powered Insights: By integrating AI agents with MySQL databases, organizations can derive actionable insights from their data. This integration facilitates complex data analyses, helping businesses make informed decisions.
Streamlined Workflow Automation: Automate repetitive tasks by enabling AI agents to handle database operations. This reduces manual intervention and increases productivity.
Custom AI Solutions: Businesses can build custom AI solutions tailored to their specific needs by utilizing the MCP Server’s capabilities. This flexibility ensures that AI agents can adapt to various business scenarios.
Key Features
Resource Access: Access notes stored in the database via
note:///{id}
URIs, each containing a title and content in plain text mime type for simple access.Comprehensive Tools:
create_note
: Create new text notes in the database with specified title and content.list_tables
: List all tables in the connected database.count_tables
: Get the total number of tables in the database.search_tables
: Search for tables using LIKE pattern.describe_table
: Get the structure of a specific table.execute_sql
: Execute custom SQL queries.
Prerequisites
To set up the MCP Server, ensure you have Node.js 18 or higher, a MySQL server installed and running, and a database with appropriate permissions.
Setup and Installation
Clone the Repository:
git clone git@github.com:LeonMelamud/mysql-mcp.git cd mysql-mcp
Install Dependencies:
npm install
Configure MySQL Connection: Create a
.env
file in the root directory with your MySQL connection details.Build the Server:
npm run build
Integration with Claude Desktop and Cline
For seamless integration, add the server configuration to your respective settings file for Claude Desktop or Cline, ensuring the MCP Server is ready for deployment.
Usage Examples
- List all tables:
Please list all the tables in my MySQL database.
- Execute a SQL query:
Run this SQL query: SELECT * FROM users LIMIT 5.
- Create a note:
Create a note titled "Meeting Notes" with the content "Discussed project timeline and assigned tasks."
UBOS Platform
UBOS is a full-stack AI Agent Development Platform focused on bringing AI Agents to every business department. Our platform helps you orchestrate AI Agents, connect them with your enterprise data, and build custom AI Agents with your LLM model and Multi-Agent Systems.
By integrating the MCP Server into the UBOS platform, businesses can enhance their data management capabilities and drive innovation through AI-powered solutions.
MySQL Server
Project Details
- LeonMelamud/mysql-mcp
- mysql-server
- Last Updated: 4/13/2025
Categories
Recomended MCP Servers
This is an MCP (Model Context Protocol) Server for discovering and downloading 3D models
A Model Context Protocol (MCP) server that provides authenticated access to Google Workspace APIs, offering integrated Authentication, Gmail,...
Hacker News MCP Server
A Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets. Enables Large Language Models...
This project demonstrates how to use Cloudflare Browser Rendering to extract web content for LLM context. It includes...
A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.
Vapi MCP Server
Claude Custom Prompts MCP Server - Create and use custom prompt templates with Claude AI
MCP Server for SearXNG
An MCP server for creating 2D/3D game assets from text using Hugging Face AI models.
MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development