Ragie Model Context Protocol Server

by ragieai

89 267 downloads Not rated yet MIT license

About

An MCP server for accessing Ragie's knowledge base retrieval capabilities.

Details

License
MIT license

Explore

- Provides a single “retrieve” tool for knowledge base queries.
- Accepts query, topK, rerank, and recencyBias parameters.
- Returns an array of relevant content chunks.
- Supports custom tool description and partition ID overrides.
- Runs on Node.js >= 18 with a Ragie API key.
- Works with Cursor and Claude Desktop MCP configurations.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Ragie Model Context Protocol Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Node.js >= 18
- A Ragie API key

To use this MCP server with Cursor:

1. Save a file called mcp.json

For tools specific to a project, create a .cursor/mcp.json file in your project directory. This allows you to define MCP servers that are only available within that specific project.
For tools that you want to use across all projects, create a ~/.cursor/mcp.json file in your home directory. This makes MCP servers available in all your Cursor workspaces.

Example mcp.json:

{
"mcpServers": {
"ragie": {
"command": "npx",
"args": [
"-y",
"@ragieai/mcp-server",
"--partition",
"optional_partition_id"
],
"env": {
"RAGIE_API_KEY": "your_api_key"
}
}
}
}

To use this MCP server with Claude desktop:

1. Create the MCP config file claude_desktop_config.json:

For MacOS: Use ~/Library/Application Support/Claude/claude_desktop_config.json
For Windows: Use %APPDATA%/Claude/claude_desktop_config.json

Example claude_desktop_config.json:

{
"mcpServers": {
"ragie": {
"command": "npx",
"args": [
"-y",
"@ragieai/mcp-server",
"--partition",
"optional_partition_id"
],
"env": {
"RAGIE_API_KEY": "your_api_key"
}
}
}
}

Replace your_api_key with your actual Ragie API key and optionally set the partition ID if needed.

2. Restart Claude desktop for the changes to take effect.

The Ragie retrieval tool will now be available in your Claude desktop conversations.

Running the server in dev mode:

RAGIE_API_KEY=your_api_key npm run dev -- --partition optional_partition_id

Building the project:

npm run build

query

(string): The search query to find relevant information

topK

(number, optional, default: 8): The maximum number of results to return

rerank

(boolean, optional, default: true): Whether to try and find only the most relevant information

recencyBias

(boolean, optional, default: false): Whether to favor results towards more recent information

The server provides a retrieve tool that can be used to search the knowledge base. It accepts the following parameters:

- query (string): The search query to find relevant information
- topK (number, optional, default: 8): The maximum number of results to return
- rerank (boolean, optional, default: true): Whether to try and find only the most relevant information
- recencyBias (boolean, optional, default: false): Whether to favor results towards more recent information

The tool returns:
- An array of content chunks containing matching text from the knowledge base

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "ragie model context protocol server": {
            "ragie-mcp-server": {
                "command": "npx",
                "args": [
                    "@ragieai/mcp-server"
                ],
                "env": {
                    "RAGIE_API_KEY": "your_api_key"
                }
            }
        }
    }
}

McpServers

{
    "ragie-mcp-server": {
        "command": "npx",
        "args": [
            "@ragieai/mcp-server"
        ],
        "env": {
            "RAGIE_API_KEY": "your_api_key"
        }
    }
}

A Model Context Protocol (MCP) server that provides access to Ragie's knowledge base retrieval capabilities.

Description

This server implements the Model Context Protocol to enable AI models to retrieve information from a Ragie knowledge base. It provides a single tool called "retrieve" that allows querying the knowledge base for relevant information.

Prerequisites

- Node.js >= 18
- A Ragie API key

Installation

The server requires the following environment variable:

- RAGIE_API_KEY (required): Your Ragie API authentication key

The server will start and listen on stdio for MCP protocol messages.

Install and run the server with npx:

RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server

Command Line Options

The server supports the following command line options:

- --description, -d <text>: Override the default tool description with custom text
- --partition, -p <id>: Specify the Ragie partition ID to query

Examples:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.

Videos about Ragie Model Context Protocol Server

Relevant YouTube tutorials, setups, and demos