Loading...
npx -y mcp-mongo-server mongodb://localhost:27017/database{
"mcpServers": {
"mongodb-env": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server"
],
"env": {
"MCP_MONGODB_URI": "mongodb://muhammed:kilic@localhost:27017/database",
"MCP_MONGODB_READONLY": "true"
}
}
}
}queryExecutes a MongoDB query against a specified collection.
Read-only operation if read-only mode is enabled.
aggregateExecutes a MongoDB aggregation pipeline against a specified collection.
Read-only operation if read-only mode is enabled.
updateUpdates documents in a MongoDB collection based on a query.
Modifies existing data; potential for data corruption.
insertInserts new documents into a MongoDB collection.
Adds new data to the database.
index creationCreates indexes on MongoDB collections.
Modifies the database schema and can impact performance.
This server is relatively safe in read-only mode, allowing data exploration without modification. However, when write operations are enabled, the risk increases significantly, requiring careful management of permissions and query construction to prevent unintended data manipulation or exposure.