
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
@mastra/mongodb
Advanced tools
Affected versions:
MongoDB Atlas Search implementation for Mastra, providing vector similarity search and index management using MongoDB Atlas Local or Atlas Cloud.
npm install @mastra/mongodb
import { MongoDBVector } from '@mastra/mongodb';
const vectorDB = new MongoDBVector({
id: 'mongodb-vector',
uri: 'mongodb://mongodb:mongodb@localhost:27018/?authSource=admin&directConnection=true',
dbName: 'vector_db',
});
// Connect to MongoDB
await vectorDB.connect();
// Create a new vector index (collection)
await vectorDB.createIndex({
indexName: 'my_vectors',
dimension: 3,
metric: 'cosine', // or 'euclidean', 'dotproduct'
});
// Upsert vectors
const ids = await vectorDB.upsert({
indexName: 'my_vectors',
vectors: [
[0.1, 0.2, 0.3],
[0.3, 0.4, 0.5],
],
metadata: [{ text: 'doc1' }, { text: 'doc2' }],
});
// Query vectors
const results = await vectorDB.query({
indexName: 'my_vectors',
queryVector: [0.1, 0.2, 0.3],
topK: 10,
filter: { text: 'doc1' },
includeVector: false,
});
// Clean up
await vectorDB.disconnect();
See the package changelog for version history and release notes.
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.
FAQs
MongoDB provider for Mastra - includes vector store capabilities
The npm package @mastra/mongodb receives a total of 27,451 weekly downloads. As such, @mastra/mongodb popularity was classified as popular.
We found that @mastra/mongodb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.