Mongo Mongoose MCP Server

MongoDB MCP server with optional Mongoose schema support

Local serverstdioGo

What is the Mongo Mongoose MCP MCP server?

If you already use Mongo Mongoose MCP, the mongo mongoose mcp mcp server is the piece that lets your assistant work with it directly. MongoDB MCP server with optional Mongoose schema support.

What the server does

An MCP (Model Context Protocol) server that enables Claude to interact with MongoDB databases, with optional Mongoose schema support.

  • Query, aggregation, insert, update, and manage MongoDB collections directly from Claude
  • Optional Mongoose schema support for data validation and hooks
  • Soft delete implementation for document safety
  • Clean separation between schema-based and schemaless operations

Installation

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • find — Query documents with filtering and projection
  • listCollections — List available collections
  • insertOne — Insert a single document
  • updateOne — Update a single document
  • deleteOne — Soft delete a single document
  • count — Count documents with filtering
  • aggregate — Query documents with aggregation pipeline
  • createIndex — Create a new index
  • dropIndex — Remove an index
  • indexes — List indexes for a collection

Credentials and setup notes

Configuration is passed through the environment: MONGODB_URI, SCHEMA_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js (v18 or higher) - MongoDB

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Mongo Mongoose MCP.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Mongo Mongoose MCP's toolset — find, listCollections, insertOne and 7 more — is a fair guide to whether it matches your workflow. It is maintained by nabid-pf; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
findQuery documents with filtering and projection
listCollectionsList available collections
insertOneInsert a single document
updateOneUpdate a single document
deleteOneSoft delete a single document
countCount documents with filtering
aggregateQuery documents with aggregation pipeline
createIndexCreate a new index
dropIndexRemove an index
indexesList indexes for a collection

How to install the Mongo Mongoose MCP MCP server

{
  "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>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js (v18 or higher) - MongoDB
VariableDescriptionRequired
MONGODB_URIConfiguration value read at startup.Optional
SCHEMA_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Mongo Mongoose MCP to find.
  • Use Mongo Mongoose MCP to listCollections.
  • Use Mongo Mongoose MCP to insertOne.

Frequently asked questions

It connects Mongo Mongoose MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (find, listCollections, insertOne, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mongo Mongoose MCP directly.