MCP Catalogs
Home

mongodb-lens

by furey·201·Score 43

MongoDB Lens is a full-featured MCP server enabling natural language interaction with MongoDB databases.

databasedeveloper-toolsai-llm
29
Forks
4
Open issues
13 mo ago
Last commit
2d ago
Indexed

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:

you:Database administrators can analyze and optimize MongoDB performance using natural language commands
you:Developers can explore and query MongoDB databases without writing complex MongoDB queries
you:Data analysts can generate reports and visualizations from MongoDB data through LLM interactions
you:How do I authenticate with MongoDB?
you:Does it support MongoDB Atlas?

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 README
  • find-documents

    Run queries with filters, projections, and sorting

  • aggregate-data

    Execute aggregation pipelines

  • insert-document

    Insert one or more documents into collections

  • update-document

    Update documents matching specified criteria

  • create-database

    Create a new database with option to switch to it

  • create-collection

    Create new collections with custom options

  • analyze-schema

    Automatically infer collection schemas

  • list-databases

    View all accessible databases

  • list-collections

    Explore collections in the current database

  • explain-query

    Analyze query execution plans

  • export-data

    Export query results in JSON or CSV format

  • create-index

    Create new indexes for performance optimization

Comparable tools

postgresql-mcpmysql-mcpredis-mcpsupabase-mcp

Installation

Installation

  1. Install via npm:
npm install -g mongodb-lens
  1. Install via Docker:
docker pull furey/mongodb-lens
  1. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.