# mongodb/mongo-csharp-driver

The Official C# .NET Driver for MongoDB

Repository: https://github.com/mongodb/mongo-csharp-driver
Canonical: https://ross.abutalabs.com/products/mongo-csharp-driver
Homepage: https://www.mongodb.com/docs/drivers/csharp/current/
Language: C#
License: Apache-2.0
License Family: permissive
Topics: mongodb, csharp, csharp-library, dotnet-framework, nosql
Last push: 2026-08-26T20:22:37+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 85, longevity 100
- inputs: {"age_days": 5936, "days_push": 7, "days_rel": 21, "gap_med": 33, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3241, forks 1271 (observed 2026-08-28T04:07:50.506450+00:00)

## What it is
The official MongoDB driver for C# and .NET, providing a client API for connecting to, querying, and writing to MongoDB databases. It supports both typed documents via LINQ-style expressions and untyped BsonDocument access.

## Use cases
- connect to mongodb from c#
- query mongodb with linq in dotnet
- insert and find documents in mongodb using c#
- map c# classes to mongodb collections
- use mongodb with asp.net core
- work with bson documents in .net

## When to choose
- you are building a .NET or C# application that stores data in MongoDB
- you want an officially supported, semver-versioned MongoDB client with typed and untyped document APIs
- you need LINQ-style strongly typed queries against MongoDB collections

## When to avoid
- your project uses a language other than C#/.NET
- you need a relational SQL database driver instead of a document database
- you are using a community-supported MongoDB client for another ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database, serialization
- domain: databases, backend, web-development, developer-tools
- platform: dotnet, cross-platform, cloud
- tags: mongodb, nosql, csharp, official-driver, bson, async

## Member repositories
- mongodb/mongo-csharp-driver (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:50.506450+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:24:31.622713+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-csharp-driver (fetched 2026-08-28T04:07:50.506450+00:00, sha 57fe111935cc)
  - homepage: https://www.mongodb.com/docs/drivers/csharp/current/ (fetched 2026-08-29T09:37:31.944054+00:00, sha 8ab1c0d20601)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T09:37:31.954659+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T09:37:31.956556+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T09:37:31.958615+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T09:37:31.961239+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T09:37:31.963898+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T09:37:31.965963+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T09:37:31.968026+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
