Retrieve context from your Ragie (RAG) knowledge base connected to integrations like Google Drive, Notion, JIRA and more.
Add to Claude Desktop config.json
{
"mcpServers": {
"ragieai-ragie-mcp-server": {
"command": "node",
"args": [
"~/.mcp/ragie-mcp-server/index.js"
]
}
}
} Get the source and run locally
git clone https://github.com/ragieai/ragie-mcp-server.git ~/.mcp/ragie-mcp-server
cd ~/.mcp/ragie-mcp-server This project is no longer needed. Ragie now supports MCP natively as a streamable HTTP server. See docs here: [https://docs.ragie.ai/docs/mcp-overview]
If you would like users within your company to be able to access you knowledge base in applications like Claude or ChatGPT, you may need MCP Bridge
A Model Context Protocol (MCP) server that provides access to Ragie’s knowledge base retrieval capabilities.
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.
The server requires the following environment variable:
RAGIE_API_KEY (required): Your Ragie API authentication keyThe 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
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 queryExamples:
# 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
To use this MCP server with Cursor:
mcp.json.cursor/mcp.json file in your project directory. This allows you to define MCP servers that are only available within that specific project.~/.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"
}
}
}
}
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
Give the file execute permissions: chmod +x ragie-mcp.sh
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.
To use this MCP server with Claude desktop:
claude_desktop_config.json:~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.jsonExample 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.
The Ragie retrieval tool will now be available in your Claude desktop conversations.
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 informationtopK (number, optional, default: 8): The maximum number of results to returnrerank (boolean, optional, default: true): Whether to try and find only the most relevant informationrecencyBias (boolean, optional, default: false): Whether to favor results towards more recent informationThe tool returns:
This project is written in TypeScript and uses the following main dependencies:
@modelcontextprotocol/sdk: For implementing the MCP serverragie: For interacting with the Ragie APIzod: For runtime type validationRunning the server in dev mode:
RAGIE_API_KEY=your_api_key npm run dev -- --partition optional_partition_id
Building the project:
npm run build
MIT License - See LICENSE.txt for details.
Up-to-date code documentation for LLMs and AI code editors.
Memory manager for AI apps and Agents using various graph and vector stores and allowing ingestion from 30+ data sources.
Context compression layer for AI agents. Compresses tool outputs, logs, RAG chunks, files, and conversation history before they reach the LLM, with reversible retrieval through MCP tools.
Universal AI bridge for Obsidian vaults using MCP. Provides safe read/write access to notes with 11 comprehensive methods for vault operations including search, batch operations, tag management, and frontmatter handling. Works with Claude, ChatGPT, and any MCP-compatible AI assistant.
Production-ready RAG platform combining Graph RAG, vector search, and full-text search. Best choice for building your own Knowledge Graph and for Context Engineering
A Model Context Protocol server for Mem0 that helps manage coding preferences and patterns, providing tools for storing, retrieving and semantically handling code implementations, best practices and technical documentation in IDEs like Cursor and Windsurf