Labsco
MCP SERVER

MongoDB Mongoose MCP

by nabid-pf

Query and change a MongoDB database in conversation, with your own Mongoose schemas still enforced.

NoSQL, Graph & Key-Value Stores
Summary
Database work in conversation, with your own validation still in the way.

Most Mongo servers write straight through the driver. This one runs writes through your Mongoose schemas when you give it the path, and its deletes are soft — so a wrong call is recoverable.

What it is

A MongoDB MCP server with optional Mongoose support. Point it at your Mongoose schema folder and writes go through Mongoose validation and hooks; leave that unset and the same tools run schemaless. Deletes are soft.

What you get
  • Documents queried with filter and projection, counted, or run through an aggregation pipeline
  • The collections in the database, listed
  • A document inserted, updated, or soft-deleted
  • Indexes created, dropped and listed for a collection
  • Mongoose validation and hooks applied on writes when a schema path is set
Requirements

Node.js 18 or higher and a MongoDB instance. The connection string is required; the schema path, pointing at the root folder of your Mongoose schema objects, is what turns validation on.

Setup effort

One command plus a key — npx -y mongo-mongoose-mcp, then supply credentials