Labsco
ragieai logo

Ragie

โ˜… 86

from ragieai

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

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

IMPORTANT!

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

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.

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:

Copy & paste โ€” that's it
RAGIE_API_KEY=your_api_key npm run dev -- --partition optional_partition_id

Building the project:

Copy & paste โ€” that's it
npm run build

License

MIT License - See LICENSE.txt for details.