Back to MCP Servers
MongoDB Server
Query, aggregate, and manage MongoDB databases with schema inspection and natural language operations
databasemongodbnosqlcommunity
By MongoDB
Installation
npm install -g @mongodb-js/mcp-server-mongodbConfiguration
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["-y", "@mongodb-js/mcp-server-mongodb"],
"env": {
"MONGODB_URI": "mongodb://localhost:27017/your-database"
}
}
}
}How to use
- Run the installation command above (if needed)
- Open your Claude Code settings file (~/.claude/settings.json)
- Add the configuration to the mcpServers section
- Restart Claude Code to apply changes