GroundX RAG MCP server

Integrates with GroundX to provide document search and ingestion capabilities, enabling domain-specific knowledge retrieval without requiring direct access to underlying document storage.
Back to servers
Provider
PRIXYY
Release date
Apr 13, 2025
Language
Python
Stats
1 star

This MCP Document QA Server allows you to ingest documents and ask questions about them, utilizing the GroundX API for document parsing and intelligent querying. The server provides a straightforward way to manage document-based information retrieval.

Getting Started

Prerequisites

Before using the MCP Document QA Server, you need to:

  1. Fork the repository to your GitHub account
  2. Have Cursor installed on your system
  3. Obtain a GroundX API key

Installation

Follow these steps to set up the server:

  1. Fork the repository to your GitHub account
  2. Open the forked repository in Cursor
  3. Add your GroundX API key to the server.py file:
# server.py
GROUNDX_API_KEY = "your_api_key_here"
  1. Use the "Add MCP" option in Cursor
    • The platform will automatically detect the included mcp.json file

Usage

Once you've completed the installation, you'll have access to two main tools:

Document Ingestion

Use the ingest_documents tool to upload new documents to the system. This adds content to your knowledge base that can later be queried.

Querying Documents

The answer_query tool allows you to ask questions about your ingested documents. The system will analyze your query and provide context-aware answers based on the document content.

Tools Overview

The MCP server comes with two pre-configured tools:

  • ingest_documents: Uploads and processes new documents into the system
  • answer_query: Processes natural language questions and returns relevant information from your document collection

Both tools leverage the GroundX API to handle document parsing and information retrieval behind the scenes.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later