@universal-mcp-toolkit/server-mongodb 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.well-known/mcp-server.json +35 -35
- package/LICENSE +21 -21
- package/README.md +45 -0
- package/package.json +4 -8
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/json",
|
|
3
|
-
"name": "mongodb",
|
|
4
|
-
"title": "MongoDB MCP Server",
|
|
5
|
-
"description": "Database, collection, and document tools for MongoDB.",
|
|
6
|
-
"version": "0.1.0",
|
|
7
|
-
"transports": [
|
|
8
|
-
"stdio",
|
|
9
|
-
"http+sse"
|
|
10
|
-
],
|
|
11
|
-
"authentication": {
|
|
12
|
-
"mode": "environment-variables",
|
|
13
|
-
"required": [
|
|
14
|
-
"MONGODB_URI"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"capabilities": {
|
|
18
|
-
"tools": true,
|
|
19
|
-
"resources": true,
|
|
20
|
-
"prompts": true
|
|
21
|
-
},
|
|
22
|
-
"packageName": "@universal-mcp-toolkit/server-mongodb",
|
|
23
|
-
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
24
|
-
"tools": [
|
|
25
|
-
"list-collections",
|
|
26
|
-
"find-documents",
|
|
27
|
-
"aggregate-documents"
|
|
28
|
-
],
|
|
29
|
-
"resources": [
|
|
30
|
-
"cluster-overview"
|
|
31
|
-
],
|
|
32
|
-
"prompts": [
|
|
33
|
-
"data-summary"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/json",
|
|
3
|
+
"name": "mongodb",
|
|
4
|
+
"title": "MongoDB MCP Server",
|
|
5
|
+
"description": "Database, collection, and document tools for MongoDB.",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"transports": [
|
|
8
|
+
"stdio",
|
|
9
|
+
"http+sse"
|
|
10
|
+
],
|
|
11
|
+
"authentication": {
|
|
12
|
+
"mode": "environment-variables",
|
|
13
|
+
"required": [
|
|
14
|
+
"MONGODB_URI"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"capabilities": {
|
|
18
|
+
"tools": true,
|
|
19
|
+
"resources": true,
|
|
20
|
+
"prompts": true
|
|
21
|
+
},
|
|
22
|
+
"packageName": "@universal-mcp-toolkit/server-mongodb",
|
|
23
|
+
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
24
|
+
"tools": [
|
|
25
|
+
"list-collections",
|
|
26
|
+
"find-documents",
|
|
27
|
+
"aggregate-documents"
|
|
28
|
+
],
|
|
29
|
+
"resources": [
|
|
30
|
+
"cluster-overview"
|
|
31
|
+
],
|
|
32
|
+
"prompts": [
|
|
33
|
+
"data-summary"
|
|
34
|
+
]
|
|
35
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 universal-mcp-toolkit
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 universal-mcp-toolkit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Use this server to browse MongoDB collections and query documents from Claude Desktop or Cursor.
|
|
2
|
+
|
|
3
|
+
## What it can do
|
|
4
|
+
- `list-collections` shows collections in a database and can filter by name prefix.
|
|
5
|
+
- `find-documents` runs a normal find query with filter, projection, sort, limit, and skip.
|
|
6
|
+
- `aggregate-documents` runs an aggregation pipeline and returns matching documents; write stages stay off unless you opt in.
|
|
7
|
+
|
|
8
|
+
## Setup
|
|
9
|
+
Set this env var:
|
|
10
|
+
- `MONGODB_URI`: your MongoDB connection string. Get it from the Atlas connect flow at https://www.mongodb.com/docs/atlas/connect-to-database-deployment/ or build one with the MongoDB connection string docs at https://www.mongodb.com/docs/manual/reference/connection-string/
|
|
11
|
+
|
|
12
|
+
## Claude Desktop config
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"mongodb": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": ["-y", "@universal-mcp-toolkit/server-mongodb@latest"],
|
|
19
|
+
"env": {
|
|
20
|
+
"MONGODB_URI": "${MONGODB_URI}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Cursor config
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"mongodb": {
|
|
32
|
+
"command": "npx",
|
|
33
|
+
"args": ["-y", "@universal-mcp-toolkit/server-mongodb@latest"],
|
|
34
|
+
"env": {
|
|
35
|
+
"MONGODB_URI": "${MONGODB_URI}"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Quick example
|
|
43
|
+
Ask Claude:
|
|
44
|
+
|
|
45
|
+
> Use the MongoDB server to list collections in my default database, then check the last 10 documents in `orders` where `status` is `failed` and tell me the most common error messages.
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-mcp-toolkit/server-mongodb",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Database, collection, and document tools for MongoDB.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"server-mongodb": "./dist/index.js",
|
|
9
8
|
"umt-mongodb": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
12
|
+
"url": "git+https://github.com/universal-mcp-toolkit/universal-mcp-toolkit.git"
|
|
14
13
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
14
|
+
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": {
|
|
18
17
|
"types": "./dist/index.d.ts",
|
|
@@ -36,13 +35,10 @@
|
|
|
36
35
|
"nosql"
|
|
37
36
|
],
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"@universal-mcp-toolkit/core": "0.
|
|
38
|
+
"@universal-mcp-toolkit/core": "0.2.0",
|
|
40
39
|
"mongodb": "^7.1.0",
|
|
41
40
|
"zod": "^4.3.6"
|
|
42
41
|
},
|
|
43
|
-
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
45
|
-
},
|
|
46
42
|
"scripts": {
|
|
47
43
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
48
44
|
"dev": "tsx watch src/index.ts",
|