Manages environment variables and sensitive configuration through .env files for secure API key storage.
Enables version control for contributing features through forking, branching, committing, and pull requests.
Supports Jupyter notebook functionality through ipykernel, allowing interactive development and testing.
Integrates with OpenAI API for generating completions, enabling RAG capabilities with various models including GPT-4.
Provides type-safety and validation through Pydantic models for robust data handling and configuration.
Built on Python 3.12+ with support for virtual environments and package management.
MCP-RAG: Model Context Protocol with RAG 🚀
A powerful and efficient RAG (Retrieval-Augmented Generation) implementation using GroundX and OpenAI, built with Modern Context Processing (MCP).
🌟 Features
Advanced RAG Implementation: Utilizes GroundX for high-accuracy document retrieval
Model Context Protocol: Seamless integration with MCP for enhanced context handling
Type-Safe: Built with Pydantic for robust type checking and validation
Flexible Configuration: Easy-to-customize settings through environment variables
Document Ingestion: Support for PDF document ingestion and processing
Intelligent Search: Semantic search capabilities with scoring
🛠️ Prerequisites
Python 3.12 or higher
OpenAI API key
GroundX API key
MCP CLI tools
📦 Installation
Clone the repository:
Create and activate a virtual environment:
⚙️ Configuration
Copy the example environment file:
Configure your environment variables in
.env
:
🚀 Usage
Starting the Server
Run the inspect server using:
Document Ingestion
To ingest new documents:
Performing Searches
Basic search query:
With custom configuration:
📚 Dependencies
groundx
(≥2.3.0): Core RAG functionalityopenai
(≥1.75.0): OpenAI API integrationmcp[cli]
(≥1.6.0): Modern Context Processing toolsipykernel
(≥6.29.5): Jupyter notebook support
🔒 Security
Never commit your
.env
file containing API keysUse environment variables for all sensitive information
Regularly rotate your API keys
Monitor API usage for any unauthorized access
🤝 Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature
)Commit your changes (
git commit -m 'Add some amazing feature'
)Push to the branch (
git push origin feature/amazing-feature
)Open a Pull Request
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A server that implements Retrieval-Augmented Generation using GroundX and OpenAI, enabling semantic search and document retrieval with Modern Context Processing for enhanced context handling.
Related MCP Servers
- -securityAlicense-qualityA server that enables document searching using Vertex AI with Gemini grounding, improving search results by grounding responses in private data stored in Vertex AI Datastore.Last updated -29Apache 2.0
- -security-license-qualityA Retrieval-Augmented Generation server that enables semantic PDF search with OCR capabilities, allowing users to query document content through any MCP client and receive intelligent answers.
- -securityFlicense-qualityImplements Retrieval-Augmented Generation (RAG) using GroundX and OpenAI, allowing users to ingest documents and perform semantic searches with advanced context handling through Modern Context Processing (MCP).Last updated -4
- -securityAlicense-qualityA server that integrates Retrieval-Augmented Generation (RAG) with the Model Control Protocol (MCP) to provide web search capabilities and document analysis for AI assistants.Last updated -3Apache 2.0