You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Compatibility with Older MongoDB Versions](#installation-compatibility-with-older-mongodb-versions)
193
194
194
195
### Installation: NPX
195
196
@@ -320,6 +321,63 @@ The server should respond with a list of databases in your MongoDB instance, for
320
321
321
322
MongoDB Lens is now installed and ready to accept MCP requests.
322
323
324
+
### Installation: Compatibility with Older MongoDB Versions
325
+
326
+
If connecting to a MongoDB instance with a version `< 4.0`, the MongoDB Node.js driver used by the latest version of MongoDB Lens will not be compatible. Specifically, MongoDB Node.js driver versions `4.0.0` and above require MongoDB version `4.0` or higher.
327
+
328
+
To use MongoDB Lens with older MongoDB instances, you need to use a MongoDB Node.js driver version from the `3.x` series (e.g. `3.7.4` which is compatible with MongoDB `3.6`).
This will use the older driver version compatible with your MongoDB instance.
359
+
360
+
> [!NOTE]<br>
361
+
> You may also need to revert [this commit](https://github.com/furey/mongodb-lens/commit/603b28cbde72fcd62a15cd324afc93028380a054) to add back `useNewUrlParser` and `useUnifiedTopology` MongoDB configuration options.
362
+
363
+
#### Older MongoDB Versions: Using NPX or Docker
364
+
365
+
If you prefer to use NPX or Docker, you'll need to use an older version of MongoDB Lens that was published with a compatible driver.
366
+
367
+
For example, MongoDB Lens `8.3.0` uses MongoDB Node.js driver `3.7.4` (see: [`package-lock.json`](https://github.com/furey/mongodb-lens/blob/8.3.0/package-lock.json#L944-L945)).
368
+
369
+
To run an older version of MongoDB Lens using NPX, specify the version tag:
370
+
371
+
```console
372
+
npx -y mongodb-lens@8.3.0
373
+
```
374
+
375
+
Similarly for Docker:
376
+
377
+
```console
378
+
docker run --rm -i --network=host furey/mongodb-lens:8.3.0
0 commit comments