Decompass FAQ

Everything people ask about the fast, read-only MongoDB GUI: safety, writes, platforms, Atlas, and how it compares to Compass.

Is Decompass safe to use on a production database?

It's built for that. Decompass's code has no insert, update, replace, delete, or drop calls, and it rejects $out and $merge aggregation stages. Queries run with a server-side maxTimeMS (10 seconds by default), results are capped at 500 documents and 32 MB, and reads prefer secondaries (secondaryPreferred).

For a hard guarantee that doesn't depend on any client, connect with a database user that has only the built-in read role. See why read-only.

Can Decompass modify, insert, or delete data?

No. There's no write code to turn on: Decompass doesn't expose any write endpoints or buttons. Even if someone sends an aggregation pipeline containing $out or $merge, the server refuses it with “write stage $out not allowed in read-only explorer”.

How do I write data if Decompass is read-only?

Use mongosh. Right-click a database in Decompass (or use its mongosh link) to open a mongosh session for that database, then run commands such as db.users.updateOne({ _id: id }, { $set: { plan: "pro" } }). Keeping writes in a separate, deliberate tool is the whole point.

Is Decompass free?

Decompass has no accounts, sign-up, or paid tier in its code, and you run it yourself. It talks only to the MongoDB servers you configure. A software license hasn't been published yet, so check the project repository for terms before redistributing it.

Why is Decompass faster than Compass?

Decompass is built for clusters with billions of documents and many saved connections. It caches database and collection lists (60 s) and stats (30 s), shows estimated counts instantly and runs exact counts in the background, analyzes schema from a bounded sample instead of a scan, and runs heavy jobs in a separate “slow lane” so they can't block fast metadata calls. It's a small local Python server plus your browser rather than a desktop app. We haven't published head-to-head benchmarks, so try it on your own data.

Is Decompass made by MongoDB?

No. Decompass is an independent project. It is not affiliated with, endorsed by, or sponsored by MongoDB, Inc. It works with MongoDB through the official PyMongo driver.

Which operating systems does Decompass run on?

Any OS with Python 3.10+: Windows, macOS, and Linux, running from source. You can also build a single self-contained Windows Decompass.exe (about 30 MB) with PyInstaller. The always-on background-task scripts are Windows-only.

Does it work with MongoDB Atlas and mongodb+srv:// URIs?

Yes. Add a connection with any mongodb:// or mongodb+srv:// URI. For production clusters, use a database user that has only read access.

Doesn't Compass have a read-only mode too?

Yes. Compass has a “Set Read-Only Mode” setting that removes write and delete capabilities. The difference is that Decompass is read-only with no switch at all: the write code doesn't exist. Decompass is also designed for speed on very large clusters. See the full comparison.

What query syntax does Decompass accept?

MongoDB shell syntax, like Compass, not just strict JSON: unquoted keys, single quotes, regex literals, trailing commas, and helpers such as ObjectId(), ISODate(), NumberLong(), NumberDecimal(), Timestamp(), BinData(), and UUID(). It's a parser, not a JavaScript evaluator, so expressions like Date.now() - 1000 aren't supported.

Can I build aggregation pipelines?

Yes. Pipeline tabs let you add, toggle, and preview each stage, and they open views with their definition as locked stages. Export code generates mongosh, Python, Node.js, and Java. Write stages ($out, $merge) are blocked, and allowDiskUse stays off so a heavy pipeline can't quietly spill to disk on a shared cluster.

Can a big query hurt my cluster?

Any read uses some server resources, but Decompass limits the impact. Queries have timeouts (10 s by default, 30 minutes at most). Anything over 60 s asks for confirmation and runs in a background lane, with at most 2 per connection. Cancel makes a best-effort attempt to kill the operation on the server, which needs the inprog and killop privileges.

Where are my connection strings stored?

In connections.json next to the app (or next to the .exe), in plain text. Keep that file private. Idle connections are closed after about 5 minutes and reopen automatically when you use them.

Can other websites or people on my network reach Decompass?

Decompass binds to 127.0.0.1 only. Its API also requires a localhost Host header, a same-origin Origin, and a custom X-Decompass header. That blocks other web pages you have open from driving it, including through CSRF or DNS rebinding.

Does the mongosh button work on macOS and Linux?

On Windows it opens mongosh in a new console window. On macOS and Linux the launch is best-effort and starts mongosh from the Decompass process, so most people just run mongosh "<uri>" in their own terminal. Decompass finds mongosh via $DECOMPASS_MONGOSH or your PATH.

Still curious? Read why read-only, see the comparison, or get started.