# MongoDB MCP Server

[BASE product page](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/>) · [Resource](<https://github.com/mongodb-js/mongodb-mcp-server>)

ID: github\-com\-mongodb\-js\-mongodb\-mcp\-server · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

The official MongoDB MCP server for queries, schemas, indexes, and managing Atlas or a self\-managed deployment through a coding agent\.

## Type

MCP tools for developers

## Entry type

mcp

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

## [Paid features and costs](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-access>)

Atlas and AI have separate pricing; Apache applies to the connector code\.

## [Access and limitations](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\. Atlas and AI have separate pricing; Apache applies to the connector code\.

## [Use cases](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-tasks>)

- Choose an Atlas or self\-managed connection and enable appropriate restrictions\.
- Inspect the collections, then check a query and explain without changing production\.

## Category IDs

- integrations
- backend

## Subcategory IDs

- integrations\.data
- backend\.databases

## Tags

- MongoDB MCP Server
- mongodb\-js
- MCP

## Also known as

- mongodb\-js/mongodb\-mcp\-server

## [Selection purpose](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-selection>)

Choose an Atlas or self\-managed connection and enable appropriate restrictions\.

## [Choose this when](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-selection>)

- Choose an Atlas or self\-managed connection and enable appropriate restrictions\.
- Inspect the collections, then check a query and explain without changing production\.

## [Requirements](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-selection>)

- For local Node execution: Node\.js 22\.13\+ and MongoDB access; the Docker option has separate instructions\.

## [Limitations](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-selection>)

- Costs and limits of free use: Atlas and AI have separate pricing; Apache applies to the connector code\.
- Terms of use: Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.
- The CLI is intended for one user in a localhost/private environment; it has no built\-in authentication or isolation for multiple users\.

## [Questions before use](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-faq>)

### What can you use for free in MongoDB MCP Server?

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

### What additional costs might arise with MongoDB MCP Server?

Atlas and AI have separate pricing; Apache applies to the connector code\.

### What terms of use matter for MongoDB MCP Server?

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

### How do you get started with MongoDB MCP Server?

Choose an Atlas or self\-managed connection and enable appropriate restrictions\. Inspect the collections, then check a query and explain without changing production\. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

### How do I connect MongoDB MCP for analysis without changing the database?

The readOnly flag registers reading, connection, and metadata tools, disabling create/update/delete\. It is enabled in the examples, but the default setting is false\. The server exposes schemas and indexes and runs queries and explain; Node execution requires 22\.13\+ and a connection string or Atlas Service Account\.

## Sources for the selection guide

- [https://github\.com/mongodb\-js/mongodb\-mcp\-server](<https://github.com/mongodb-js/mongodb-mcp-server>)
- [https://raw\.githubusercontent\.com/mongodb\-js/mongodb\-mcp\-server/main/README\.md](<https://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/README.md>)
- [https://raw\.githubusercontent\.com/mongodb\-js/mongodb\-mcp\-server/main/LICENSE](<https://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-scenario>)

The official MongoDB MCP server for queries, schemas, indexes, and managing Atlas or a self\-managed deployment through a coding agent\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A MongoDB deployment, a test database, and scoped credentials\.

## Steps

1. Choose an Atlas or self\-managed connection and enable appropriate restrictions\.
2. Inspect the collections, then check a query and explain without changing production\.
3. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

## Check your result

- The database and scope are correct; check the query plan and access permissions\.
- Check connection permissions and dependency terms; confirm external service costs if the workflow requires them\.

## [License](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-license>)

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## [Sources](<https://base.akulich.dev/en/library/github-com-mongodb-js-mongodb-mcp-server/#resource-sources>)

- [Official repository](<https://github.com/mongodb-js/mongodb-mcp-server>)
- [Documentation](<https://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/README.md>)
- [License](<https://raw.githubusercontent.com/mongodb-js/mongodb-mcp-server/main/LICENSE>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The README and license were reviewed against public primary sources on 2026\-10\-06\. The code was not installed or run; applicability depends on the project and client versions\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
