MongoDB plugs a memory store into Vercel AI SDK: agents keep user context across sessions, with vector search in the same database
MongoDB released and open-sourced an integration that turns MongoDB Atlas into the persistent memory store for AI applications and agents built with the Vercel AI SDK. The SDK itself ships no database, so an application starts every conversation with no knowledge of the last one, and developers had to design schemas, write cleanup jobs and set up vector search themselves. The integration sorts memories into session, semantic, procedural, episodic and scratchpad tiers and stores them as Atlas documents, with the semantic, procedural and episodic tiers retrieved by meaning through MongoDB Vector Search rather than keywords, and indexes and embedding dimensions handled at startup.