MCP cover image
See in Github
2025-04-14

MCP

0

Github Watches

0

Github Forks

0

Github Stars

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://<collection-name>)
    • 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:

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • seabiscuit.ai
  • Discover A More Robust Business: Craft tailored value proposition statements, develop a comprehensive business model canvas, conduct detailed PESTLE analysis, and gain strategic insights on enhancing business model elements like scalability, cost structure, and market competition strategies. (v1.18)

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • langgenius
  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • Azure
  • Ce référentiel est pour le développement du serveur MCP Azure, apportant la puissance d'Azure à vos agents.

  • alibaba
  • caio-moliveira
  • Ce projet a été créé pour démontrer comment nous pouvons nous connecter avec différents protocoles de contexte de modèle (MCP).

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

    Reviews

    3.3 (12)
    Avatar
    user_k6yus24H
    2025-04-24

    As a dedicated user of first_mcp by rtcface, I am thoroughly impressed with its seamless integration and user-friendly interface. This product truly stands out in its category, making it an essential tool for anyone in need of an efficient MCP application. Highly recommended!

    Avatar
    user_uswf8Hlb
    2025-04-24

    I recently started using first_mcp by rtcface, and it has significantly improved my workflow. The setup was straightforward, and the user interface is very intuitive. I appreciate the helpful welcome message that guided me through the initial setup. Overall, it’s a fantastic tool for anyone looking to streamline their tasks efficiently. Highly recommended!

    Avatar
    user_LyWvK1oA
    2025-04-24

    I've been a dedicated user of first_mcp created by rtcface, and I must say it is a game-changer. The interface is intuitive, and the features are robust, making it a valuable tool for both novice and experienced users. The seamless integration and detailed documentation provide an excellent user experience. Highly recommended!

    Avatar
    user_NC7ksg4F
    2025-04-24

    As a dedicated user of first_mcp by rtcface, I am thrilled with its performance and functionality. The application is user-friendly and has greatly streamlined my tasks. The intuitive design and robust features make it a must-have tool for anyone in need of such a solution. Highly recommended!

    Avatar
    user_gbfHFTdY
    2025-04-24

    First_mcp by rtcface is an outstanding application! The user experience is seamless, and it integrates perfectly into my workflow. From the welcoming interface to the easy navigation, it truly enhances productivity. Highly recommended for anyone seeking a reliable and efficient mcp tool!

    Avatar
    user_GW2dGfwK
    2025-04-24

    As a loyal user of the first_mcp app, I am truly impressed by its seamless functionality and user-friendly interface. Developed by rtcface, it has significantly simplified my daily tasks, making everything more efficient. Highly recommended for anyone looking for a reliable solution!

    Avatar
    user_g1sUgrK0
    2025-04-24

    As a dedicated user of first_mcp, I am incredibly impressed with its functionality and efficiency. rtcface has done an exceptional job in crafting this application. The smooth navigation through the initial URL and the welcoming interface make the overall experience highly enjoyable. This product stands out in the market and is a must-have for anyone seeking a reliable MCP application.

    Avatar
    user_kIOv6yyZ
    2025-04-24

    I recently started using first_mcp by rtcface and it has significantly improved my workflow. The application is intuitive and user-friendly, making it accessible even for new users. The seamless integration with various platforms truly sets it apart. Highly recommend it to anyone looking for an efficient and reliable MCP application!

    Avatar
    user_Wp5iBej8
    2025-04-24

    As a dedicated user of the first_mcp application, I must say that this product by rtcface has significantly improved my productivity. The user-friendly interface and seamless integration make it a must-have tool. It simplifies tasks and offers a smooth user experience. Highly recommended!

    Avatar
    user_DZjWrm1w
    2025-04-24

    As a dedicated user of first_mcp, I am thoroughly impressed by its performance and user-friendly interface. Created by rtcface, this product has truly enhanced my experience with its seamless integration and functionality. Highly recommend it to anyone looking for an efficient solution!

    Avatar
    user_uH6zXY5f
    2025-04-24

    As a dedicated user of first_mcp by rtcface, I must say this application is truly remarkable. It stands out with its user-friendly interface and seamless performance. The thoughtfully crafted design and efficient functionality make it a must-have tool. I highly recommend it to anyone in need of a reliable MCP application.

    Avatar
    user_jHLCMD42
    2025-04-24

    I've been using first_mcp by rtcface for a while now, and it's a fantastic tool! The application is smooth and efficient, making my workflow so much easier. The user interface is intuitive, and the welcome message sets a positive tone right from the start. Highly recommended for anyone in need of a reliable mcp application!