mongodb-mcp

mongodb-mcp

0

This project provides a Model Context Protocol (MCP) server that allows large language models to interact with MongoDB databases through natural language. It features schema inspection, document operations, and index management, supporting versatile database manipulation without requiring programming expertise.

🗄️ MongoDB MCP Server for LLMS

A Model Context Protocol (MCP) server allowing LLMs to interact with MongoDB databases, offering features like collection schema inspection, document querying and filtering, index management, and document operations (insert, update, delete).

✨ Features

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

🚀 Quick Start

Find your MongoDB connection URL and add it to your Claude Desktop config file.

Prerequisites

  • Node.js 18+
  • npx
  • Docker and Docker Compose
  • MCP Client (e.g., Claude Desktop App)

Test Sandbox Setup

Use Docker Compose to start MongoDB and seed the database with test data.

📝 Available Tools

Query Tools

  • find
  • listCollections
  • insertOne
  • updateOne
  • deleteOne

Index Tools

  • createIndex
  • dropIndex
  • indexes