
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
mongodocs-mcp
Advanced tools
Optimized MongoDB MCP with 2-tool architecture: RRF hybrid + MMR advanced search. Features smart indexing, voyage-context-3 embeddings, and 7.5x speed optimization for Claude/Cursor.
MongoDB semantic documentation search server implementing the Model Context Protocol (MCP) for IDE integration with Claude and Cursor.
Transforms MongoDB documentation into searchable vector embeddings using Voyage AI's voyage-context-3 model (1024 dimensions) and MongoDB Atlas Vector Search, enabling natural language queries against comprehensive MongoDB documentation corpus.
MongoDB Atlas:
mongodb+srv://
Voyage AI:
pa-
# Install globally
npm install -g mongodocs-mcp
# Set credentials
export MONGODB_URI="mongodb+srv://your-connection-string"
export VOYAGE_API_KEY="pa-your-api-key"
# Initial indexing (10-15 minutes)
mongodocs-index
For Cursor IDE - Add to .cursor/settings.json
:
{
"mcpServers": {
"mongodocs": {
"command": "npx",
"args": ["mongodocs-mcp"],
"env": {
"MONGODB_URI": "mongodb+srv://your-connection-string",
"VOYAGE_API_KEY": "pa-your-api-key"
}
}
}
}
For Claude Desktop - Add to MCP settings:
{
"mcpServers": {
"mongodocs": {
"command": "mongodocs-mcp",
"env": {
"MONGODB_URI": "mongodb+srv://your-connection-string",
"VOYAGE_API_KEY": "pa-your-api-key"
}
}
}
}
Restart your IDE after configuration.
Query MongoDB documentation using natural language through your IDE:
How do I implement vector search in MongoDB?
Show me RAG examples with MongoDB Atlas
What's the syntax for compound indexes?
How to optimize aggregation performance?
MCP Tool Architecture:
mongodb-search
: RRF hybrid algorithm (vector + keyword fusion) - primary search methodmongodb-mmr-search
: Maximum Marginal Relevance algorithm - diverse result optimizationmongodocs-index # Smart indexing (default)
mongodocs-index rebuild # Force full rebuild
mongodocs-index clean # Clear database
mongodocs-index stats # Show statistics
mongodocs-index test # Test embedding service
Initial Processing:
🔄 Smart indexing - checking for repository changes...
🆕 MongoDB Official Documentation first time indexing...
Delta Updates:
🔄 Smart indexing - checking for repository changes...
✅ MongoDB Official Documentation up to date (a1b2c3d4), skipping...
✅ MongoDB Manual up to date (e5f6g7h8), skipping...
✅ Smart update complete!
Git commit hash comparison enables differential processing - only changed documents trigger re-embedding and storage operations.
Vector Embedding Pipeline:
MongoDB Atlas Configuration:
Search Algorithm Implementation:
Data Processing:
Repository Sources:
mongodb/docs
- Official MongoDB documentationmongodb/docs-generative-ai-showcase
- Vector search examplesmongodb/atlas-search-playground-chatbot-starter
- RAG implementationsmongodb/drivers-examples
- Language-specific implementationsmongodb-developer/code-examples
- Community patternsProcessing Statistics:
Indexing Operations:
Search Performance:
No search results:
mongodocs-index stats # Check if database is populated
Dimension errors:
mongodocs-index clean && mongodocs-index # Fresh rebuild
Connection issues:
git clone https://github.com/romiluz/mongodocs-mcp.git
cd mongodocs-mcp
npm install
npm run build
npm start
MIT License - see LICENSE file
FAQs
Transform any GitHub repository into searchable vector embeddings. MCP server with smart indexing, voyage-context-3 embeddings, and semantic search for Claude/Cursor IDEs.
The npm package mongodocs-mcp receives a total of 21 weekly downloads. As such, mongodocs-mcp popularity was classified as not popular.
We found that mongodocs-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.