MongoDB MCP ServerMongoDB MCP Server

mongo-mcp

An MCP server that enables LLMs to interact directly with MongoDB databases using natural language.

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.

✨ Features

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

🎯 Example Prompts

Try these prompts with Claude to explore the functionality:

Basic Operations

Advanced Queries

Index Management

Document Operations

📝 Available Tools

The server provides these tools for database interaction:

Query Tools

  • find: Query documents with filtering and projection
  • listCollections: List available collections
  • insertOne: Insert a single document
  • updateOne: Update a single document
  • deleteOne: Delete a single document

Index Tools

  • createIndex: Create a new index
  • dropIndex: Remove an index
  • indexes: List indexes for a collection

Installation

Install Command

Integrate this tool for Claude Desktop.

Server Statistics

UsageUsed 3 times last month
LicenseMIT
LocalNo
Published12/19/2024