MCP cover image
See in Github
2025-04-03

MCP服务器用于MongoDB

1

Github Watches

1

Github Forks

2

Github Stars

MongoDB MCP Server

A Model Context Protocol (MCP) server for MongoDB that allows querying MongoDB collections through a simple interface for local integrations and command line tools.

Overview

This project implements an MCP server that connects to MongoDB and provides a query tool to retrieve data from collections. It currently only supports read-only transactions. Project includes:

  • A MongoDB MCP server that exposes database querying capabilities
  • A client application for interacting with the server
  • Utilities for MongoDB connection and transaction management

Prerequisites

  • Node.js (v16 or higher)
  • npm
  • MongoDB database (local or cloud-based)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/mongo-db-mcp.git
    cd mongo-db-mcp
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory with your MongoDB connection string:

    MONGO_CONNECTION_STRING=your_mongodb_connection_string
    

Building the Project

Build the TypeScript code:

npm run build

Running the client

node dist/client/client.js dist/index.js

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    3 (1)
    Avatar
    user_CN62C3vN
    2025-04-15

    As a dedicated user of the Nostr MCP Server, I can confidently say that it's an exceptional product. The seamless integration, reliable performance, and user-friendly interface have significantly improved my workflow. AustinKelsay has done a fantastic job with this server, making it a valuable tool for anyone in need of dependable and efficient server management. Highly recommend checking it out!