A Model Context Protocol server that enables LLMs to interact with MongoDB databases. This server provides capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface. - Smart ObjectId Handling - Configurable auto/none/force modes for string-to-ObjectId conversion - Read-Only Mode - Protection against write operations, uses secondary read prefer
Add this skill
npx mdskills install kiliczsh/mcp-mongo-serverWell-documented MongoDB MCP server with comprehensive features and clear setup instructions
A Model Context Protocol server that enables LLMs to interact with MongoDB databases. This server provides capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface.
npx -y mcp-mongo-server mongodb://localhost:27017/database
# Start server with MongoDB URI
npx -y mcp-mongo-server mongodb://muhammed:kilic@localhost:27017/database
# Connect in read-only mode
npx -y mcp-mongo-server mongodb://muhammed:kilic@localhost:27017/database --read-only
| Variable | Description |
|---|---|
MCP_MONGODB_URI | MongoDB connection URI |
MCP_MONGODB_READONLY | Enable read-only mode ("true") |
MIT - see LICENSE for details.
Install via CLI
npx mdskills install kiliczsh/mcp-mongo-serverMCP MongoDB Server is a free, open-source AI agent skill. A Model Context Protocol server that enables LLMs to interact with MongoDB databases. This server provides capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface. - Smart ObjectId Handling - Configurable auto/none/force modes for string-to-ObjectId conversion - Read-Only Mode - Protection against write operations, uses secondary read prefer
Install MCP MongoDB Server with a single command:
npx mdskills install kiliczsh/mcp-mongo-serverThis downloads the skill files into your project and your AI agent picks them up automatically.
MCP MongoDB Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.