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 capab
Add this skill
npx mdskills install ragieai/ragie-mcp-serverWell-documented MCP server for Ragie knowledge base retrieval with clear setup instructions
1# IMPORTANT!23*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]45If 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](https://www.ragie.ai/mcp-bridge)678910# Ragie Model Context Protocol Server1112A Model Context Protocol (MCP) server that provides access to Ragie's knowledge base retrieval capabilities.1314## Description1516This 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.1718## Prerequisites1920- Node.js >= 1821- A Ragie API key2223## Installation2425The server requires the following environment variable:2627- `RAGIE_API_KEY` (required): Your Ragie API authentication key2829The server will start and listen on stdio for MCP protocol messages.3031Install and run the server with npx:3233```bash34RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server35```3637### Command Line Options3839The server supports the following command line options:4041- `--description, -d <text>`: Override the default tool description with custom text42- `--partition, -p <id>`: Specify the Ragie partition ID to query4344Examples:4546```bash47# With custom description48RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --description "Search the company knowledge base for information"4950# With partition specified51RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --partition your_partition_id5253# Using both options54RAGIE_API_KEY=your_api_key npx @ragieai/mcp-server --description "Search the company knowledge base" --partition your_partition_id55```5657## Cursor Configuration5859To use this MCP server with Cursor:6061### Option 1: Create an MCP configuration file62631. Save a file called `mcp.json`6465* **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.66* **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.6768Example `mcp.json`:69```json70{71 "mcpServers": {72 "ragie": {73 "command": "npx",74 "args": [75 "-y",76 "@ragieai/mcp-server",77 "--partition",78 "optional_partition_id"79 ],80 "env": {81 "RAGIE_API_KEY": "your_api_key"82 }83 }84 }85}86```8788### Option 2: Use a shell script89901. Save a file called `ragie-mcp.sh` on your system:91```bash92#!/usr/bin/env bash9394export RAGIE_API_KEY="your_api_key"9596npx -y @ragieai/mcp-server --partition optional_partition_id97```98992. Give the file execute permissions: `chmod +x ragie-mcp.sh`1001013. Add the MCP server script by going to **Settings** -> **Cursor Settings** -> **MCP Servers** in the Cursor UI.102103Replace `your_api_key` with your actual Ragie API key and optionally set the partition ID if needed.104105106## Claude Desktop Configuration107108To use this MCP server with Claude desktop:1091101. Create the MCP config file `claude_desktop_config.json`:111112* For MacOS: Use `~/Library/Application Support/Claude/claude_desktop_config.json`113* For Windows: Use `%APPDATA%/Claude/claude_desktop_config.json`114115Example `claude_desktop_config.json`:116```json117{118 "mcpServers": {119 "ragie": {120 "command": "npx",121 "args": [122 "-y",123 "@ragieai/mcp-server",124 "--partition",125 "optional_partition_id"126 ],127 "env": {128 "RAGIE_API_KEY": "your_api_key"129 }130 }131 }132}133```134135Replace `your_api_key` with your actual Ragie API key and optionally set the partition ID if needed.1361372. Restart Claude desktop for the changes to take effect.138139The Ragie retrieval tool will now be available in your Claude desktop conversations.140141## Features142143### Retrieve Tool144145The server provides a `retrieve` tool that can be used to search the knowledge base. It accepts the following parameters:146147- `query` (string): The search query to find relevant information148- `topK` (number, optional, default: 8): The maximum number of results to return149- `rerank` (boolean, optional, default: true): Whether to try and find only the most relevant information150- `recencyBias` (boolean, optional, default: false): Whether to favor results towards more recent information151152The tool returns:153- An array of content chunks containing matching text from the knowledge base154155## Development156157This project is written in TypeScript and uses the following main dependencies:158- `@modelcontextprotocol/sdk`: For implementing the MCP server159- `ragie`: For interacting with the Ragie API160- `zod`: For runtime type validation161162### Development setup163164Running the server in dev mode:165166```bash167RAGIE_API_KEY=your_api_key npm run dev -- --partition optional_partition_id168```169170Building the project:171172```bash173npm run build174```175176## License177178MIT License - See LICENSE.txt for details.179
Full transparency — inspect the skill content before installing.