Ragie MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Ragie MCP or direct API to manage RAG pipelines, run queries, ingest documents, and retrieve knowledge through natural language.

Ragie logoRagie
Api Key

Ragie is a fully managed Retrieval-Augmented Generation (RAG) service for developers. It streamlines integration of RAG workflows so you can focus on building smarter applications.

31 Tools

Try Ragie now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Ragie
Try asking
TOOLS

Supported Tools

Every Ragie action and event your agent gets out of the box.

Create Document

Tool to upload and process a document file in Ragie.

Create Document From URL

Tool to ingest a document from a publicly accessible URL.

Create Document Raw

Tool to ingest a document as raw text or JSON.

Create Instruction

Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated.

Create OAuth Redirect URL

Tool to create an OAuth redirect URL for initializing embedded connector OAuth flows.

Create Partition

Tool to create a new partition for scoping documents and connections in Ragie.

Delete Document

Tool to delete a document from Ragie.

Delete Instruction

Tool to delete an instruction and all associated entities.

Delete Partition

Tool to delete a partition and all associated data irreversibly.

Get Document

Tool to retrieve a specific document by its unique identifier.

Get Document Chunk

Tool to retrieve a specific document chunk by its document and chunk ID.

Get Document Chunk Content

Tool to retrieve document chunk content in requested format with streaming support for media.

Get Document Chunks

Tool to retrieve document chunks with pagination support.

Get Document Content

Tool to retrieve the content of a document by its ID.

Get Document Summary

Tool to retrieve an LLM-generated summary of a document by its ID.

Get Partition

Tool to retrieve a partition by ID with usage statistics and resource limits.

Get Response

Tool to retrieve a response by its unique identifier.

List Connections

Tool to list all connections sorted by creation date descending with pagination support.

List Connection Source Types

Tool to list available connection source types like 'google_drive' and 'notion' along with their metadata.

List Documents

Tool to list all documents sorted by creation date (descending) with pagination support.

List Entities By Document

Tool to retrieve all extracted entities from a specific document with pagination support.

List Entities by Instruction

Tool to retrieve entities generated by a specific instruction.

List Instructions

Tool to retrieve all instruction records from the Ragie system.

List Partitions

Tool to retrieve a paginated list of all partitions sorted by name in ascending order.

Patch Document Metadata

Tool to update metadata for a specific document with partial update support.

Retrieve Document Chunks

Tool to retrieve relevant document chunks based on a query.

Set Partition Limits

Tool to set usage limits on partition pages and media.

Update Document From URL

Tool to update an existing document by fetching content from a publicly accessible URL.

Update Document Raw

Tool to update a document's content from raw text or JSON data.

Update Instruction

Tool to update an instruction's active status.

Update Partition

Tool to update a partition's configuration including description, context-aware settings, and metadata schema.

SETUP GUIDE

Connect Ragie MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for Ragie
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Ingest the latest quarterly report PDF into my Ragie knowledge base.'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect Ragie API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Ragie Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Run a semantic search for "project roadmap" in my Ragie knowledge base.'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Ragie actions with your Agent

Why Use Composio?

AI Native Ragie Integration

  • Supports both Ragie MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Ragie data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Ragie access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Ragie
  • Scoped, least privilege access to Ragie resources
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Yes, Ragie requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Ragie.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Ragie tool your agent needs.Free to start.

Start building