mongodb-lens
by furey·★ 201·Score 43
MongoDB Lens is a full-featured MCP server enabling natural language interaction with MongoDB databases.
Overview
MongoDB Lens is a comprehensive Model Context Protocol server that provides extensive access to MongoDB databases through natural language commands. It implements the MCP protocol with a rich set of tools and resources, allowing users to perform database operations, aggregations, schema analysis, and performance optimizations using conversational interfaces. The server supports various MongoDB features including transactions, geospatial queries, time series collections, and GridFS operations.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose MongoDB Lens if you need comprehensive natural language access to MongoDB databases without switching between tools and interfaces.
When NOT to choose this
Avoid if you need multi-database support beyond MongoDB or require write access to databases that should remain untouched.
Tools this server exposes
12 tools extracted from the READMEfind-documentsRun queries with filters, projections, and sorting
aggregate-dataExecute aggregation pipelines
insert-documentInsert one or more documents into collections
update-documentUpdate documents matching specified criteria
create-databaseCreate a new database with option to switch to it
create-collectionCreate new collections with custom options
analyze-schemaAutomatically infer collection schemas
list-databasesView all accessible databases
list-collectionsExplore collections in the current database
explain-queryAnalyze query execution plans
export-dataExport query results in JSON or CSV format
create-indexCreate new indexes for performance optimization
Comparable tools
Installation
Installation
- Install via npm:
npm install -g mongodb-lens- Install via Docker:
docker pull furey/mongodb-lens- Configure Claude Desktop:
Add to your Claude Desktop config.json:
{
"mcpServers": {
"mongodb-lens": {
"command": "npx",
"args": ["-y", "@furey/mongodb-lens"]
}
}
}FAQ
- How do I authenticate with MongoDB?
- You can configure authentication in the connection string or using environment variables. The server supports username/password, certificate-based, and LDAP authentication methods.
- Does it support MongoDB Atlas?
- Yes, MongoDB Lens can connect to MongoDB Atlas by providing the Atlas connection string in the configuration.
Compare mongodb-lens with
Last updated · Auto-generated from public README + GitHub signals.