drio
Open app

mongo-mcp-server

Source

MCP server for mongoDB

Catalog onlyCatalog onlySTDIO

Overview

mongo-mcp-server is a server designed to facilitate the querying of MongoDB databases using the Model Context Protocol (MCP).

To use mongo-mcp-server, you need to send a request to the server specifying the MongoDB collection and database you wish to query.

  • Enables advanced querying of MongoDB databases. - Utilizes the Model Context Protocol for seamless integration. - Returns results in a structured list format.
  1. Fetching specific documents from a MongoDB collection for data analysis.
  2. Integrating with applications that require dynamic data retrieval from MongoDB.
  3. Supporting data-driven applications that need to interact with MongoDB in real-time.

Add to your AI client

Use these steps to connect mongo-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mongo-mcp-server-matteturtle09": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mongo-mcp-server-matteturtle09": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mongo-mcp-server-matteturtle09": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mongo-mcp-server-matteturtle09": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mongo-mcp-server-matteturtle09": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mongo-mcp-server-matteturtle09": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mongo-mcp-server-matteturtle09"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a protocol designed for managing and querying data models in a consistent manner.

How do I set up mongo-mcp-server?

You can set it up by following the instructions provided in the GitHub repository.

Is mongo-mcp-server free to use?

Yes! The project is open-source and free to use.