mongo-mcp

mongo-mcp

3.6

If you are the rightful owner of mongo-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. Query collections, inspect schemas, and manage data seamlessly through natural language.

The MongoDB MCP Server for LLMs is a powerful tool that allows language models to interact with MongoDB databases using natural language commands. This server facilitates the querying of collections, inspection of schemas, and management of data, making it easier for users to perform database operations without needing extensive knowledge of MongoDB's query language. The server supports a range of operations including document querying, filtering, and index management, as well as basic document operations like insert, update, and delete. It is designed to work seamlessly with platforms like Claude Desktop, providing a user-friendly interface for database interaction. The server can be installed via Smithery, and it requires Node.js 18+ and npx for operation. For local testing, Docker and Docker Compose can be used to set up a sandbox environment. The server also includes tools for creating and managing indexes, making it a comprehensive solution for database management through natural language.

Features

  • Collection schema inspection
  • Document querying and filtering
  • Index management
  • Document operations (insert, update, delete)

Tools

  1. find

    Query documents with filtering and projection

  2. listCollections

    List available collections

  3. insertOne

    Insert a single document

  4. updateOne

    Update a single document

  5. deleteOne

    Delete a single document

  6. createIndex

    Create a new index

  7. dropIndex

    Remove an index

  8. indexes

    List indexes for a collection