Labsco
nickiiitu logo

MongoDB

โ˜… 2

from nickiiitu

Interact with MongoDB databases using natural language to query collections, inspect schemas, and manage data.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

๐Ÿ—„๏ธ MongoDB MCP Server for LLMS

smithery badge

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

"What collections are available in the database?"
"Show me the schema for the users collection"
"Find all users in San Francisco"

Advanced Queries

"Find all electronics products that are in stock and cost less than $1000"
"Show me all orders from the user john@example.com"
"List the products with ratings above 4.5"

Index Management

"What indexes exist on the users collection?"
"Create an index on the products collection for the 'category' field"
"List all indexes across all collections"

Document Operations

"Insert a new product with name 'Gaming Laptop' in the products collection"
"Update the status of order with ID X to 'shipped'"
"Find and delete all products that are out of stock"

๐Ÿ“ 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

CertifiedBy:-

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

MongoDB-Model-Context-Protocol-MCP-