πŸ—„οΈ MongoDB For LLMS MCP Server

MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB

Local serverstdioTypeScript

What is the πŸ—„οΈ MongoDB For LLMS MCP Server?

MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB

What you get

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
listCollectionsLists available collections in the database
findQueries documents with filtering and projection
insertOneInserts a single document into a collection
updateOneUpdates a single document in a collection
deleteOneDeletes a single document from a collection
createIndexCreates a new index on a collection
dropIndexRemoves an index from a collection
indexesLists indexes for a collection

How to install the πŸ—„οΈ MongoDB For LLMS MCP Server

{
  "mcpServers": {
    "mongodb": {
      "command": "node",
      "args": [
        "dist/index.js",
        "mongodb://root:example@localhost:27017/test?authSource=admin"
      ]
    }
  }
}

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

Example prompts to try

  • β€œUse πŸ—„οΈ MongoDB For LLMS to listCollections.”
  • β€œUse πŸ—„οΈ MongoDB For LLMS to find.”
  • β€œUse πŸ—„οΈ MongoDB For LLMS to insertOne.”

Frequently asked questions

Node.js v18 or higher, a MongoDB instance (local or remote), and an MCP client such as Claude Desktop or Cursor.ai.