Basic information
About MongoDB Lens MCP Server
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
MongoDB Lens is a MCP server in the Databases category listed in the AddMCP.net directory, published by furey. Supported transport: stdio. Runtime: node. License: MIT. The repository has 204 GitHub stars. Source code is hosted on github.com. Related topics: database, mcp-server, mongodb.
Setup
{
"mcpServers": {
"mongodb-lens": {
"command": "node",
"args": [
"--version",
"#",
"Ideally",
">=",
"v22.x",
"but",
"MongoDB",
"Lens",
"is",
">=",
"v18.x",
"compatible"
]
}
}
}
{
"mcpServers": {
"mongodb-lens": {
"command": "node",
"args": [
"--version",
"#",
"Ideally",
">=",
"v22.x",
"but",
"MongoDB",
"Lens",
"is",
">=",
"v18.x",
"compatible"
]
}
}
}
{
"servers": {
"mongodb-lens": {
"command": "node",
"args": [
"--version",
"#",
"Ideally",
">=",
"v22.x",
"but",
"MongoDB",
"Lens",
"is",
">=",
"v18.x",
"compatible"
]
}
}
}
MongoDB Lens MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongodb-lens": {
"command": "node",
"args": [
"--version",
"#",
"Ideally",
">=",
"v22.x",
"but",
"MongoDB",
"Lens",
"is",
">=",
"v18.x",
"compatible"
]
}
}
}
MongoDB Lens MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MongoDB Lens?
MongoDB Lens is a local Model Context Protocol (MCP) server that provides full featured access to MongoDB databases using natural language via LLMs, enabling queries, aggregations, performance optimization, and more.
How to use MongoDB Lens?
Install via npm (npm install -g mongodb-lens) or Docker, configure by setting the MONGODB_URI environment variable, then set up your MCP client (e.g., Claude Desktop or Cursor) according to the provided client setup instructions. Run the server and explore your databases using natural language.
Key features of MongoDB Lens
- Natural language querying of MongoDB databases
- Execute aggregation pipelines and analyze query plans
- Automatically infer collection schemas and generate validators
- Perform geospatial and full-text searches
- Manage databases, collections, indexes, and users
- Monitor real‑time changes and replica set status
Use cases of MongoDB Lens
- Explore and query a MongoDB database with conversational AI
- Profile and optimize slow queries using explain plans
- Automate schema analysis and validation across collections
- Perform bulk data operations (insert, update, delete) with safety confirmations
- Monitor database events and change streams via LLM prompts
Frequently asked questions
1 What tools does MongoDB Lens provide?
MongoDB Lens offers over 40 tools including find-documents, aggregate-data, analyze-schema, create-index, transaction, watch-changes, and export-data.
2 Does MongoDB Lens require a specific runtime?
Yes, it requires Node.js (installed via npm) or can be run as a Docker container. Both packages are available on npm and Docker Hub.
3 How do I connect MongoDB Lens to my database?
Supply a MongoDB connection string via the MONGODB_URI environment variable at startup, or use the connect-mongodb tool to switch databases at runtime.
4 Are destructive operations protected?
Yes, operations like drop-collection, delete-document, drop-database, and others require explicit user confirmation before execution.
5 Which MCP clients are supported?
MongoDB Lens works with Claude Desktop and Cursor out of the box, and can be configured with any MCP‑compatible client.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In