You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Model Context Protocol server for interacting with MongoDB Atlas. This project implements a Model Context Protocol (MCP) server enabling AI assistants to interact with MongoDB Atlas resources through natural language.
4
-
5
-
> [!CAUTION]
6
-
> Do not use this in production. This is a work in progress and is not intended for production use. It is meant for demonstration purposes only.
3
+
A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas.
- A MongoDB connection string or Atlas API credentials, **_the Server will not start unless configured_**.
32
+
-**_Atlas API credentials_** are required to use the Atlas tools. You can create a service account in MongoDB Atlas and use its credentials for authentication. See [Atlas API Access](#atlas-api-access) for more details.
33
+
- If you have a MongoDB connection string, you can use it directly to connect to your MongoDB instance.
34
34
35
-
Prerequisites:
35
+
## Setup
36
36
37
-
- Node.js v20.x
37
+
### Quick Start
38
38
39
-
Step 1: Add the mcp server to VSCode configuration
39
+
Most MCP clients require a configuration file to be created or modified to add the MCP server.
40
40
41
-
- Press `Cmd + Shift + P` and type `MCP: Add MCP Server` and select it.
##### Atlas API credentials with command-line arguments
317
+
318
+
```json
319
+
{
320
+
"servers": {
321
+
"MongoDB": {
322
+
"command": "npx",
323
+
"args": [
324
+
"-y",
325
+
"mongodb-mcp-server",
326
+
"--apiClientId",
327
+
"your-atlas-client-id",
328
+
"--apiClientSecret",
329
+
"your-atlas-client-secret"
330
+
]
331
+
}
332
+
}
333
+
}
334
+
```
335
+
261
336
## 🤝 Contributing
262
337
263
338
Interested in contributing? Great! Please check our [Contributing Guide](CONTRIBUTING.md) for guidelines on code contributions, standards, adding new tools, and troubleshooting information.
0 commit comments