Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • MCP SSH Server
  • Entscheidsuche MCP Server
  • Chrome Debug MCP Server
  • MongoDB MCP Server for LLMs
  • Xano MCP Server
Back to MCP Servers
MongoDB MCP Server

MongoDB MCP Server

Public
rtcface/first_mcp

Implements a Model Context Protocol interface for MongoDB enabling standardized access to collections and documents with features like resource listing, query building, filtering, projection, secure connections, and detailed logging.

javascript
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with MongoDB MCP Server

MCP Server

Unlock the full potential of MongoDB MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

MCP MongoDB Server

This server implements a Model Context Protocol (MCP) interface for MongoDB, allowing interaction with MongoDB collections and documents through standardized MCP requests.

Features

Resource Management

  • List Collections: Lists all MongoDB collections as MCP resources
    • Each collection is represented with a mongodb:// URI scheme
    • Returns collection names and metadata in MCP resource format

Document Operations

  • Read Documents: Retrieve documents from MongoDB collections
    • Access collections using mongodb://collection-name URI format
    • Supports filtering and projection of documents
    • Default limit of 100 documents per request

Tools

  • Query Builder: Structured querying of MongoDB collections
    • Specify collection name
    • Apply filters and projections
    • Configure result limits

Security & Logging

  • Secure MongoDB connection handling
  • Detailed operation logging to logs/server.log
  • Connection error handling and reporting
  • Input validation for collection names and queries

Configuration

  • MongoDB connection via environment variables (MONGODB_URI)
  • Configurable client options for performance and security
  • Logging system with timestamp and error tracking

Technical Details

  • Built with @modelcontextprotocol/sdk version 1.10.2
  • Uses MongoDB Node.js driver version 6.16.0
  • Implements MCP server capabilities for resources and tools

Components

Tools

  • query
    • Execute MongoDB queries with filtering and projection
    • Input parameters:
      • collection: Name of collection to query
      • filter: MongoDB query filter (optional)
      • projection: Fields to include/exclude (optional)
      • limit: Maximum number of documents to return (default 100)

Resources

The server provides access to MongoDB collections as resources:

  • Collections (mongodb://)
    • Each collection is exposed as a resource
    • Documents are returned in JSON format
    • Supports filtering and projection via query tool

Configuration

Usage with Claude Desktop

To use this server with Claude Desktop, add the following to your claude_desktop_config.json:

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • MCP SSH Server
    MCP SSH Server

    Secure Model Context Protocol (MCP) SSH server enabling remote command execution, file and directory...

    Added May 30, 2025
  • Entscheidsuche MCP Server
    Entscheidsuche MCP Server

    Provides standardized access to Swiss legal decisions via the Model Context Protocol, enabling searc...

    Added May 30, 2025
  • Chrome Debug MCP Server
    Chrome Debug MCP Server

    Model Context Protocol server enabling advanced browser automation with Playwright, featuring multi-...

    13 tools
    Added May 30, 2025
  • MongoDB MCP Server for LLMs
    MongoDB MCP Server for LLMs

    Enables LLMs to seamlessly interact with MongoDB databases via Model Context Protocol, offering sche...

    Added May 30, 2025
  • Xano MCP Server
    Xano MCP Server

    Python-based Model Context Protocol server enabling AI assistants to securely interact with Xano ins...

    Added May 30, 2025