{"type":"mcp_server","name":"mcp-mongo-server","description":"The MCP MongoDB Server provides LLMs access to MongoDB databases, enabling schema inspection and operation execution through a Model Context Protocol, and supports read-only mode for enhanced safety.","category":"Database","language":"JavaScript","stars":279,"forks":8,"owner":"kiliczsh","github_url":"https://github.com/kiliczsh/mcp-mongo-server","homepage":"https://www.npmjs.com/package/mcp-mongo-server","setup":"## Setup\n\n1.  Install dependencies:\n\n   ```bash\nnpm install\n```\n\n2.  Build the server:\n\n   ```bash\nnpm run build\n```\n\n3.  For development with auto-rebuild:\n\n   ```bash\nnpm run watch\n```\n\n4.  To use with Claude Desktop, add the server config to `claude_desktop_config.json` (On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`, On Windows: `%APPDATA%/Claude/claude_desktop_config.json`) with the provided JSON configuration.\n\n5.  Debugging: Use the MCP Inspector:\n\n   ```bash\nnpm run inspector\n```\n\n6.  Install MCP MongoDB Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/mcp-mongo-server):\n\n   ```bash\nnpx -y @smithery/cli install mcp-mongo-server --client claude\n```\n\n7.  Install using mcp-get:\n\n   ```bash\nnpx @michaellatman/mcp-get@latest install mcp-mongo-server\n```","tools":"## Available Tools\n\n1.  Read-Only Mode (Connect to MongoDB in read-only mode to prevent write operations).\n2.  Resources (List and access collections via `mongodb://` URIs).\n3.  query (Execute MongoDB queries with optional execution plan analysis).\n4.  aggregate (Execute MongoDB aggregation pipelines with optional execution plan analysis).\n5.  update (Update documents in a collection).\n6.  serverInfo (Get MongoDB server information and status).\n7.  insert (Insert documents into a collection).\n8.  createIndex (Create indexes on a collection).\n9.  count (Count documents matching a query).\n10. analyze_collection (Analyze collection structure and contents).","faq":null,"created_at":"2024-12-04T19:30:40+00:00","updated_at":"2025-03-28T13:49:54+00:00","source_url":"https://model-context-protocol.com/servers/mcp-mongodb-server-llm-database-access","related_articles":[]}