MCP Mongodb Mysql Server
A database operation server that supports MySQL and MongoDB, providing a standardized database interface for AI models
rating : 2.5 points
downloads : 23
What is MCP-MongoDB-MySQL?
MCP-MongoDB-MySQL is a Model Context Protocol server that allows AI models to interact with MySQL and MongoDB databases through standard interfaces. It integrates various database operation tools, enabling developers to quickly build database-driven applications.How to use MCP-MongoDB-MySQL?
Simply configure the database connection information and call the corresponding APIs to perform database operations. It supports various functions such as queries, insertions, and updates, making it suitable for a wide range of application scenarios.Applicable Scenarios
Suitable for projects that need to manage both MySQL and MongoDB databases simultaneously, such as data analysis, backend services, and content management systems.Main Features
Support for Multiple DatabasesSupports database operations for both MySQL and MongoDB, meeting the needs of different scenarios.
Flexible Connection MethodsSupports connecting to databases via URLs, workspace paths, or direct parameters.
Secure Query ProcessingUses prepared statements to prevent SQL injection, ensuring the security of database operations.
Schema Management ToolsProvides tools for viewing, creating, and modifying table structures, simplifying database design.
Comprehensive Error HandlingBuilt-in detailed error prompts and validation mechanisms enhance the user experience.
Advantages and Limitations
Advantages
Supports multiple databases, offering high flexibility.
Simple to operate and easy to integrate.
Highly secure, preventing SQL injection.
Provides a rich set of query and management tools.
Limitations
May require a certain learning curve for complex queries.
Some advanced features depend on the support of the database itself.
How to Use
Install MCP-MongoDB-MySQL
Install via Smithery: `npx -y @smithery/cli install @yaoxiaolinglong/mcp-mongodb-mysql-server --client claude`.
Configure Database Connection
Fill in the database URL or individual parameters in the.env file.
Call APIs to Perform Operations
Use `use_mcp_tool` to call the corresponding tools to execute queries or management tasks.
Usage Examples
Connect to a MySQL DatabaseConnect to a MySQL database via URL and execute a query.
Insert Documents into a MongoDB CollectionInsert new documents into a MongoDB collection.
Frequently Asked Questions
How to configure the MySQL database connection?
Does it support the creation of MongoDB collections?
How to handle query errors?
Related Resources
Official Documentation
Project source code and detailed instructions.
Installation Tutorial
A quick installation guide via Smithery.
Featured MCP Services

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
100
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
153
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
840
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
575
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
761
4.8 points