mcp-mysql-serverA Model Context Protocol server for MySQL database operations
Overview
Key features
- connect_db: Establish connection to MySQL database
- query: Execute SELECT queries with optional prepared statement parameters
- execute: Execute INSERT, UPDATE, or DELETE queries with optional prepared statement parameters
- list_tables: List all tables in the connected database
- describe_table: Get the structure of a specific table
Pricing
- Model
- Free
- Category
- MCP Servers
- Rating
- No reviews yet
Use cases
AI-Powered Data Analysis
Use mcp-mysql-server to connect to a MySQL database and execute queries for data analysis, leveraging AI models to gain insights and make predictions.
Automated Data Processing
Integrate mcp-mysql-server with AI models to automate data processing tasks, such as data ingestion, transformation, and loading, using the server's secure connection handling and prepared statement support.
Pros & Cons
Pros
- Secure connection handling with automatic cleanup
- Prepared statement support for query parameters
- Comprehensive error handling and validation
Cons
- Requires environment variables to be set for configuration
- Limited documentation for advanced use cases
Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Q&A
Is there any special installation step beyond running `npx`?
You can install the server via Smithery or manually with `npx`; no additional steps are required other than setting the environment variables for your MySQL credentials.
Asked by Carlos Mendoza · Nov 30, 2025
What error handling does the server provide if a query fails?
The server validates queries and returns detailed error messages for connection failures, invalid SQL syntax, missing parameters, and any database‑level errors returned by MySQL.
Asked by Marisol Pena · Oct 8, 2025
Can the server run prepared statements for INSERT, UPDATE, and DELETE operations?
Yes, both the `query` (for SELECT) and `execute` (for INSERT, UPDATE, DELETE) endpoints accept optional prepared‑statement parameters, allowing safe parameterized queries.
Asked by Willa Thompson · Aug 28, 2025
How do I configure the MCP MySQL server to connect to my database?
Set the required environment variables—`MYSQL_HOST`, `MYSQL_USER`, `MYSQL_PASSWORD`, and `MYSQL_DATABASE`—to point to your MySQL instance before starting the server.
Asked by Frank Müller · Aug 12, 2025
Ask a question
MCP Servers alternatives

Open-source MCP server that lets LLMs drive real browsers via Playwright and accessibility snapshots.

Python agent framework from the Pydantic team for building type-safe GenAI apps.

Adaptive memory layer that helps AI agents learn from context over time.

AI email assistant that organizes, drafts replies, and helps you reach inbox zero faster.

Open-source 24/7 local screen and audio recording for building context-aware AI apps

TypeScript library for building and orchestrating AI agents with tools, memory, and multi-agent workflows.

Bringing the bankless onchain API to MCP

Python tool for converting files and office documents to Markdown.
Trending now

Document intelligence API that parses, splits, OCRs, and extracts structured data from complex PDFs, slides, and spreadsheets.

Sponsored answers, paid per click.

Accurate Homework Help with Full Explanations

Open multimodal 12B model handling interleaved images and text with a 128K context window.
