MCP server · Audited from source
MongoDB Lens MCP server
by furey/mongodb-lensMIT licenceAudited 6 Oct 2026 · source ac94b5c15569
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
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
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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 npm
mongodb-lensat 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
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
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
@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
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
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.
| Tool | Risk | What it does |
|---|---|---|
clear-cache | destructive | Clear memory caches to ensure fresh data |
delete-document | destructive | Delete document(s) (requires confirmation) |
drop-collection | destructive | Drop a collection (requires confirmation) |
drop-database | destructive | Drop a database (requires confirmation) |
drop-index | destructive | Drop an existing index from a collection |
drop-user | destructive | Drop an existing database user |
add-connection-alias | write | Add a new MongoDB connection alias |
aggregate-data | write | Run aggregation pipelines |
create-collection | write | Create a new collection with options |
create-database | write | Create a new MongoDB database with option to switch |
create-index | write | Create new index on collection |
create-timeseries | write | Create a time series collection for temporal data |
create-user | write | Create a new database user |
find-documents | write | Run queries with filters and projections |
geo-query | write | Run geospatial queries with various operators |
insert-document | write | Insert one or multiple documents into a collection |
rename-collection | write | Rename an existing collection |
transaction | write | Execute multiple operations in a single transaction |
update-document | write | Update specific documents in a collection |
validate-collection | write | Run validation on a collection to check for inconsistencies |
analyze-query-patterns | read | Analyze query patterns and suggest optimizations |
analyze-schema | read | Automatically infer schema from collection |
bulk-operations | read | Perform bulk inserts, updates, or deletes |
collation-query | read | Find documents with language-specific collation rules |
compare-schemas | read | Compare schemas between two collections |
connect-mongodb | read | Connect to a different MongoDB URI or alias |
connect-original | read | Connect back to the original MongoDB URI used at startup |
count-documents | read | Count documents with optional filter |
current-database | read | Get the name of the current database |
distinct-values | read | Get unique values for a field |
explain-query | read | Analyze query performance |
export-data | read | Export query results to formatted JSON or CSV |
generate-schema-validator | read | Generate a JSON Schema validator for a collection |
get-stats | read | Get database or collection statistics |
gridfs-operation | read | Manage large files with GridFS |
list-collections | read | List collections in the current database |
list-connections | read | List all configured MongoDB connection aliases |
list-databases | read | List all accessible MongoDB databases |
shard-status | read | Get sharding status for database or collections |
text-search | read | Perform full-text search across text-indexed fields |
use-database | read | Switch to a specific database |
watch-changes | read | Watch 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]{
"mcpServers": {
"mongodb-lens": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS": "${CONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS}"
}
}
}
}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
- !CAUTION B 89 / 100
First audit ·
ac94b5c15569
README badge
For maintainers · updates on every re-audit
[](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?
What tools does MongoDB Lens expose?
Is MongoDB Lens safe to connect to an agent?
What credentials does MongoDB Lens need?
How does MongoDB Lens run?
How current is this page?
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.
- What is the MongoDB Lens MCP server?
- What tools does MongoDB Lens expose?
- Is MongoDB Lens safe to connect to an agent?