Mongodb Lens MCP Server

MongoDB Lens: Full Featured MCP Server for MongoDB Databases

Local serverstdio

What is the Mongodb Lens MCP server?

Mongodb lens mcp server connects Mongodb Lens to AI assistants that speak the Model Context Protocol. MongoDB Lens: Full Featured MCP Server for MongoDB Databases.

What Mongodb Lens does

MongoDB Lens inserts a metadata collection into each database it creates.

Tools it exposes

Once connected, the assistant can call these 3 tools directly:

  • Tools — The Tools tool exposed by this server
  • Resources — The Resources tool exposed by this server
  • Prompts — The Prompts tool exposed by this server

Installing the mongodb lens mcp server

The server is distributed via npm as requires, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Mongodb Lens sits in that group, and the shape of its toolset — Tools, Resources, Prompts — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by furey.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mongodb lens mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
ToolsThe Tools tool exposed by this server.
ResourcesThe Resources tool exposed by this server.
PromptsThe Prompts tool exposed by this server.

How to install the Mongodb Lens MCP server

{
  "mcpServers": {
    "mongodb-lens": {
      "command": "npx",
      "args": ["-y", "requires"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Mongodb Lens to Tools.
  • Use Mongodb Lens to Resources.
  • Use Mongodb Lens to Prompts.

Frequently asked questions

It connects Mongodb Lens to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Tools, Resources, Prompts) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mongodb Lens directly.