Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Mongo Server

    A Model Context Protocol Server for MongoDB TypeScript-based implementation.

    267 stars
    TypeScript
    Updated Nov 4, 2025
    antrophic
    claude
    claude-desktop
    cline
    cursor
    mcp
    model-context-protocol
    mongo
    mongodb
    windsurf

    Table of Contents

    • Demo
    • Key Features
    • Installation
    • Usage
    • Environment Variables
    • Documentation
    • License

    Table of Contents

    • Demo
    • Key Features
    • Installation
    • Usage
    • Environment Variables
    • Documentation
    • License

    Documentation

    MCP MongoDB Server

    ---

    NPM Version

    NPM Downloads

    NPM License

    smithery badge

    Verified on MseeP

    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.

    Demo

    MCP MongoDB Server Demo | Claude Desktop

    Key Features

    • Smart ObjectId Handling - Configurable auto/none/force modes for string-to-ObjectId conversion
    • Read-Only Mode - Protection against write operations, uses secondary read preference
    • Schema Inference - Automatic collection schema detection from document samples
    • Query & Aggregation - Full MongoDB query and aggregation pipeline support with optional explain plans
    • Write Operations - Insert, update, and index creation (when not in read-only mode)
    • Collection Completions - Auto-complete collection names for LLM integration

    Installation

    bash
    npx -y mcp-mongo-server mongodb://localhost:27017/database

    Usage

    bash
    # 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

    Environment Variables

    VariableDescription
    MCP_MONGODB_URIMongoDB connection URI
    MCP_MONGODB_READONLYEnable read-only mode ("true")

    Documentation

    • Integration Guide - Claude Desktop, Windsurf, Cursor, Docker
    • Available Tools - Query, aggregate, update, insert, and more
    • Development - Setup, scripts, and debugging
    • Contributing

    License

    MIT - see LICENSE for details.

    Similar MCP

    Based on tags & features

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • FA

      Fal Mcp Server

      Python·
      8
    • BR

      Browser Control Mcp

      TypeScript·
      183

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • FA

      Fal Mcp Server

      Python·
      8
    • BR

      Browser Control Mcp

      TypeScript·
      183

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k