1. Conduid
  2. Data
  3. furey/mongodb-lens
MCP server · Data

furey/mongodb-lens

🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases

76Good

Scored 20 hours ago · breakdown

About furey/mongodb-lens

furey/mongodb-lens is an MCP server published by furey in the Data category: 🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases. Conduid read 42 tools from its source: add-connection-alias, aggregate-data, analyze-query-patterns, analyze-schema, bulk-operations, clear-cache and 36 more. It is published to npm as mongodb-lens and starts with npx.

The repository has 207 stars and 31 forks, is licensed MIT, and its last commit was on 21 Nov 2026. The latest release is 9.1.4 (23 Apr 2025). It follows 9.1.3 (14 Apr 2025), and the 5 most recent releases go back to 9.0.0 (3 Apr 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data, database and mongodb.

Install

Claude Code
claude mcp add mongodb-lens -- npx -y mongodb-lens
npx
npx -y mongodb-lens
From source
git clone https://github.com/furey/mongodb-lens

Tools (42)

add-connection-aliasAdd a new MongoDB connection alias
ParameterTypeDescription
alias *stringAlias name for the connection
uri *stringMongoDB connection URI
aggregate-dataA `$out` or `$merge` stage writes to a collection, and `$out` replaces an existing collection
ParameterTypeDescription
collection *stringCollection name
limitnumberMaximum number of results to return
pipeline *stringAggregation pipeline as JSON string array
analyze-query-patternsAnalyze query patterns and suggest optimizations
ParameterTypeDescription
collection *stringCollection name to analyze
durationnumberDuration to analyze in seconds
analyze-schemaAutomatically infer schema from collection
ParameterTypeDescription
collection *stringCollection name
sampleSizenumberNumber of documents to sample
bulk-operationsCan perform batch deletions when configured to do so
ParameterTypeDescription
collection *stringCollection name
operations *stringArray of operations as JSON string
tokenstringConfirmation token from previous request
clear-cacheClear memory caches to ensure fresh data
ParameterTypeDescription
targetstringCache type to clear (default: all)
collation-queryFind documents with language-specific collation rules
ParameterTypeDescription
collection *stringCollection name
filterstringQuery filter as JSON string
locale *stringLocale code (e.g., "en", "fr", "de")
sortstringSort specification as JSON string
strengthnumberCollation strength (1-5)
compare-schemasCompare schemas between two collections
ParameterTypeDescription
sampleSizenumberNumber of documents to sample
sourceCollection *stringSource collection name
targetCollection *stringTarget collection name
connect-mongodbConnect to a different MongoDB URI or alias
ParameterTypeDescription
uri *stringMongoDB connection URI or alias to connect to
connect-originalConnect back to the original MongoDB URI used at startup
count-documentsCount documents with optional filter
ParameterTypeDescription
collection *stringCollection name
filterstringMongoDB query filter (JSON string)
create-collectionCreate a new collection with options
ParameterTypeDescription
name *stringCollection name
optionsstringCollection options as JSON string (capped, size, etc.)
create-databaseCreate a new MongoDB database with option to switch
ParameterTypeDescription
name *stringDatabase name to create
create-indexCreate new index on collection
ParameterTypeDescription
collection *stringCollection name
keys *stringIndex keys as JSON object
optionsstringIndex options as JSON object
create-timeseriesCreate a time series collection for temporal data
ParameterTypeDescription
expireAfterSecondsnumberOptional TTL in seconds
granularitystringTime series granularity
metaFieldstringField that contains metadata for grouping
name *stringCollection name
timeField *stringField that contains the time value
create-userCreates users with permissions that could enable further changes
ParameterTypeDescription
password *stringPassword
roles *stringRoles as JSON array, e.g. [{"role": "readWrite", "db": "mydb"}]
username *stringUsername
current-databaseGet the name of the current database
delete-documentRemoves documents matching specified criteria
ParameterTypeDescription
collection *stringCollection name
filter *stringFilter as JSON string
tokenstringConfirmation token from previous request
distinct-valuesGet unique values for a field
ParameterTypeDescription
collection *stringCollection name
field *stringField name to get distinct values for
filterstringOptional filter as JSON string
drop-collectionPermanently deletes collections and all their documents
ParameterTypeDescription
name *stringCollection name to drop
tokenstringConfirmation token from previous request
drop-databasePermanently deletes entire databases
ParameterTypeDescription
name *stringDatabase name to drop
tokenstringConfirmation token from previous request
drop-indexRemoves indexes (can impact query performance)
ParameterTypeDescription
collection *stringCollection name
indexName *stringName of the index to drop
tokenstringConfirmation token from previous request
drop-userRemoves database users and their access permissions
ParameterTypeDescription
tokenstringConfirmation token from previous request
username *stringUsername to drop
explain-queryAnalyze query performance
ParameterTypeDescription
collection *stringCollection name
filter *stringMongoDB query filter (JSON string)
verbositystringExplain verbosity level
export-dataExport query results to formatted JSON or CSV
ParameterTypeDescription
collection *stringCollection name
fieldsstringComma-separated list of fields to include (for CSV)
filterstringFilter as JSON string
formatstringExport format
limitnumberMaximum documents to export
sortstringSort specification as JSON string (e.g. {"date": -1} for descending)
find-documentsRun queries with filters and projections
ParameterTypeDescription
collection *stringCollection name
filterstringMongoDB query filter (JSON string)
limitnumberMaximum number of documents to return
projectionstringFields to include/exclude (JSON string)
skipnumberNumber of documents to skip
sortstringSort specification (JSON string)
generate-schema-validatorGenerate a JSON Schema validator for a collection
ParameterTypeDescription
collection *stringCollection name
strictnessstringValidation strictness level
geo-queryRun geospatial queries with various operators
ParameterTypeDescription
collection *stringCollection name
field *stringGeospatial field name
geometry *stringGeoJSON geometry as JSON string
limitnumberMaximum number of documents to return
maxDistancenumberMaximum distance in meters (for near queries)
operator *stringGeospatial operator type
get-statsGet database or collection statistics
ParameterTypeDescription
namestringCollection name (for collection stats)
target *stringTarget type
gridfs-operationManage large files with GridFS
ParameterTypeDescription
bucketstringGridFS bucket name
filenamestringFilename for info/delete operations
limitnumberMaximum files to list
operation *stringGridFS operation type
insert-documentInsert one or multiple documents into a collection
ParameterTypeDescription
collection *stringCollection name
document *stringDocument as JSON string or array of documents
optionsstringOptions as JSON string (including "ordered" for multiple documents)
list-collectionsList collections in the current database
list-connectionsList all configured MongoDB connection aliases
list-databasesList all accessible MongoDB databases
rename-collectionCan overwrite existing collections when using the drop target option
ParameterTypeDescription
newName *stringNew collection name
oldName *stringCurrent collection name
tokenstringConfirmation token from previous request
shard-statusGet sharding status for database or collections
ParameterTypeDescription
collectionstringCollection name (if target is collection)
targetstringTarget type
text-searchPerform full-text search across text-indexed fields
ParameterTypeDescription
collection *stringCollection name
languagestringOptional language for text search
limitnumberMaximum results to return
searchText *stringText to search for
transactionExecutes multiple operations in a transaction (potential for complex changes)
ParameterTypeDescription
operations *stringJSON array of operations with collection, operation type, and parameters
update-documentUpdates documents which could overwrite existing data
ParameterTypeDescription
collection *stringCollection name
filter *stringFilter as JSON string
optionsstringOptions as JSON string
update *stringUpdate operations as JSON string
use-databaseSwitch to a specific database
ParameterTypeDescription
database *stringDatabase name to use
validate-collectionRun validation on a collection to check for inconsistencies
ParameterTypeDescription
collection *stringCollection name
watch-changesWatch for changes in a collection using change streams
ParameterTypeDescription
collection *stringCollection name
durationnumberDuration to watch in seconds
operationsarrayOperations to watch

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 6.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • ✓No dynamic code executionScanned 2 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiomongodb-lens.js:4
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
package-lock.json

Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.

Releases

9.1.4v9.1.4 · 23 Apr 2025
9.1.3v9.1.3 · 14 Apr 2025
9.1.0v9.1.0 · 7 Apr 2025🍃🔎 MongoDB Lens v9.1.0 Features Selective Component Enabling: Added ability to explicitly specify which components (tools, prompts, resources) should be enabled, implicitly disabling all others via the new `enabled` configuration option.…
9.0.2v9.0.2 · 3 Apr 2025
9.0.0v9.0.0 · 3 Apr 2025🍃🔎 MongoDB Lens v9.0.0 Significant Changes MongoDB Driver Upgrade: Upgraded the underlying `mongodb` Node.js driver from v3.x to v6.x. While efforts were made to maintain compatibility, this is a major version jump and could introduce…

README

The repository's README runs to about 6.6K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About furey/mongodb-lens

How do I install furey/mongodb-lens?

In Claude Code, run claude mcp add mongodb-lens -- npx -y mongodb-lens. Other MCP clients take the command after "--" in their server configuration.

Is furey/mongodb-lens safe to use with an AI agent?

Its trust score is 76 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 2 source files found that it serves MCP over stdio. Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is furey/mongodb-lens still maintained?

Yes — the last commit was 12 days ago. The repository has 207 stars and 31 forks and 2 open issues.

What tools does furey/mongodb-lens provide?

Conduid read 42 tools from the source: add-connection-alias, aggregate-data, analyze-query-patterns, analyze-schema, bulk-operations, clear-cache, collation-query, compare-schemas and 34 more. 37 of them publish their parameters, listed under Tools above.

What license is furey/mongodb-lens released under?

The repository declares the MIT license. That applies to the latest release, 9.1.4, as well.