Ragie Model Context Protocol Server

Ragie Model Context Protocol Server
Official

An MCP server that enables AI models to retrieve information from Ragie's knowledge base through a simple 'retrieve' tool.

ragieai

Search
Knowledge & Memory
Visit Server

Tools

retrieve

Look up information in the Knowledge Base. Use this tool when you need to: - Find relevant documents or information on specific topics - Retrieve company policies, procedures, or guidelines - Access product specifications or technical documentation - Get contextual information to answer company-specific questions - Find historical data or information about projects

README

image

Ragie Model Context Protocol Server

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:

# With custom description
RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --description "Search the company knowledge base for information"

# With partition specified
RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --partition your_partition_id

# Using both options
RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --description "Search the company knowledge base" --partition your_partition_id

Cursor Configuration

To use this MCP server with Cursor:

Option 1: Create an MCP configuration file

  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"
      }
    }
  }
}

Option 2: Use a shell script

  1. Save a file called ragie-mcp.sh on your system:
#!/usr/bin/env bash

export RAGIE_API_KEY="your_api_key"

npx -y @ragieai/mcp-server --partition optional_partition_id
  1. Give the file execute permissions: chmod +x ragie-mcp.sh

  2. Add the MCP server script by going to Settings -> Cursor Settings -> MCP Servers in the Cursor UI.

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

Claude Desktop Configuration

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.

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

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

Features

Retrieve Tool

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

Development

This project is written in TypeScript and uses the following main dependencies:

  • @modelcontextprotocol/sdk: For implementing the MCP server
  • ragie: For interacting with the Ragie API
  • zod: For runtime type validation

Development setup

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

License

MIT License - See LICENSE.txt for details.

Recommended Servers

graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
serper-search-scrape-mcp-server

serper-search-scrape-mcp-server

This Serper MCP Server supports search and webpage scraping, and all the most recent parameters introduced by the Serper API, like location.

Featured
TypeScript
The Verge News MCP Server

The Verge News MCP Server

Provides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.

Featured
TypeScript
Google Search Console MCP Server

Google Search Console MCP Server

A server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.

Featured
TypeScript
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
MCP DuckDB Knowledge Graph Memory Server

MCP DuckDB Knowledge Graph Memory Server

A memory server for Claude that stores and retrieves knowledge graph data in DuckDB, enhancing performance and query capabilities for conversations with persistent user information.

Featured
TypeScript
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript