Repository navigation
Expand file tree
/
Copy pathmongodb.yaml
More file actions
138 lines (138 loc) · 3.8 KB
/
Copy pathmongodb.yaml
File metadata and controls
138 lines (138 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
id: mongodb
name: MongoDB MCP Server
description: >
Official MCP server for interacting with MongoDB databases and MongoDB Atlas. Enables
AI agents to query collections, run aggregations, manage indexes, inspect schemas,
and perform CRUD operations. Also supports Atlas cloud management including cluster
provisioning, database user management, performance advisor, and stream processing.
Supports read-only mode for safe exploration.
author:
name: MongoDB
github: mongodb-js
repository: https://github.com/mongodb-js/mongodb-mcp-server
transport:
- stdio
- http-streaming
category: Database
tags:
- mongodb
- nosql
- atlas
- database
- aggregation
- document-db
- cloud
created_at: "2025-01-10T00:00:00.000Z"
updated_at: "2026-05-22T00:00:00.000Z"
tools:
- name: find
description: Run a find query against a MongoDB collection with optional filter, projection, sort, and limit.
input_schema:
type: object
properties:
database:
type: string
description: Database name
collection:
type: string
description: Collection name
filter:
type: object
description: MongoDB query filter document
projection:
type: object
description: Fields to include or exclude
limit:
type: integer
description: Maximum number of documents to return
sort:
type: object
description: Sort specification
required:
- database
- collection
- name: aggregate
description: Run an aggregation pipeline against a MongoDB collection.
input_schema:
type: object
properties:
database:
type: string
description: Database name
collection:
type: string
description: Collection name
pipeline:
type: array
description: Array of aggregation pipeline stages
required:
- database
- collection
- pipeline
- name: list-databases
description: List all databases on the connected MongoDB instance.
input_schema:
type: object
properties: {}
- name: list-collections
description: List all collections in a given database.
input_schema:
type: object
properties:
database:
type: string
description: Database name
required:
- database
- name: collection-schema
description: Infer and describe the schema for a MongoDB collection by sampling documents.
input_schema:
type: object
properties:
database:
type: string
description: Database name
collection:
type: string
description: Collection name
required:
- database
- collection
- name: insert-many
description: Insert an array of documents into a MongoDB collection.
input_schema:
type: object
properties:
database:
type: string
description: Database name
collection:
type: string
description: Collection name
documents:
type: array
description: Array of documents to insert
required:
- database
- collection
- documents
install:
npm: "mongodb-mcp-server"
command: npx
args:
- "-y"
- "mongodb-mcp-server"
- "--readOnly"
env_vars:
- name: MDB_MCP_CONNECTION_STRING
description: MongoDB connection string (e.g., mongodb://localhost:27017 or Atlas URI)
required: false
- name: MDB_MCP_API_CLIENT_ID
description: Atlas API service account client ID (for Atlas management tools)
required: false
- name: MDB_MCP_API_CLIENT_SECRET
description: Atlas API service account client secret
required: false
license: Apache-2.0
version: "1.11.0"
stars: 1000