πŸ—„οΈ 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?

πŸ—„οΈ MongoDB For LLMS MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. 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.

Setting it up

Installation goes through your MCP client rather than a global install: point it at @smithery/cli 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.

What the assistant can call

Once πŸ—„οΈ MongoDB For LLMS is connected, these are the calls the assistant has available:

  • listCollections β€” Lists available collections in the database
  • find β€” Queries documents with filtering and projection
  • insertOne β€” Inserts a single document into a collection
  • updateOne β€” Updates a single document in a collection
  • deleteOne β€” Deletes a single document from a collection
  • createIndex β€” Creates a new index on a collection
  • dropIndex β€” Removes an index from a collection
  • indexes β€” Lists indexes for a collection
  • Users β€” The Users tool exposed by this server
  • Products β€” The Products tool exposed by this server
  • Orders β€” The Orders tool exposed by this server

Before you rely on it

  • 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 11 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch πŸ—„οΈ MongoDB For LLMS.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the πŸ—„οΈ mongodb for llms mcp server does with a few real requests.

Choosing this one

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. πŸ—„οΈ MongoDB For LLMS's toolset β€” listCollections, find, insertOne and 8 more β€” is a fair guide to whether it matches your workflow. It is maintained by 1RB; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against πŸ—„οΈ MongoDB For LLMS's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

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
UsersThe Users tool exposed by this server.
ProductsThe Products tool exposed by this server.
OrdersThe Orders tool exposed by this server.

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.