MongoDB Lens
@furey
关于 MongoDB Lens
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mongodb-lens": {
"command": "node",
"args": [
"--version",
"#",
"Ideally",
">=",
"v22.x",
"but",
"MongoDB",
"Lens",
"is",
">=",
"v18.x",
"compatible"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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
FAQ from MongoDB Lens
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.
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.
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.
Are destructive operations protected?
Yes, operations like drop-collection, delete-document, drop-database, and others require explicit user confirmation before execution.
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.
数据库 分类下的更多 MCP 服务器
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Elasticsearch/OpenSearch MCP Server
cr7258A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
Sail MCP Server for Spark SQL
lakehqDrop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
mcp_mysql_server
xwb602625136Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation
评论