Query and manage MongoDB and Atlas from your agent.
Pick your agent.
Run in your terminal:
claude mcp add mongodb -e MDB_MCP_CONNECTION_STRING=<your value> -- npx -y mongodb-mcp-serverSwap each <your value> for your own MDB_MCP_CONNECTION_STRING.
Open Settings, then Developer, then Edit Config, and add:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "<your value>"
}
}
}
}Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.
Add to your Codex config:
[mcp_servers.mongodb]
command = "npx"
args = ["-y", "mongodb-mcp-server"]
env = { MDB_MCP_CONNECTION_STRING = "<your value>" }Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.
Add to your settings:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "<your value>"
}
}
}
}Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.
Add to your project:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "<your value>"
}
}
}
}Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.
Add to your project:
{
"servers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server"
],
"env": {
"MDB_MCP_CONNECTION_STRING": "<your value>"
}
}
}
}Swap each <your value> for your own MDB_MCP_CONNECTION_STRING.
From reading the source. Check it yourself before you trust it.
Read 60 of 823 files 8 days ago. This is a plain read of the source, not a promise that it is safe. How we check
Run queries, look at collections and indexes, and manage Atlas clusters.
No reviews yet. Be the first to say how it went.