Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

MongoDB Lens MCP server

by furey/mongodb-lensMIT licenceAudited 6 Oct 2026 · source ac94b5c15569

npm mongodb-lens 9.1.4stdio★ 207
!CAUTIONGrade B · 89/100 · 6 Oct 2026 · ac94b5c
207GitHub stars

Is it safe? With care — CAUTION, grade B (89/100). It exposes 42 tools: 22 read, 14 write and 6 destructive. The audit recorded 4 findings (0 critical, 0 high, 2 medium, 1 low). Maintainer's description: 🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “MongoDB Lens MCP server (furey/mongodb-lens)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/furey/mongodb-lens

Trust audit

Audit 0.4.1 · full source read 6 Oct 2026

Trust score89/100!CAUTION B
0 critical0 high2 medium1 low1 info

4 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared1 observation
  • NetworkNone observedNothing seen in the source
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 2 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner fureyUser accountAccount type recorded when we read the repository.
  • PackagePublished on npmmongodb-lens at version 9.1.4
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push18 months agoActivity of the repository when we read it.
  • Source commit readac94b5c15569The audit covers exactly this commit, read on 6 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory42 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (4)

Sorted by severity

MEDIUMInsecure cryptocrypto.weak_random · mongodb-lens.js:5429
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return String(Math.floor(Math.random() * maxToken)).padStart(config.security.tokenLength, '0')
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
clear-cache, delete-document, drop-collection, drop-database, drop-index, drop-user
Why
6 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, cross-env, lodash, mongodb, strip-json-comments, zod, mongodb-memory-server
Why
7 dependency range(s) float
Fix
pin exact versions or ship a lockfile
INFOPrompt injectionprompt.credential_read · README.md:875
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Using read-only credentials is a simple yet effective way to enforce security boundaries, especially when you're poking around schemas or running ad-hoc queries.
Why
asks the agent to read credentials
Fix
—

Tools it exposes

42 declared in source · 6 destructive

22 read14 write6 destructive

6 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
clear-cachedestructiveClear memory caches to ensure fresh data
delete-documentdestructiveDelete document(s) (requires confirmation)
drop-collectiondestructiveDrop a collection (requires confirmation)
drop-databasedestructiveDrop a database (requires confirmation)
drop-indexdestructiveDrop an existing index from a collection
drop-userdestructiveDrop an existing database user
add-connection-aliaswriteAdd a new MongoDB connection alias
aggregate-datawriteRun aggregation pipelines
create-collectionwriteCreate a new collection with options
create-databasewriteCreate a new MongoDB database with option to switch
create-indexwriteCreate new index on collection
create-timeserieswriteCreate a time series collection for temporal data
create-userwriteCreate a new database user
find-documentswriteRun queries with filters and projections
geo-querywriteRun geospatial queries with various operators
insert-documentwriteInsert one or multiple documents into a collection
rename-collectionwriteRename an existing collection
transactionwriteExecute multiple operations in a single transaction
update-documentwriteUpdate specific documents in a collection
validate-collectionwriteRun validation on a collection to check for inconsistencies
analyze-query-patternsreadAnalyze query patterns and suggest optimizations
analyze-schemareadAutomatically infer schema from collection
bulk-operationsreadPerform bulk inserts, updates, or deletes
collation-queryreadFind documents with language-specific collation rules
compare-schemasreadCompare schemas between two collections
connect-mongodbreadConnect to a different MongoDB URI or alias
connect-originalreadConnect back to the original MongoDB URI used at startup
count-documentsreadCount documents with optional filter
current-databasereadGet the name of the current database
distinct-valuesreadGet unique values for a field
explain-queryreadAnalyze query performance
export-datareadExport query results to formatted JSON or CSV
generate-schema-validatorreadGenerate a JSON Schema validator for a collection
get-statsreadGet database or collection statistics
gridfs-operationreadManage large files with GridFS
list-collectionsreadList collections in the current database
list-connectionsreadList all configured MongoDB connection aliases
list-databasesreadList all accessible MongoDB databases
shard-statusreadGet sharding status for database or collections
text-searchreadPerform full-text search across text-indexed fields
use-databasereadSwitch to a specific database
watch-changesreadWatch for changes in a collection using change streams

Install

Package version 9.1.4 · audited commit ac94b5c

Read the findings first. The most severe is Insecure crypto (medium) at mongodb-lens.js.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 9.1.4. The audit covers commit ac94b5c only.

claude mcp add mongodb-lens --env CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS=${CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS} -- npx -y [email protected]

The command pins the package version recorded in the source (9.1.4); the audit covers commit ac94b5c15569. Transport: stdio. Reads this environment variable: CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS. Give it the narrowest token it needs.

Audit history

  1. !CAUTION B 89 / 100

    First audit · ac94b5c15569

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/furey/mongodb-lens/badge.svg)](https://modelsatlas.com/mcp/furey/mongodb-lens/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about MongoDB Lens MCP server

What is the MongoDB Lens MCP server?
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
What tools does MongoDB Lens expose?
42 in total: 22 read-only, 14 that write, and 6 that can delete or overwrite (clear-cache, delete-document, drop-collection, drop-database, drop-index). Every one is listed on this page with its risk.
Is MongoDB Lens safe to connect to an agent?
With care. The audit graded it B (89/100) and found 4 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 6 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does MongoDB Lens need?
It reads CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does MongoDB Lens run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mongodb-lens at 9.1.4.
How current is this page?
The grade is for one exact copy of the source (ac94b5c15569), read on 2026-10-06. The repository is watched and re-audited when it changes.

Sources

  • furey/mongodb-lens on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit ac94b5c15569Observed · 6 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.