[enemyrr/mcp-mysql-server](https://github.com/enemyrr/mcp-mysql-server) MongoDB
This is a fork of [enemyrr/mcp-mysql-server](https://github.com/enemyrr/mcp-mysql-server) with added MongoDB support.
| Introduction
A Model Context Protocol server that provides MySQL and MongoDB database operations. This server enables AI models to interact with MySQL and MongoDB databases through a standardized interface.
| About This Fork
** | Author**: yaoxiaolinglong
** | Reason for Fork**: MySQL MongoDB MongoDB MCP MongoDB MySQL MongoDB
The original project only supports MySQL database, but MongoDB is often needed in practical applications. Due to the lack of ready-made MongoDB MCP tools, MongoDB support was added to the original project, making it a database server that supports both MySQL and MongoDB.
| Installation & Setup for Cursor IDE
Smithery | Installing via Smithery
[Smithery](https://smithery.ai/server/@yaoxiaolinglong/mcp-mongodb-mysql-server) Claude Desktop MySQL/MongoDB
To install MySQL/MongoDB Database Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@yaoxiaolinglong/mcp-mongodb-mysql-server):
| Installing Manually
| Clone and build the project:
Cursor IDE | Add the server in Cursor IDE settings:
MySQL MongoDB | Support for both MySQL and MongoDB databases
| Secure connection handling with automatic cleanup
MySQL | Prepared statement support for MySQL query parameters
| Schema management tools for both databases
| Comprehensive error handling and validation
TypeScript | TypeScript support
| Automatic workspace detection
| Security
MySQL SQL | Uses prepared statements to prevent SQL injection in MySQL
| Supports secure password handling through environment variables
| Validates queries and operations before execution
| Automatically closes connections when done
| Error Handling
| Connection failures
| Invalid queries or parameters
| Missing configuration
| Database errors
| Schema validation errors
| Contributing
Contributions are welcome! Please feel free to submit a Pull Request to https://github.com/yaoxiaolinglong/mcp-mongodb-mysql-server
| Acknowledgements
This project is based on [enemyrr/mcp-mysql-server](https://github.com/enemyrr/mcp-mysql-server). Thanks to the original author for their contribution.