MongoDB Lens
MongoDB Lens is an MCP server that adds database tools to AI assistants such as Claude Desktop, Claude Code and Cursor. 🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases. It has 207 GitHub stars, is released under the MIT license and runs locally with npx -y mongodb-lens.
github.com/furey/mongodb-lens (opens in a new tab)
Data as of from the GitHub API; description from the project's repository. Report an error
Install MongoDB Lens
Generated from the server's published package. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"mongodb-lens": {
"command": "npx",
"args": [
"-y",
"mongodb-lens"
],
"env": {
"CONFIG_LOG_LEVEL": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env CONFIG_LOG_LEVEL=your-value --transport stdio mongodb-lens -- npx -y mongodb-lensCursor
{
"mcpServers": {
"mongodb-lens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mongodb-lens"
],
"env": {
"CONFIG_LOG_LEVEL": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"mongodb-lens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mongodb-lens"
],
"env": {
"CONFIG_LOG_LEVEL": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
CONFIG_LOG_LEVEL | No | Shown in the README's example configuration. |
About MongoDB Lens
MongoDB Lens is a local Model Context Protocol (MCP) server with full featured access to MongoDB databases using natural language via LLMs to perform queries, run aggregations, optimize performance, and more.
- ai
- claude
- database
- llm
- mcp
- mongodb
- model-context-protocol
Similar MCP servers
More databases MCP servers
Customermates
customermates/customermates
Open-source CRM to follow up on every client conversation: LinkedIn and email beside each client, dated next steps, MCP for Claude and ChatGPT, self-hostable core.
Maintained · last commit Nov 15, 2026
DatabasesTypeScriptCrowdsentinel MCP Server
thomasxm/CrowdSentinels-AI-MCP
AI threat hunting & incident response for Elasticsearch/OpenSearch with endpoint & network forensics.
Maintained · last commit Jul 19, 2026
DatabasesPythonPostgres MCP
pgEdge/pgedge-postgres-mcp
Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI.
Active · last commit Nov 11, 2026
OfficialDatabasesGoMCP Server Starrocks
StarRocks/mcp-server-starrocks
StarRocks MCP (Model Context Protocol) Server.
Maintained · last commit Sep 8, 2026
DatabasesPythonMCP Mongo Server
kiliczsh/mcp-mongo-server
A Model Context Protocol Server for MongoDB.
Active · last commit Nov 11, 2026
DatabasesTypeScriptMCP Neo4j Memory
neo4j-contrib/mcp-neo4j
MCP Neo4j Knowledge Graph Memory Server.
Maintained · last commit Sep 9, 2026
OfficialDatabasesPython
How do I install the MongoDB Lens MCP server?
Add the command npx -y mongodb-lens to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is MongoDB Lens free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is MongoDB Lens actively maintained?
The most recent commit was on Nov 7, 2026. The latest release is 9.1.5, published Nov 7, 2026. appsgit only lists MCP servers with a commit in the last six months.