mongodb
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
- Connectors
- Dev tools
- 194
What it does and how to use it
A connector (MCP) that links Claude to an external dev tools tool or service, giving it access to real data and actions.
- Install the connector (command above).
- Add the service credentials/keys when asked.
- Claude can now read and act on that service directly.
Install (Claude Code)
mkdir -p .claude/mcps && curl -fsSL https://doutorai.pt/data/lib/mcps__mongodb.md -o .claude/mcps/mongodb.jsonPaste this command into the terminal, in your project folder, and the component installs automatically.
Content
{
"mcpServers": {
"MongoDB": {
"description":"A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.",
"command": "npx",
"args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
}
}
}
}Need help with Claude Code?
Ask Dr AI - it explains things simply.
Need a tailor-made solution?
Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.
Save hours every week with AI, no hassle
Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.