Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Mongodb lens

MCP server by furey Verified · gh:furey

MongoDB Lens is a local MCP server that gives AI assistants full access to MongoDB databases. It runs queries, aggregations and performance checks from natural language prompts. It suits people who want to explore and manage MongoDB data through an LLM client.

  • Score 81
  • 207 stars
  • MIT
  • Updated

Install Mongodb lens

Built from the published package, never by AI.

claude mcp add mongodb-lens -- npx -y mongodb-lens

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Mongodb lens in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mongodb-lens block.

About

MongoDB Lens is a local Model Context Protocol (MCP) server that gives AI assistants full access to MongoDB databases. Users can ask for queries, aggregations and performance optimization in natural language through an LLM. The server exposes a large set of tools, plus resources and prompts, for working with databases, collections, indexes and users.

The README describes installation through Docker and npm, and shows how to set it up in clients such as Claude Desktop and Cursor. Its tools cover finding and aggregating documents, analyzing schemas, watching changes, and viewing sharding and replica set status. Destructive actions such as dropping collections or deleting documents require confirmation. The project suits anyone who wants to explore and manage MongoDB data from an AI assistant, and it includes a tutorial and a test suite.

Written from the project's README and checked against it.

Tools it gives your assistant

  • find-documentsRun queries with filters, projections, and sorting.
  • aggregate-dataExecute aggregation pipelines.
  • explain-queryAnalyze query execution plans.
  • analyze-query-patternsAnalyze live queries and suggest optimizations.
  • analyze-schemaAutomatically infer collection schemas.
  • insert-documentInsert one or more documents into collections.
  • update-documentUpdate documents matching specified criteria.
  • delete-documentDelete documents matching specified criteria, with confirmation.
  • export-dataExport query results in JSON or CSV format.
  • watch-changesMonitor real-time changes to collections.

What you need

  • A MongoDB database to connect to
  • An MCP client such as Claude Desktop or Cursor
  • Docker, using the furey/mongodb-lens image
  • npm, using the mongodb-lens package

Try asking

  • Find all orders over 100 in the orders collection
  • Analyze the schema of my users collection
  • Explain the query plan for my slowest find on products

Good to know

  • Destructive operations require confirmation before they run.
  • Runs as a local server, so it connects to the MongoDB URI you configure.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Mongodb lens

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

Mongodb lens: common questions

What can MongoDB Lens do with my data?

It can run queries, aggregations, inserts, updates and deletes through natural language requests from an LLM. Destructive operations such as dropping collections or deleting documents require confirmation.

Which MCP clients does MongoDB Lens support?

The README includes setup steps for Claude Desktop and links to Cursor's MCP configuration docs. Other MCP clients are mentioned only as examples.

Does MongoDB Lens support sharded or replica set deployments?

It includes a shard-status tool for sharding configuration and a replica-status resource for replica set status and configuration.

How do I install Mongodb lens?

In Claude Code run claude mcp add mongodb-lens -- npx -y mongodb-lens. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Mongodb lens the official server?

Mongodb lens is published by gh:furey from its verified domain in the official MCP Registry.

Is Mongodb lens free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Mongodb lens safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Mongodb lens?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does Mongodb lens work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Mongodb lens Install

Add to stack

Loading.