
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Rust MCP server that lets LLMs query and update domain-specific knowledge stored in MongoDB collections, with responses tuned for small context windows.
MCP server for MongoDB-backed novel knowledge is cataloged as an MCP server attributed to sfbb. A Rust MCP server that lets LLMs query and update domain-specific knowledge stored in MongoDB collections, with responses tuned for small context windows. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for MongoDB-backed novel knowledge are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, it uses a dual-server architecture with an SSE-based MCP server and a separate RESTful CRUD API.
README.md · 676bc3ab96be · Fetched 2026-11-13 10:55:30 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A high-performance Model Context Protocol (MCP) server that provides an efficient knowledge interface between Large Language Models (LLMs) and MongoDB. Optimized for small context windows (3k tokens), this server enables LLMs to retrieve and interact with domain-specific knowledge stored in MongoDB collections.
Dual-Server Architecture:
Token Efficiency: Responses formatted for maximum information density within small context windows
MongoDB Integration: Works with existing MongoDB collections with optimized query mechanisms
Data Models for multiple domain-specific entities:
Python Scraper Integrations: Included as submodules for populating databases from various sources
┌───────────────────┐
│ │
│ Language │
│ Models │
│ │
└─────────┬─────────┘
│
│ MCP (JSON-RPC 2.0)
▼
┌─────────────────────────────────────────────────────┐
│ │
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ │ │ │ │
│ │ SSE Server │◄────────►│ MCP Handler │ │
│ │ (Port 3000) │ │ │ │
│ └─────────────────┘ └────────┬────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────┐ │
│ ┌─────────────────┐ │ │ │
│ │ │ │ DB Services │ │
│ │ CRUD API │◄────────►│ │ │
│ │ (Port 3001) │ └────────────────┘ │
│ └─────────────────┘ │ │
│ │ │
└─────────────────────────────────────────┼───────────┘
│
▼
┌─────────────────┐
│ │
│ MongoDB │
│ │
└─────────────────┘
Clone the repository with submodules:
git clone --recursive https://github.com/SFBB/mcp-mongodb-novel-server.git
cd mcp-mongodb-novel-server
Configure environment:
Create a .env file in the project root:
MONGODB_URI=mongodb://localhost:27017
DATABASE_NAME=your_database
PORT=3000 # Base port (MCP SSE server)
# CRUD API will use PORT+1 (3001)
Build and run:
cargo build --release
cargo run --release
Upon successful startup, you'll see:
You firstly need to run this server. Then configure your client based on JSON-RPC or SSE.
This is an exmaple setup for VSCode copilot client.
"mcp-mongodb-novel-server": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
The MCP server provides two endpoints:
http://localhost:3000/sse
http://localhost:3000/message
Example MCP request (using POST to /message):
{
"jsonrpc": "2.0",
"id": "request-1",
"method": "query_character",
"params": {
"character_id": "5f8e4c3b2a1d"
}
}
The CRUD API provides RESTful endpoints for managing database content:
/api/novels/api/chapters/api/characters/api/qaStandard REST operations (GET, POST, PATCH, DELETE) are supported.
{
"_id": "ObjectId",
"title": "String",
"author": "String",
"summary": "String",
"year": "Number",
"tags": ["String"]
}
{
"_id": "ObjectId",
"novel_id": "ObjectId",
"title": "String",
"chapter_number": "Number",
"summary": "String",
"content": "String",
"word_count": "Number"
}
{
"_id": "ObjectId",
"novel_id": "ObjectId",
"name": "String",
"description": "String",
"traits": ["String"],
"relationships": [
{
"character_id": "ObjectId",
"type": "String"
}
]
}
{
"_id": "ObjectId",
"question": "String",
"answer": "String",
"tags": ["String"],
"novel_id": "ObjectId"
}
The server supports the following MCP methods for LLM interaction:
| Method | Description | Parameters |
|---|---|---|
query_character | Get character details | {"character_id": "string"} |
query_novel | Get novel metadata | {"novel_id": "string"} |
query_chapter | Get chapter information | {"chapter_id": "string"} or {"chapter_number": number} or {"chapter_title": "string"} |
query_qa_regex | Find Q&A entries by regex | {"regex_pattern": "string"} |
query_chapter_regex | Find chapters by regex | {"regex_pattern": "string"} |
query_character_regex | Find characters by regex | {"regex_pattern": "string"} |
| Method | Description | Parameters |
|---|---|---|
update_chapter_summary | Update chapter summary | {"auth_token": "string", "chapter_id": "string", "summary": "string"} |
This project includes Python scrapers as submodules to help populate your MongoDB:
cd character-scraper
pip install -r requirements.txt
python src/scraper.py --config config/settings.json
cd scraper_library
pip install -r requirements.txt
python -m src.scrapers.scrape_syosetu --url <novel_url>
Available scrapers include:
scrape_syosetu.py (Syosetu novels)scrape_69shu.py (69Shu novels)scrape_ximalaya.py (Ximalaya audio books)scrape_qa.py (Q&A content)scrape_x_timeline.py (Twitter/X timelines)# Update all submodules to their latest version
git submodule update --remote --merge
# Navigate to a specific submodule and pull changes
cd scraper_library
git pull origin main
cd ..
git add scraper_library
git commit -m "Update scraper_library"
cargo test
This project follows Rust's standard code style guidelines:
# Check code formatting
cargo fmt -- --check
# Run linting
cargo clippy
For high-traffic deployments, consider:
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for MongoDB-backed novel knowledge from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-mongodb-novel-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.