io.github.mongodb-js/mongodb-mcp-server
OCI · DOCKER.IO/MONGODB/MONGODB-MCP-SERVER:1.14.0 · 2 COMPONENTS · SCANNED AUG 3
MongoDB Model Context Protocol Server
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security0
- Malware scan not yet available for this package.Unverified
- CVE data not yet available for this package.Unverified
- Install-script risk not yet assessed.Unverified
- Dependency-health data not yet available.Unverified
Provenance & Transparency32
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- License check failed: no license is declared. See how to fix → Fail
- Actively maintained (last published 2 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability82
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (good).Pass
- Tool/resource definitions use about 2566 tokens (~95/item across 27 items; 25 tools + 2 resources), lean.Pass
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
- Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
- Structured output schemas are declared (88% of tools); any adoption earns full credit.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Unverified: 2 categories
Categories scored 0 because we could not verify them: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
oci · docker.io/mongodb/mongodb-mcp-server:1.14.0
claude mcp add mongodb-js-mongodb-mcp-server -- docker run --rm -i docker.io/mongodb/mongodb-mcp-server:1.14.0
codex mcp add mongodb-js-mongodb-mcp-server -- docker run --rm -i docker.io/mongodb/mongodb-mcp-server:1.14.0
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"mongodb-js-mongodb-mcp-server": {
"type": "local",
"command": [
"docker",
"run",
"--rm",
"-i",
"docker.io/mongodb/mongodb-mcp-server:1.14.0"
],
"enabled": true
}
}
} mcp_servers:
mongodb-js-mongodb-mcp-server:
command: "docker"
args: ["run", "--rm", "-i", "docker.io/mongodb/mongodb-mcp-server:1.14.0"] {
"mcpServers": {
"mongodb-js-mongodb-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"docker.io/mongodb/mongodb-mcp-server:1.14.0"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 31 Jul 26 −5
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 27 Jul 26 +35
- Tool coverage: unverified → 100 ▲ functional
- Schema quality: unverified → 100 ▲ functional
- First check of Tool coverage: 100 functional
- First check of Tool coverage: 88 functional
- First check of Schema quality: fail functional
- First check of Schema quality: pass functional
- First check of Schema quality: good functional
- 26 Jul 26 8
First indexed and scored.
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 3 Aug 2026 · Analysed oci/docker.io/mongodb/mongodb-mcp-server:1.14.0
Provenance none
Ecosystem: oci · Outcome: none
Reason: no_attestation
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
aggregate ~574
Run an aggregation against a MongoDB collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| pipeline | array | yes | An array of aggregation stages to execute. If the user has asked for a vector search, `$vectorSearch` **MUST** be the first stage of the pipeline, or the first stage of a `$unionWith` subpipeline. If… |
| responseBytesLimit | number | — | The maximum number of bytes to return in the response. This value is capped by the server's configured maxBytesPerQuery and cannot be exceeded. Note to LLM: If the entire aggregation result is requir… |
| Name | Type | Req | Description |
|---|---|---|---|
| appliedLimits | array | yes | The limits applied to the aggregation pipeline |
| count | — | yes | The total number of documents returned by the aggregation pipeline |
| documents | array | yes | The documents returned by the aggregation pipeline |
No examples provided.
aggregate-db ~131
Run an aggregation against a MongoDB database
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | Database name |
| pipeline | array | yes | An array of aggregation stages to execute. The first stage must be a database-level aggregation stage (one of `$changeStream`, `$currentOp`, `$documents`, `$listLocalSessions`, `$queryStats`). https:… |
| responseBytesLimit | number | — | The maximum number of bytes to return in the response. This value is capped by the server's configured maxBytesPerQuery and cannot be exceeded. |
| Name | Type | Req | Description |
|---|---|---|---|
| aggResultsCount | number | — | The total number of documents returned by the aggregation pipeline |
| appliedLimits | array | yes | The limits applied to the aggregation pipeline |
| documents | array | yes | The documents returned by the aggregation pipeline |
No examples provided.
collection-indexes ~34
Describe the indexes for a collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| classicIndexes | array | yes | — |
| classicIndexesCount | number | yes | — |
| searchIndexes | array | yes | — |
| searchIndexesCount | number | yes | — |
No examples provided.
collection-schema ~86
Describe the schema for a collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| responseBytesLimit | number | — | The maximum number of bytes to return in the response. This value is capped by the server's configured maxBytesPerQuery and cannot be exceeded. |
| sampleSize | number | — | Number of documents to sample for schema inference |
| Name | Type | Req | Description |
|---|---|---|---|
| fieldsCount | number | yes | — |
| schema | object | yes | — |
No examples provided.
collection-storage-size ~34
Gets the size of the collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| size | number | yes | — |
| units | string | yes | — |
No examples provided.
connect ~97
Connect to a MongoDB instance. The config resource captures if the server is already connected to a MongoDB cluster. If the user has configured a connection string or has previously called the connect tool, a connection is already established and there's no need to call this tool unless the user has explicitly requested to switch to a new MongoDB cluster.
| Name | Type | Req | Description |
|---|---|---|---|
| connectionString | string | yes | MongoDB connection string (in the mongodb:// or mongodb+srv:// format) |
| Name | Type | Req | Description |
|---|---|---|---|
| connected | boolean | yes | — |
No examples provided.
count ~80
Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| query | object | — | A filter/query parameter. Allows users to filter the documents to count. Matches the syntax of the filter argument of db.collection.count(). |
| Name | Type | Req | Description |
|---|---|---|---|
| count | number | yes | The number of documents in the collection |
No examples provided.
create-collection ~47
Creates a new collection in a database. If the database doesn't exist, it will be created automatically.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| created | boolean | yes | — |
| database | string | yes | — |
No examples provided.
create-index ~85
Create an index for a collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| definition | array | yes | The index definition. Use 'classic' for standard indexes, 'vectorSearch' for vector search indexes, and 'search' for Atlas Search (lexical) indexes. |
| name | string | — | The name of the index |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| indexName | string | yes | — |
| indexType | string | yes | — |
No examples provided.
db-stats ~30
Returns statistics that reflect the use state of a single database
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| stats | object | yes | — |
No examples provided.
delete-many ~67
Removes all documents that match the filter from a MongoDB collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| filter | object | — | The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany() |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| deletedCount | number | yes | — |
No examples provided.
drop-collection ~48
Removes a collection or view from the database. The method also removes any indexes associated with the dropped collection.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| dropped | boolean | yes | — |
No examples provided.
drop-database ~29
Removes the specified database, deleting the associated data files
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | — |
| dropped | boolean | yes | — |
No examples provided.
drop-index ~85
Drop an index for the provided database and collection.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| indexName | string | yes | The name of the index to be dropped. |
| type | string | yes | The type of index to be deleted. Use 'classic' for standard indexes and 'search' for atlas search and vector search indexes. |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| dropped | boolean | yes | — |
| indexName | string | yes | — |
No examples provided.
explain ~109
Returns statistics describing the execution of the winning plan chosen by the query optimizer for the evaluated method
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| method | array | yes | The method and its arguments to run |
| verbosity | string | — | The verbosity of the explain plan, defaults to queryPlanner. If the user wants to know how fast is a query in execution time, use executionStats. It supports all verbosities as defined in the MongoDB… |
| Name | Type | Req | Description |
|---|---|---|---|
| explainResult | object | yes | — |
| method | string | yes | — |
| verbosity | string | yes | — |
No examples provided.
export ~162
Export a query or aggregation results in the specified EJSON format.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| exportTarget | array | yes | The export target along with its arguments. |
| exportTitle | string | yes | A short description to uniquely identify the export. |
| jsonExportFormat | string | — | The format to be used when exporting collection data as EJSON with default being relaxed. relaxed: A string format that emphasizes readability and interoperability at the expense of type preservation… |
No output schema declared.
No examples provided.
find ~208
Run a find query against a MongoDB collection
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| filter | object | — | The query filter, matching the syntax of the query argument of db.collection.find() |
| limit | number | — | The maximum number of documents to return |
| projection | object | — | The projection, matching the syntax of the projection argument of db.collection.find() |
| responseBytesLimit | number | — | The maximum number of bytes to return in the response. This value is capped by the server's configured maxBytesPerQuery and cannot be exceeded. Note to LLM: If the entire query result is required, us… |
| sort | object | — | A document, describing the sort order, matching the syntax of the sort argument of cursor.sort(). The keys of the object are the fields to sort on, while the values are the sort directions (1 for asc… |
| Name | Type | Req | Description |
|---|---|---|---|
| appliedLimits | array | yes | The limits applied to the find query |
| documents | array | yes | The documents returned by the find query |
| queryResultsCount | number | — | The total number of documents returned by the find query |
No examples provided.
insert-many ~83
Insert an array of documents into a MongoDB collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider inserting them in batches.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| documents | array | yes | The array of documents to insert, matching the syntax of the document argument of db.collection.insertMany(). |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| insertedCount | number | yes | — |
| insertedIds | array | yes | — |
No examples provided.
list-collections ~26
List all collections for a given database
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | Database name |
| Name | Type | Req | Description |
|---|---|---|---|
| collections | array | yes | — |
| totalCount | number | yes | — |
No examples provided.
list-databases ~19
List all databases for a MongoDB connection
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| databases | array | yes | — |
| totalCount | number | yes | — |
No examples provided.
list-knowledge-sources ~43
List available data sources in the MongoDB Assistant knowledge base. Use this to explore available data sources or to find search filter parameters to use in search-knowledge.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
mongodb-logs ~67
Returns the most recent logged mongod events
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | The maximum number of log entries to return. |
| type | string | — | The type of logs to return. Global returns all recent log entries, while startupWarnings returns only warnings and errors from when the process started. |
| Name | Type | Req | Description |
|---|---|---|---|
| logs | array | yes | — |
| shownCount | number | yes | — |
| totalLinesWritten | number | yes | — |
No examples provided.
rename-collection ~69
Renames a collection in a MongoDB database
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| dropTarget | boolean | — | If true, drops the target collection if it exists |
| newName | string | yes | The new name for the collection |
| Name | Type | Req | Description |
|---|---|---|---|
| database | string | yes | — |
| newCollection | string | yes | — |
| oldCollection | string | yes | — |
| renamed | boolean | yes | — |
No examples provided.
search-knowledge ~171
Search for information in the MongoDB Assistant knowledge base. This includes official documentation, curated expert guidance, and other resources provided by MongoDB. Supports filtering by data source and version.
| Name | Type | Req | Description |
|---|---|---|---|
| dataSources | array | — | A list of one or more data sources to limit the search to. You can specify a specific version of a data source by providing the version label. If not provided, the latest version of all data sources… |
| limit | number | — | The maximum number of results to return |
| query | string | yes | A natural language query to search for in the MongoDB Assistant knowledge base. This should be a single question or a topic that is relevant to the user's MongoDB use case. |
No output schema declared.
No examples provided.
update-many ~124
Updates all documents that match the specified filter for a collection. If the list of documents is above com.mongodb/maxRequestPayloadBytes, consider updating them in batches.
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | Collection name |
| database | string | yes | Database name |
| filter | object | — | The selection criteria for the update, matching the syntax of the filter argument of db.collection.updateOne() |
| update | object | yes | An update document describing the modifications to apply using update operator expressions |
| upsert | boolean | — | Controls whether to insert a new document if no documents match the filter |
| Name | Type | Req | Description |
|---|---|---|---|
| collection | string | yes | — |
| database | string | yes | — |
| matchedCount | number | yes | — |
| modifiedCount | number | yes | — |
| upsertedCount | number | yes | — |
| upsertedId | string | — | — |
No examples provided.