Jeevanpradhan571/mcp-groundx-rag-server
If you are the rightful owner of mcp-groundx-rag-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP-GroundX RAG Integration server is designed to facilitate AI-powered document search by integrating with the GroundX RAG platform, enabling seamless retrieval of information from document collections.
MCP-GroundX RAG Integration: AI-Powered Document Search Server
A Model Context Protocol (MCP) server that integrates with GroundX RAG platform to enable AI assistants to search and retrieve information from document collections.
🚀 Features
- RAG Integration: Seamless integration with GroundX's document search capabilities
- MCP Protocol: Standard protocol for AI tool integration
- Semantic Search: Advanced document retrieval using vector embeddings
- Real-time Queries: Fast, responsive document search
- Secure API Management: Environment-based configuration
🛠️ Technologies Used
- Python 3 - Core programming language
- FastMCP - MCP server framework
- GroundX SDK - Document search and RAG platform
- python-dotenv - Environment variable management
📋 Prerequisites
- Python 3.7+
- GroundX account and API key
- Git
🔧 Installation
-
Clone the repository
git clone <your-repo-url> cd MCP -
Install dependencies
pip install mcp-server-fastmcp groundx python-dotenv -
Set up environment variables
cp env.example .envEdit
.envfile and add your GroundX API key:GROUNDX_API_KEY=your_groundx_api_key_here
🚀 Usage
-
Start the MCP server
python3 server.py -
Connect with MCP clients The server provides a tool called
search_doc_for_rag_contextthat accepts query strings and returns relevant document excerpts.
📁 Project Structure
MCP/
├── server.py # Main MCP server implementation
├── .env # Environment variables (not in repo)
├── env.example # Example environment file
├── .gitignore # Git ignore rules
├── requirements.txt # Python dependencies
└── README.md # This file
🔧 Configuration
Environment Variables
GROUNDX_API_KEY: Your GroundX API key (required)
GroundX Database
The server is configured to search GroundX database ID 19859. To use a different database:
- Update the
idparameter inserver.py:response = client.search.content( id=YOUR_DATABASE_ID, # Change this query=query, n=10, )
🛠️ API Reference
MCP Tool: search_doc_for_rag_context
Parameters:
query(string): Search query for document retrieval
Returns:
string: Relevant document excerpts from GroundX database
Example:
# Query for aircraft specifications
result = search_doc_for_rag_context("MIG 29 aircraft dimensions")
🔒 Security
- API keys are stored in environment variables (not in code)
.envfile is excluded from version control- Use
env.exampleas a template for configuration
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the file for details.
🙏 Acknowledgments
- GroundX for the RAG platform
- Model Context Protocol for the integration standard
- FastMCP for the server framework
📞 Support
For issues and questions:
- Create an issue in this repository
- Check the GroundX documentation
- Review MCP documentation