What is an MCP? Why not just use a regular API?
MCP stands for Model Context Protocol. It’s a protocol developed by Anthropic specifically for AI assistants to access external tools. Compared to regular APIs, MCP offers a standardized tool description format, better AI integration, automated permission management, and built-in security.
Why choose stdio mode over HTTP API?
stdio mode offers enhanced security (no need to open network ports), simplicity (no network and authentication configuration), lightweight operation (direct process communication), and better isolation (each client has an independent process).
Can I connect to a remote MySQL database?
Yes! Simply specify the remote host address when connecting. For example:
Please connect to the remote database:
- Host: 192.168.1.100
- Port: 3306
- Username: remote_user
- Password: remote_password
- Database: remote_db
Are other databases supported?
Currently, only MySQL is supported, but the architecture is designed to be extensible. Future plans include support for PostgreSQL, SQLite, SQL Server, and Oracle.
How do I back up and restore the configuration?
bash
Backup configuration
cp ~/.vscode/mcp-settings.json ~/mcp-backup.json
Restore configuration
cp ~/mcp-backup.json ~/.vscode/mcp-settings.json
Can I perform write operations?
For security reasons, only read operations are supported by default. If write operations are required, you can modify src/database.ts to remove the security restrictions and rebuild the project. Caution: This increases the risk of data compromise, so proceed with care.
How do I monitor the MCP server status?
bash
Check process
ps aux | grep “mysql-mcp”
Check port (HTTP mode)
netstat -an | grep 3100
View logs
tail -f ~/.vscode/logs/mcp-mysql.log
MySQL MCP Server
Project Details
- HAOTIANli494/MySQL_MCP
- Last Updated: 6/11/2025
Recomended MCP Servers
what it says on the tin
🪄 MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and...
一键导出PC微信聊天记录工具
WhatsApp MCP server
MCP for letting Claude search Ravelry
mcp server for todoist
My clone repository
A Model Context Protocol (MCP) server that integrates Volatility 3 memory forensics framework with Claude
SSAFY 프로젝트 포트폴리오 정보 수집 가이드라인 mcp
A Model Context Protocol server that provides read-only access to PostgreSQL databases with enhanced multi-schema support.





