The official MongoDB driver for .NET and C#. Add it to applications to connect, run CRUD, aggregate data, and manage indexes against MongoDB.
Overview
The MongoDB .NET/C# driver is MongoDB’s supported client for building applications that talk to MongoDB from C# and the broader .NET ecosystem. You add the driver as a dependency, open a connection to a deployment, and work with databases and collections through a typed or untyped API.
Documentation covers installation, connection setup, and everyday data work: finding, updating, and deleting documents, running aggregation pipelines, creating and managing indexes, and executing database commands. Sections also address serialization, document format options, logging and monitoring, and securing data through authentication and encryption.
The driver aligns with MongoDB’s cross-driver specifications for familiar patterns. Material on MongoDB Search and MongoDB Vector Search explains how to build full-text and semantic search against Atlas data. Time series collections and API reference material round out the guides.
Typed and untyped document workflows are both documented, with quick starts for new projects and compatibility notes kept in the reference section rather than tied to a particular hosting model.
Key features
- Connect and configure MongoDB deployments
- CRUD on databases and collections
- Aggregation operations
- Index creation and management
- Database command execution
- MongoDB Search integration
- MongoDB Vector Search on Atlas
- Serialization and document formats
Use cases
- .NET apps using MongoDB
- Typed or untyped document access
- Aggregation and analytics pipelines
- Full-text search with MongoDB Search
- Time series data storage