mcp-mongodb-novel-server

mcp-mongodb-novel-server

1

The MCP MongoDB Server is a high-performance server designed to create an efficient interface between Large Language Models and MongoDB. It features a dual-server architecture optimized for small context windows and includes integration capabilities for domain-specific data models and Python scrapers.

MCP MongoDB Server

A high-performance Model Context Protocol (MCP) server providing an efficient knowledge interface between Large Language Models (LLMs) and MongoDB.

🚀 Features

  • Dual-Server Architecture with SSE-based MCP server and RESTful CRUD API
  • Token Efficiency for small context windows
  • MongoDB Integration with optimized query mechanisms
  • Data Models for various domain-specific entities
  • Python Scraper Integrations as submodules

🏁 Getting Started

Prerequisites

  • Rust (latest stable)
  • MongoDB instance
  • Python 3.7+ (for data scrapers)

Installation

  1. Clone the repository
  2. Configure environment
  3. Build and run

🔌 Server Endpoints

  1. MCP Server (SSE Protocol)
  • SSE Endpoint for event connections
  • POST Endpoint for JSON-RPC 2.0 commands
  1. CRUD API for database management of Novels, Chapters, Characters, and Q&A

📊 Data Models

Data Models available for Novels, Chapters, Characters, and Q&A with various attributes.

🤖 MCP Methods

Supports query and update methods for LLM interaction.

📥 Data Population

Python scrapers help populate MongoDB with various sources including novels and Q&A content.

🛠️ Development

Includes guideline for updating submodules, running tests, code style, and performance tuning.

📄 License

Licensed under the MIT License.