MongoDB Vector Search

cloudFree M0 cluster (512MB)$57+/mo M10 dedicatedSearch Nodes billed separatelyCustom Enterprise

Best for

Teams already on MongoDB who want vector search next to operational data — one driver, one query language, one backup story

Limitations

Vector indexes are tied to Atlas (not self-hosted Community Server); search nodes add cost; index build times can be long for large collections

Features

Hybrid Search
Combined dense vector + sparse/keyword (BM25) search in one query
Metadata Filtering
Pre/post filtering by structured metadata — JSON payloads, tags, dates
Multi Tenancy
Native namespace or tenant isolation for per-user or per-agent vector spaces
Managed Embeddings
Built-in embedding generation at ingest and query time — no separate embedding service required
Mcp Server
Official Model Context Protocol server exposing vector operations as agent tools
Serverless
Pay-per-use scaling with separated storage and compute

Frameworks

langchainllamaindexvercel-aihaystack

SDK Languages

pythonjavascripttypescriptgojavacsharprubyphprust

Compliance

soc2hipaagdprpci-dssiso27001

MongoDB Vector Search

MongoDB Vector Search, a feature hosted on MongoDB Atlas, adds dense vector retrieval and hybrid (vector + Atlas Search BM25) queries to the operational MongoDB database many teams already run. Vectors live alongside the document they describe, so a single $vectorSearch aggregation can retrieve, filter, and join in one stage — no dual-write between an operational store and a vector store.

For agents, the value is the unified data model. The same document holds your business data, its metadata, and its embedding. You can scope queries with rich $match filters, run hybrid search through $rankFusion, and stream changes to keep embeddings fresh via change streams. MongoDB ships a first-party MCP server that exposes Atlas collection and vector search operations as agent tools.

MongoDB Atlas runs the vector workload on dedicated Search Nodes that scale independently of the main cluster — effectively a serverless-style storage/compute split — and Atlas Stream Processing can keep embeddings in sync with upstream sources.

The tradeoff is platform lock-in: Vector Search is an Atlas feature, not part of self-hosted MongoDB Community Server. Teams that need fully air-gapped or on-premise deployments need MongoDB Enterprise Advanced with Search Nodes or a different engine altogether.

Agent-specific features:

  • Vectors stored next to operational data — no sync pipeline between two databases
  • Hybrid search via $rankFusion combining $vectorSearch and Atlas Search (BM25)
  • Independent Atlas Search Nodes scale vector workload separately from operational load
  • First-party MongoDB MCP server for agent-driven CRUD and vector search
  • Built-in embedding model bindings for ingestion via Atlas Stream Processing
Last verified: 2026-06-10Verified by: editorial