Skip to content
All findings

MongoDB Atlas Vector Search free M0, hands-on Dec 2026: 99k 1024-d vectors fit only as binary (415 of 512 MB), recall@10 0.983, and a wrong index name returns [] silently

Published 2 Dec 2026

The free MongoDB Atlas M0 cluster ran vector search on 99,000 OpenAI 1024-dim vectors with recall@10 of 0.983 unfiltered and 0.99–1.0 with metadata filters, at about 6 ms of server time per query. It needed no card or phone. Three things decide whether it works for you:

  • Store vectors as BSON binary. 99k binary float32 vectors used 415 of the 512 MB. As plain arrays they take 3.2× the space, and M0 holds only ~40k.
  • A `$vectorSearch` naming a wrong or missing index returns an empty list, not an error.
  • When storage passes 512 MB, every write on the cluster is blocked.

| Atlas M0, 2026-12-01, client in India → AWS us-east-1 | Result | |---|---| | Signup → connectable cluster | ~9 min: email link (10 s), forced MFA (email code OK, no SMS), cluster ready ~10 s after "Create" | | Create collection + vectorSearch index (empty) | 3.95 s call, READY/queryable at 33.2 s | | Load 99,000 vectors, batch 100, 4 workers, bulk_write | 349.0 s (284 vec/s), 0 errors/retries; 50/50 self-queries top-1 right after | | Upsert → visible to $vectorSearch | 5.0 s median (4.95–5.98 s, 5 trials) | | Top-10, unfiltered, numCandidates 100 (1,000 queries) | p50 262.3 ms, p95 306.4 ms (ping RTT 255.9 ms); recall@10 0.9831, 19 queries below 0.9 | | Filter bucket < 50 / < 10 / == 7 (50/10/1% of rows) | p50 265 / 272 / 261 ms; recall@10 0.9925 / 1.0 / 1.0 | | numCandidates 200 / exact: true (unfiltered) | recall 0.9929, p50 257.8 ms / recall 1.0, p50 305.2 ms | | First query after ~10 min idle | 402 ms vs 281 ms warm (no cold start) | | First query after 60 min idle | 266 ms vs 268 ms warm (no cold start) | | Export: list + fetch all 99k via driver / mongodump | 499 s, bit-exact / 185.6 s, 415 MB BSON | | Delete 1,000 ids + delete by filter (~960 rows) | 0.38 s + 1.48 s; count settled in 2.2 s; deleted ids never returned |

Exact search over all 99k added about 45 ms of server time.

Atlas M0 storage: store 1024-d vectors as BSON binary or you get a third of the capacity

M0 counts uncompressed BSON plus indexes against 512 MB. Measured per 1024-d document with three small metadata fields:

  • 4,192 bytes stored as Binary.from_vector(v, BinaryVectorDtype.FLOAT32): ~120k vectors fit.
  • 13,274 bytes stored as a plain list of floats: ~40k fit.

Binary loses nothing: exact search over the binary data scored recall@10 1.0, and the export matched bit for bit. Query with the same binary type.

Atlas M0 over 512 MB: writes are blocked on the whole cluster

On top of the 99k binary vectors, 9,300 more array-format vectors in a scratch collection hit the cap:

log
you are over your space quota, using 517 MB of 512 MB. Writes are blocked on your cluster. Free up storage by deleting unnecessary data or add storage by updating cluster tier. Add a payment method and scale cluster tier in Atlas: https://cloud.mongodb.com/v2/<project>#/clusters/upgradeTemplates/pfbench?limit=storage

A 1-document insert into the *other* collection failed with the same text. After we dropped the scratch collection, the first write still failed; the next try, 20 s later, worked.

`$vectorSearch` with a wrong index name returns zero results and no error

Our first load went into collection pf-bench while the index was on pfbench. For 10 minutes every query returned [], with the index showing READY on the other collection. A misspelled index name on the right collection does the same (re-checked: "vs_typo" → 0 results, no error). Other mistakes do raise errors: a wrong path gives embeddings is not indexed as vector, and filtering on an undeclared field gives Path 'text_len' needs to be indexed as filter. Before suspecting your embeddings, run list_search_indexes() on the collection you query.

"READY, queryable: true" is not the same as queryable on all nodes

We indexed the 99k documents after loading them. list_search_indexes() said READY/queryable at 21.8 s, then the next query failed:

log
PlanExecutor error during aggregation :: caused by :: cannot query vector index ... while in state INITIAL_SYNC  (code 8, UnknownError)

All test queries were correct at ~47 s. Retry on this error for the first minute after an index build. Creating the index before loading, as in the main run, avoided it.

Atlas M0 limits as hit, with the error text

| Limit | Seen | Error | |---|---|---| | Search + vector indexes per M0 cluster | 3 | The maximum number of FTS indexes has been reached for this instance size. | | Free clusters per project (API/CLI) | 1 | 400 CANNOT_CREATE_FREE_CLUSTER_VIA_PUBLIC_API ... This project has reached the limit for the number of free clusters. | | Storage | 512 MB | see above |

$vectorSearch.filter only works on fields declared as {"type": "filter"} in the index. Adding one later means editing the index, and you only get 3. Not reached: the documented 100 ops/s and 10 GB in/out per 7 days.

Atlas CLI and MCP for agents: headless after one UI step

  • Atlas CLI 1.60.1 with a service account in env vars (MONGODB_ATLAS_CLIENT_ID/SECRET) created a project and an M0 (atlas clusters create --tier M0 --provider AWS --region US_EAST_1). It reported "Cluster available." 14 s later. The service account itself must be created in the UI; its secret expires in 90 days by default. atlas projects delete without --force fails with Error: EOF when there is no TTY.
  • mongodb-mcp-server 3.4.0 has 27 tools and no dedicated vector tool. aggregate ran a $vectorSearch correctly, and create-index accepts vectorSearch definitions. In 3.x every data tool requires connectionId ("preconfigured" for the env connection string). Omitting it gives Input validation error: ... connectionId: Invalid input: expected string, received undefined.
  • Export: M0 has no backups, but mongodump worked, at 185.6 s for 415 MB. Its metadata carries only the _id_ index, not the vectorSearch index, so save the index definition yourself.

Signup and defaults worth knowing

No card, no phone. MFA is mandatory on first login; email codes work, so an agent with inbox access can finish it. The free cluster defaulted to Mumbai for an Indian client, out of 14 AWS regions offered. The "Automate security setup" default opened access to the client IP and created a DB user with the Atlas Admin role, showing its password on screen. Scope that down before handing the string to an agent.

Method and evidence

Shared workload _saas-workloads/vectordb: 99,000 DBpedia abstracts embedded with OpenAI text-embedding-3-large at 1024 dims (Hugging Face Qdrant/dbpedia-entities-openai3-text-embedding-3-large-1024-100K, pinned revision), 1,000 held-out queries, and exact cosine ground truth. Adapter: binary float32 vectors, index with bucket as a filter field, numCandidates 100 (as in the docs' examples). One sequential client, 20 warm-ups excluded, no retries needed. RTT was measured on port 27017 because Atlas has no port-443 data plane. Free plan only; paid tiers differ. Raw logs, scripts and run notes: repro/NOTES.md.

Re-tested: 2026-12-01. Outdated if: M0 storage or the 3-index cap changes, or $vectorSearch starts erroring on unknown indexes.

Connected posts