A lightweight AI-powered MCP (Machine Control Protocol) server for automating MySQL databases using natural language. Ideal for testing, prototyping, and managing SQL workflows with Claude, OpenAI, DeepSeek, and other agents.
# 🐬 MySQL MCP Server (FastMCP-Powered)
Leverage the power of AI to automate your MySQL workflows with **FastMCP**.
This tool enables AI agents like DeepSeek, OpenAI, or DeepSeek to interact with your MySQL database using natural language, making database management seamless and intelligent.
Whether you're generating synthetic data, querying your tables, or performing updates, this MCP server allows AI to operate on your database through standardized interfaces — all from your local machine.
🔎 Best use for generating synthetic data for testing your apis.
---
## 💡 Key Features
- Automates SQL tasks via AI (DeepSeek, OpenAI, DeepSeek, etc.)
- Works over **Stdio**, ideal for local desktop integration
- Generates **synthetic data** based on your schema and recent values
- No manual SQL knowledge required
- Highly useful for **test environments** and **data prototyping**
---
## 🛠️ Supported Tools
| Tool | Description |
|------|-------------|
| `get_column_names(table_name)` | Retrieve all column names of a table |
| `get_all_table_names()` | List all table names in the database |
| `select(...)` | Fetch records from any table |
| `insert(...)` | Insert data into a table |
| `update(...)` | Update records with conditions |
| `delete(...)` | Delete records based on criteria |
These are internally used by the AI to understand and manipulate your database efficiently.
---
## ⚙️ Configuration & Setup
### 📋 Prerequisites
- Python 3.10+
- MySQL (running locally or remotely)
- Anthropic Claude Desktop app (or DeepSeek)
- UV (Python package manager), install with `curl -LsSf https://astral.sh/uv/install.sh | sh`
### Steps
1. **Clone this repository**
```bash
git clone https://github.com/Ashutosh-rajput/mysql-mcp.git
cd mysql-mcp
uv pip install -r requirements.txt
```
2. **Fill the .env**
```
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=yourpassword
MYSQL_DATABASE=yourdatabase
```
3. **Connect to HAL 分层混合模型工作流 — 强模型(Claude)负责理解/拆解/验收,低成本模型(DeepSeek)负责检索/提取/清洗。Hermes Agent skill。
An LLM agent fine-tuned on DeepSeek for spaced repetition, dynamically integrating knowledge points based on the Ebbinghaus forgetting curve.
基于 STM32F103 构建的端到端 AI 智能手表生态。自研“零重定位”原生机器码动态加载引擎与页面栈式 UI 框架;集成生产级 OTA 回滚保护机制与高带宽(921600 baud)串口协议栈。通过 Node.js 中继实现 DeepSeek AI 语义控制及 ASRPRO 语音全双工交互,是一个集成了分布式计算、现代存储管理与 AI Agent 的嵌入式全栈工程。
A Meta-Agent-Driven Self-Evolving Multi-Agent System for UAV Detection and Tracking
One command to run Hermes AI Agent with a browser UI. Zero prerequisites. 一行命令,AI 就位。
网页应用Agent,接入DeepSeek、Mimo等模型