mongo-mcp
Provides tools for interacting with a MongoDB database, including querying, aggregating, inserting, updating, and deleting documents, with safety protections against destructive operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mongo-mcpfind all documents in the users collection where age is greater than 30"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mongo-mcp
MCP server untuk MongoDB yang menyediakan operasi baca/tulis dengan guardrail untuk mencegah penghapusan data secara tidak sengaja.
Fitur
Tidak menyediakan tool untuk
dropDatabase,dropCollection, atau truncate.deletemenolak filter kosong dan berjalan sebagai dry-run sampai mendapatconfirm: true.aggregatemenolak stage$outdan$merge.Koneksi dibatasi dengan pool maksimal 5, timeout koneksi 5 detik, dan
maxTimeMS10 detik untuk query baca.Hasil
finddibatasi maksimal 100 dokumen.
Related MCP server: mongodb3-mcp-server
Persyaratan
Node.js 18 atau lebih baru
MongoDB yang dapat diakses oleh server
Instalasi dan penggunaan
git clone https://github.com/wahyuakbarwibowo/mongo-mcp.git
cd mongo-mcp
npm install
npm testMONGODB_URI bersifat opsional dan default ke mongodb://localhost:27017.
Konfigurasi MCP
Ganti /path/to/mongo-mcp dengan lokasi hasil clone.
Claude Code
claude mcp add mongo \
--env MONGODB_URI=mongodb://localhost:27017 \
-- node /path/to/mongo-mcp/index.jsClaude Desktop, Codex CLI, dan client lain
Tambahkan server lokal berikut ke konfigurasi MCP client:
{
"mcpServers": {
"mongo": {
"command": "node",
"args": ["/path/to/mongo-mcp/index.js"],
"env": {
"MONGODB_URI": "mongodb://localhost:27017"
}
}
}
}Untuk client yang menggunakan konfigurasi TOML, padanannya adalah:
[mcp_servers.mongo]
command = "node"
args = ["/path/to/mongo-mcp/index.js"]
env = { MONGODB_URI = "mongodb://localhost:27017" }Tools
Tool | Fungsi |
| Membaca metadata MongoDB |
| Membaca data dengan batas waktu |
| Menulis data |
| Menghapus data setelah konfirmasi eksplisit |
Lisensi
Belum ditentukan. Jangan gunakan proyek ini sebagai dependensi publik sebelum lisensi ditambahkan.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
1
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceFull featured MCP Server for MongoDB database analysis.79 npm208MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server for MongoDB 3.6+ providing read, write, metadata, and management tools.6 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables querying, inserting, updating, deleting, aggregating, and listing collections in MongoDB via natural language commands.39 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for comprehensive MongoDB integration, enabling database operations, document management, schema analysis, and query tools.26 npmMIT