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.
search_doc_for_rag_context
Accepts query strings and returns relevant document excerpts from the GroundX database.
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 .env
Edit
.env
file 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_context
that 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
id
parameter 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)
.env
file is excluded from version control- Use
env.example
as 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