MongoDB Mongoose MCP

MongoDB Mongoose MCP is an MCP server that connects Claude and other Model Context Protocol clients directly to MongoDB databases, offering optional support for Mongoose schemas. Database administrators, backend engineers, and data analysts use this server to inspect collections, run complex queries, manage documents, and maintain indexes through natural language workflows. The server combines the native MongoDB driver for standard operations with Mongoose to enable schema-driven validation and hooks whenever schema definitions are supplied. In addition to standard CRUD commands like find, insertOne, updateOne, and aggregate pipelines, it implements soft deletes to protect document safety during deletions. Users can query data without writing manual MongoDB shell commands while maintaining separation between schemaless flexibility and structured data enforcement. By bridging LLMs with MongoDB databases, it simplifies data inspection, operational monitoring, and database management tasks directly within assistant interfaces.

Category: Databases & Data Stores

Tags: database, mongodb, mongoose, nosql

Visit MongoDB Mongoose MCP

How to install and configure MongoDB Mongoose MCP

To integrate MongoDB Mongoose MCP with Claude Desktop, complete the following steps: 1. Ensure you have Node.js version 18 or higher installed on your system. 2. Open Claude Desktop, navigate to Settings, then Developer, and click Edit config to open claude_desktop_config.json. 3. Add the server definition inside the mcpServers object: json { "mcpServers": { "mongodb-mongoose": { "command": "npx", "args": [ "-y", "mongo-mongoose-mcp" ], "env": { "MONGODB_URI": "<your mongodb uri>", "SCHEMA_PATH": "<path to the root folder of all your mongoose schema objects>" } } } } 4. Replace <your mongodb uri> with your actual connection string and set <path to the root folder of all your mongoose schema objects> to point to your schema files. 5. Save the configuration file and restart Claude Desktop.

What you can do with MongoDB Mongoose MCP

  • Querying collections using natural language filters and projection fields to retrieve specific user or application records without manual syntax. * Inserting new records and updating existing documents while applying optional Mongoose schema validation rules and lifecycle hooks. * Running multi-stage aggregation pipelines to analyze metrics, count categorized items, or summarize transactional records directly from conversation prompts. * Managing database performance by listing existing collection indexes, creating new indexes on frequently queried fields, and dropping unused indexes. * Performing safe record cleanups using the built-in soft delete feature to mark documents as deleted without permanent data loss.

Key facts

  • Open Source
  • https://github.com/nabid-pf/mongo-mongoose-mcp
  • Databases & Data Stores
  • database, mongodb, mongoose, nosql

Part of MCP Servers

Related MCP servers

  • MCP Memory Keeper — MCP Memory Keeper is an MCP server that provides persistent context management and memory storage for Claude AI coding assistants.…
  • MCP Notes — MCP Notes is an MCP server that provides note-taking and note-management capabilities to AI models using Amazon Web Services DynamoDB…
  • MCP Neo4j Server — MCP Neo4j Server is an MCP server that provides an integration between the Neo4j graph database and Model Context Protocol…
  • MCP Memory Toolkit — MCP Memory Toolkit is an MCP server that provides persistent memory capabilities for Claude and other compatible assistants using ChromaDB.…
  • MCP Memory Server — MCP Memory Server is an MCP server that integrates Claude Desktop with Azure Cosmos DB and OpenAI embeddings to provide…
  • MCP MS SQL Server — MCP MS SQL Server is an MCP server that provides a standardized Model Context Protocol interface for AI models to…

How do I install MongoDB Mongoose MCP?

You can run it directly via npx without a manual global installation. In Claude Desktop, add an entry to your configuration file pointing to the npx command with the mongo-mongoose-mcp package, supplying your connection string in the MONGODB_URI environment variable and optionally defining SCHEMA_PATH for your models directory.

What can MongoDB Mongoose MCP do?

The server provides tools to list collections, count documents, find records with filters and projections, insert documents, update records, and run aggregation pipelines. It also supports index management, including listing, creating, and dropping indexes, and integrates soft deletions for safe data handling.

Which MCP clients work with MongoDB Mongoose MCP?

It works with Claude Desktop through standard configuration files and can be tested using the MCP inspector tool. Any client supporting the Model Context Protocol that can launch local stdio processes with Node.js can connect to the server.

Are Mongoose schemas required to use MongoDB Mongoose MCP?

No, Mongoose schemas are optional. You can use the server for schemaless MongoDB operations using the native driver, or configure the SCHEMA_PATH environment variable to point to schema files if you want validation and hooks applied.

Is MongoDB Mongoose MCP open source?

Yes, MongoDB Mongoose MCP is open source software released under the MIT license. You can view the code, report issues, and contribute on its GitHub repository.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories