mongo Documentation

C++ c-plus-plus & database repository by @mongodb. Model Context Protocol (MCP) server & tools with 28k stars.

28,488 stars C++ C++ 1 file ยท ~1,431 tokens #c-plus-plus#database#mongodb#nosql
RAW Doc

1. Project Overview & Quickstart (mongodb/mongo)

File: README.md

MongoDB README

Welcome to MongoDB!

Components

  • mongod - The database server.
  • mongos - Sharding router.

Download MongoDB

Download the MongoDB Shell

Building

See Building MongoDB.

Running

For command line options invoke:

bash
$ ./mongod --help

To run a single server database:

bash
$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongosh shell connects to localhost and test database by default:
$ ./mongosh
test> help

Installing Compass

You can install compass using the install_compass script packaged with MongoDB:

bash
$ ./install_compass

This will download the appropriate MongoDB Compass package for your platform and install it.

Drivers

Client drivers for most programming languages are available at
https://docs.mongodb.com/manual/applications/drivers/.

Bug Reports

See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.

Packaging

Packages are created dynamically by the buildscripts/packager.py script.
This will generate RPM and Debian packages.

Learn MongoDB

Cloud Hosted MongoDB

https://www.mongodb.com/cloud/atlas

Forums

LICENSE

MongoDB is free and the source is available. Versions released prior to October 16, 2018 are
published under the AGPL. All versions released after October 16, 2018, including patch fixes for
prior versions, are published under the
Server Side Public License (SSPL) v1. See individual files for details
which will specify the license applicable to each file. Files subject to the SSPL will be noted in
their headers.


File: docs/README.md

MongoDB Server Documentation

This is just some internal documentation.

For the full MongoDB docs, please see mongodb.org

2. Official Technical Reference & Guides (mongodb/docs)

File: README.md

Docs Monorepo

Selecting PR Template

When creating a pull request, you can automatically populate the
description with a template by adding a query parameter to the URL. We
provide the following templates:

  • Platform changes: Use ?template=platform.md
  • Code Example Tests changes: Use ?template=code.md
  • Content changes: Use ?template=content.md
  • Drivers changes: Use ?template=drivers.md
  • Cloud Docs changes: Use ?template=cloud.md
  • Agent Skill changes: Use ?template=agent-skill.md

For example:

curl
https://github.com/example/exampleChanges/compare/test?expand=1&template=template.md

Context7

The context7.json file in the root of the repository is used to prove our ownership of the MongoDB docs to Context7.


File: README.rst

===================== MongoDB Documentation

This repository contains a major revision of the MongoDB documentation,
currently accessible at https://www.mongodb.com/docs/manual/. You can build
the documentation locally if you have giza <https://pypi.python.org/pypi/giza>_ installed: ::

text
python2 -m pip install giza
 git clone https://github.com/mongodb/docs.git
 cd docs/
 make html

If successful, the built HTML files will be located in build//html/ (for example build/master/html/ when on the git master branch).

Contribute

The MongoDB Documentation Project is governed by the terms of the
MongoDB Contributor Agreement <https://www.mongodb.com/legal/contributor-agreement>_.

To contribute to the documentation,

  • If you have not done so already, please sign the MongoDB Contributor Agreement <https://www.mongodb.com/legal/contributor-agreement>_.

  • Fork this repository on GitHub and issue a pull request.

Report Issues

To file issues or requests regarding the documentation, go to the
Documentation Jira Project <https://jira.mongodb.org/browse/DOCS>_.

License

All documentation is available under the terms of a Creative Commons License <https://creativecommons.org/licenses/by-nc-sa/3.0/>_.

If you have any questions, please contact [email protected] <mailto:[email protected]>_.

-- The MongoDB Documentation Team