Loading…

MongoDB
Database technology company providing a document-oriented database and cloud data platform for application development.
- 160 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Introducing the MongoDB Vercel AI SDK Integration: Persistent Memory for AI Applications
The MongoDB Vercel AI SDK integration provides AI applications built with Vercel’s SDK with a persistent memory store in MongoDB Atlas that retains conversations, user facts, and past events across sessions. It is now open source, licensed under Apache 2.0, and generally available on npm for AI SDK versions 6 and 7. The integration automatically categorizes five types of memory—session, semantic, procedural, episodic, and scratchpad—each with a different retention policy, where semantic and procedural memories are versioned and scratchpad notes expire after an hour. Semantic, procedural, and episodic memories use MongoDB Vector Search, which the integration auto-configures by creating vector indexes and detecting embedding dimensions at startup. For production, developers can enforce reliable session history, isolate data per customer using filter fields such as tenant_id, and customize collection and index names.
Introducing the MongoDB Google ADK Integration: Durable Memory for Agent State
The MongoDB Google ADK Integration provides developers with durable memory for agent state using MongoDB as the unified data platform. It introduces MongoDbSessionService to persist sessions, events, and scoped state with optimistic concurrency control, and MongoDBMemoryService that ingests session events idempotently and recalls memories through keyword matching across sessions. Working with Google ADK 2.0 and the Gemini Enterprise Agent Platform, the integration supports MongoDB Atlas and self-managed MongoDB 8.0+ deployments. Built-in search capabilities, including vector search via Voyage AI embeddings and hybrid search combining vector and full-text search through the $rankFusion stage, give agents fast access to operational data without separate systems. This unified architecture means developers can keep agent state, searchable data, and application records in the same database, eliminating separate databases, search engines, and synchronization pipelines.
Simplifying Enterprise Security Management: MongoDB Atlas Logs in Microsoft Sentinel
MongoDB Atlas now integrates directly with Microsoft Sentinel, Microsoft’s cloud-native and AI-ready SIEM platform. The MongoDB Atlas Data Connector uses an Azure Function to pull logs from Atlas clusters through the Atlas Admin API and stream them into Sentinel via the Log Ingestion API, with no manual connectors or scripts required. Setup involves searching for the connector in the Microsoft Marketplace or Sentinel Content Hub, then deploying with Log Analytics workspace details, MongoDB Project ID, clusters, and service account credentials. Once deployed, logs appear in the MDBALogTable_CL table with schema including timestamp, category, severity, and message, ready for querying with KQL, visualization in workbooks, and automation via Logic Apps. This integration gives security teams unified visibility across Atlas workloads and their cloud estate, simplifying incident detection, governance, and compliance.
Connect To A MongoDB Database Using Node.js
This tutorial walks through connecting a Node.js script to a MongoDB database, listing the cluster’s databases, and printing the results to the console. It begins with prerequisites: a supported Node.js version, the MongoDB Node.js Driver installed via npm, and a free MongoDB Atlas cluster loaded with sample data. The Atlas connection wizard adds the current IP address, creates a MongoDB user, and supplies a connection string for Node.js driver version 3.6 or later. The script imports MongoClient, defines an asynchronous main function, creates a client with the connection URI, and awaits client.connect(). Database calls sit inside try/catch, with a finally block closing the connection, and a listDatabases function retrieves and prints the database names before the script runs with node connection.js.
Enforce Data Sovereignty With MongoDB Atlas Resource Policies
MongoDB Atlas Resource Policies are organization-level controls that enforce infrastructure governance rules using the open-source Cedar policy language, acting as intelligent guardrails that constrain configuration options while maintaining developer flexibility. Two key policies are Restrict Cloud Hyperscaler, which controls which cloud platforms can be used, and Restrict Cloud Hyperscaler Region, which restricts deployments to specific geographic regions. These policies ensure compliance with data residency regulations like GDPR and CCPA and prevent cost overruns. A global financial services company combined hyperscaler and region policies with network security controls to keep customer data in GDPR-compliant AWS regions, achieving zero compliance violations in a subsequent audit. Resource policies are enforced automatically, preventing noncompliant configurations before creation while existing noncompliant clusters continue running, and can be managed through the Atlas UI, API, Terraform, or AWS CloudFormation at no additional cost.
LEAF: Distillation of State‑of‑the‑Art Text Embedding Models
MongoDB Research introduced LEAF, a knowledge distillation framework that trains compact text embedding models to approximate a larger teacher’s embedding space. Unlike earlier methods that align attention matrices or hidden states across layers, LEAF aligns only the teacher and student output embeddings using an L2 loss. The resulting students are interoperable with their teachers, enabling asymmetric retrieval where documents use a larger model and queries use a fast local model. Two 23M-parameter Apache 2.0 models were released: mdbr-leaf-ir for retrieval and RAG, and mdbr-leaf-mt for classification, clustering, sentence similarity, and summarization. LEAF retains up to 97% of teacher performance while being 5×–15× smaller and 7×–24× faster; mdbr-leaf-ir ranks first on BEIR and RTEB for models up to 100M parameters, and mdbr-leaf-mt ranks first on MTEB v2 English for models up to 30M.
Secure MongoDB Atlas With Automated IP Access List Policies
MongoDB Atlas IP access lists control which IP addresses or CIDR blocks can connect to clusters in a project, and each project supports up to 200 entries. Manual management drifts as teams add convenience entries, leaving security teams without visibility until an audit or incident. MongoDB Atlas Resource Policies operate at the organization level and automatically apply to all projects and clusters, blocking insecure configurations before deployment. Two examples are an IP address allowlist that permits only specified addresses and an empty IP access list policy that forces access through private endpoints or VPC peering. Enforcement is consistent across teams, generates activity feed events for auditability, and is included with all Atlas deployments at no additional cost.
Layer MongoDB Atlas Resource Policies for Defense-in-Depth
Database security requires multiple independent layers of protection, known as defense-in-depth, to avoid a single point of failure and ensure resilience against attacks. MongoDB Atlas Resource Policies enable this by preventing misconfigurations before deployment across network, geographic, and protocol dimensions, and are included at no additional cost. The network layer controls IP access by blocking wildcard addresses, enforcing allowlists, or requiring empty IP access lists for private networking, while geographic policies restrict cloud provider and region for compliance. Protocol policies enforce TLS versions and cipher suites for secure connections, and the post recommends a phased rollout starting with quick wins like blocking wildcard IPs, then incrementally adding region restrictions, TLS enforcement, and IP allowlists. When layered together, these policies create synergistic protection, as demonstrated in examples for financial services and healthcare compliance stacks, transforming security from a checklist into an architectural property.
Financial Crime Mitigation with MongoDB / Part IV: Agentic AI for Case Management
The article describes an agentic AI pipeline for enhanced due diligence (EDD) in financial crime case management, built with LangGraph and MongoDB. It aims to replace manual, rule-based AML workflows with specialized agents that triage suspicious activity, gather evidence, and draft Suspicious Activity Report (SAR) narratives. The pipeline uses a team of agents for notification, data gathering, case analysis, SAR authorship, and compliance quality assurance. A human-in-the-loop pattern ensures each decision can be traced for auditability. MongoDB serves as the durable state backbone, while LangGraph handles orchestration and dynamic routing. The author emphasizes that enterprise agentic AI must centralize state in a persistent store rather than rely on the agent as the source of truth.
Automated, Secure, and Scalable: Reference Implementation for Atlas on Azure
MongoDB has released a reference implementation for deploying Atlas on Microsoft Azure, aimed at teams that need secure, governed, production-ready database environments built on a standardized cloud foundation. The toolkit provides Terraform infrastructure-as-code templates that provision and configure single-region and multi-region Atlas clusters through a DevOps pipeline with a manual approval gate. It also automates private endpoints inside the customer Azure VNet, network security groups, a NAT gateway, and VNet peering between multi-region application nodes. An Azure Function App periodically queries the Atlas API for health and performance metrics and displays them in Application Insights dashboards, while an optional Web App tests application-to-Atlas connectivity. The implementation is intended to give development teams a repeatable, pre-configured Atlas environment that aligns with Azure and MongoDB architecture standards and enterprise governance requirements.
Building Next-gen AI agents: The MongoDB Atlas-Microsoft Foundry Integration
Microsoft and MongoDB announced the integration of the MongoDB MCP Server into the Microsoft Azure Foundry tools catalog, enabling developers to build context-aware AI agents. The MCP Server, originally introduced by Anthropic, has become the de facto standard for communication between AI agents and external data systems. It bridges Microsoft Foundry’s Agent Service with MongoDB Atlas, allowing agents to retrieve knowledge and perform actions on live data. The server translates agentic requests into structured, policy-compliant queries to MongoDB Atlas, supporting retrieval-augmented generation (RAG) and database operations such as insert, update, delete, and create indexes, plus Atlas operations like managing clusters and users. Enterprises can control data access through MongoDB’s native APIs and security model, providing a governed, scalable architecture that accelerates the journey from prototypes to production-ready agents.
Introducing Atlas App Connections: Secure, One-Click Access for AI Tools
MongoDB Atlas App Connections enables builders to securely connect AI coding tools to their MongoDB Atlas account with a single click, eliminating the need to share long-lived service account credentials. Built on OAuth 2.1, it allows AI clients to act on the user’s behalf through the Atlas MCP Server without generating or managing credentials. Supported tools include ChatGPT, Claude, Codex CLI, Cursor, Devin, and Grok, which can provision, manage, and query Atlas resources based on the user’s existing permissions. Administrators can opt in to delegation, set read-only or full access, and revoke connections at any time, with all actions attributed to both the application and the user. The feature is available now, with a five-step connection flow that includes installing a plugin, requesting connection, and approving via a consent screen.
Quick Start: C# And MongoDB - Starting And Setup
This quick start guide demonstrates the initial setup for connecting C# applications to MongoDB. The demonstration uses Visual Studio 2019 on Windows 10 and connects to a MongoDB Atlas cluster that has the sample dataset pre-installed. Setup involves creating a .NET Core console application named MongoDBConnectionDemo and installing the MongoDB.Driver version 2.9.1 via NuGet’s Manage Packages for Solution. The code adds a using MongoDB.Driver directive, creates a MongoClient with the Atlas connection string, retrieves the list of databases using ListDatabaseNames, and prints each database name to the console in just over 20 lines. This article is the first in a Quick Start series that will cover creating, reading, updating, and deleting documents, mapping MongoDB documents to C# objects, using the MongoDB aggregation pipeline, and integrating LINQ queries with MongoDB.
Unlocking AI Search: Introducing Automated Embedding in MongoDB Vector Search
MongoDB introduced Automated Embedding in MongoDB Vector Search, now in Public Preview in Community Edition, to remove the complexity of manual vector embedding generation and synchronization. The feature lets developers select an embedding model, including state-of-the-art Voyage AI models such as voyage-4-large and voyage-code-3, directly when creating a vector search index. The system automatically generates and synchronizes embeddings during index creation, document writes, and queries, eliminating the need for external embedding APIs and custom MLOps pipelines. Asynchronous dynamic batch processing and built-in retries handle large-scale ingestion without blocking database operations. Customers testing the feature reported converting weeks of engineering work into low-maintenance production workflows and seeing immediate performance improvements.
Bring Live MongoDB Atlas Data Into Microsoft 365 Copilot
MongoDB has made its federated Copilot connector for MongoDB Atlas generally available, giving organizations a governed way to bring live operational data into Microsoft 365 Copilot experiences. The connector addresses the gap between questions asked in productivity tools and answers held in operational applications built on Atlas. It uses MongoDB’s managed remote Model Context Protocol server so Copilot can query Atlas in real time rather than relying on a static copy. Administrators approve and enable the connector in the Microsoft 365 admin center, after which users sign in and their existing Atlas permissions carry through to each query. The connector is read-only, keeps Atlas as the system of record, avoids indexing a copy of Atlas data into Microsoft 365, and allows administrators to audit activity in Microsoft Purview.
Introducing MongoDB Atlas Sharding Advisor: Know When and How to Scale Sharded Clusters
As applications grow, database teams face complex decisions about data distribution and scaling, and MongoDB Atlas Sharding Advisor helps by bringing sharding insights, recommendations, and shard key analysis into a unified view for dedicated Atlas deployments running MongoDB 8.0 or later. Sharding Insights consolidates shard-level, collection-level, and mongos metrics using existing Atlas infrastructure, requiring no additional agents or separate telemetry pipelines. Sharding Recommendations flag conditions such as a collection growing beyond a single shard’s capacity, uneven load across shards, or shards approaching capacity, and provide context and suggested next steps without automatic remediation. The Shard Key Analyzer evaluates candidate keys on cardinality, frequency, and monotonicity using the analyzeShardKey command, and can incorporate read and write distribution data when query sampling is configured. It supports single-field, compound, and hashed shard-key analysis, helping teams compare candidates with evidence rather than assumptions alone, and enabling more informed decisions about their sharded deployments.
Agentic Smart Payment Routing with MongoDB / Part I: The Multi-Modal Blueprint
False payment declines cost global businesses over $50 billion annually, with 45% of shoppers abandoning purchases after a single checkout decline. Scripted routing rules fall short due to dimensionality explosion, unstructured error interpretation, and multi-constraint trade-offs. The proposed architecture separates an asynchronous multi-agent control plane, which continuously analyzes telemetry, simulates rerouting options, and enforces cost guardrails, from a fast execution data plane that queries deterministic JSON rules in milliseconds. Specialized agents automate a five-step optimization loop: baseline analysis, segment performance, routing simulation, cost impact, and recommendation with human approval. MongoDB stores flexible payment context documents, enables vector search for similar scenarios, and serves active rules for low-latency execution, supporting the control-execution separation.
How to Rescue Lost Revenue with Agentic AI Smart Payment Routing
Global businesses lose 1.5% to 2.2% of annual revenue to poor payment performance and false declines, with 45% of shoppers abandoning purchases after a single checkout decline, yet payment ops teams remain trapped in manual CSV and spreadsheet cycles. Traditional scripted routing fails due to three limitations: dimensionality explosion from complex intersections of rail, jurisdiction, and asset type; unstructured error interpretation from inconsistent decline codes; and multi-constraint trade-offs between authorization rates and processing fees. An agentic architecture decouples routing intelligence from checkout execution using an asynchronous multi-agent control plane and a high-speed execution data plane. The control plane automates a five-step optimization loop—baseline analysis, segment performance, routing simulation, cost impact, and recommendation—while the data plane deterministically queries active declarative rules in milliseconds. MongoDB stores telemetry, vectors, and active JSON rules, and Atlas Agent Engine manages the agent lifecycle with native memory, safety controls, and support for MCP and A2A standards.
Getting Started With MongoDB And AWS CodeWhisperer
AWS CodeWhisperer, now part of Amazon Q Developer, is an AI code assistant trained on billions of lines of code that generates real-time suggestions from snippets to full functions. MongoDB collaborated with AWS Data Science to fine-tune CodeWhisperer’s foundational models specifically for MongoDB, improving code suggestion quality for developers. This tutorial focuses on setting up CodeWhisperer in VS Code via the AWS Toolkit extension, though it also supports other IDEs like AWS Cloud9 and JupyterLab. Users can start without an AWS account, and the service is currently free for individual users. The guide covers installation, authorization with a Builder ID, navigating suggestions with TAB and arrow keys, and best practices like writing descriptive comments and using import statements.
MongoDB.local London 2024: Better Applications, Faster
MongoDB.local London 2024 marked the nineteenth stop of the 2024 tour, where MongoDB announced the general availability of MongoDB 8.0. The new version delivers 36% better read throughput, 56% faster bulk writes, and 20% faster concurrent writes during data replication. Atlas Vector Search introduced vector quantization, reducing memory by up to 96% and enabling higher-scale AI applications at lower cost. The MongoDB Copilot Participant for GitHub Copilot entered public preview, providing domain-specific AI assistance within VS Code. Additional updates included multicluster support for the Enterprise Kubernetes Operator and general availability of Atlas Search and Vector Search via the Atlas CLI and Docker.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.