Ragie MCP server
54 operations8 webhooks
Ragie is retrieval-augmented generation as a service. This plugin ingests documents from files, raw text or URLs, searches them with metadata filters and reranking, generates grounded deep-search answers, reads chunks, elements and source files, runs entity extraction, manages partitions, data connections, OAuth authenticators and webhook endpoints, and receives signed webhook events.
Try Ragie with your agent
Connect Ragie, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Ragie on my account, then run one read-only example and show me the result.
Ragie tools and triggers
Tools are what your agent can do in Ragie through Corsair's MCP server. Triggers are the Ragie events a routine can start from.
Documents
- CreateDestructive
Upload a file for ingestion. Processing runs in the background: poll documents.get until status is ready or failed
documents.create
- Create From UrlDestructive
Fetch a URL and ingest its content. Processing runs in the background: poll documents.get until status is ready or failed
documents.createFromUrl
- Create RawDestructive
Ingest raw text. Processing runs in the background: poll documents.get until status is ready or failed
documents.createRaw
- DeleteDestructive
Delete a document and its chunks. There is no restore call
documents.delete
- GetRead-only
Read one document, including its processing status: pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready or failed
documents.get
- Get ChunkRead-only
Read one chunk of a document: its text, metadata and links
documents.getChunk
- Get Chunk ContentRead-only
Download one chunk as text, audio, video or image (media_type), returned as a file
documents.getChunkContent
- Get ChunksRead-only
List the chunks a document was split into, paged by cursor
documents.getChunks
- Get ContentRead-only
Read a document processed content as JSON. Audio and video media-type streaming is not wrapped
documents.getContent
- Get SourceRead-only
Download the original file a document was made from
documents.getSource
- Get SummaryRead-only
Read the LLM summary of a document; unavailable for spreadsheets, JSON and documents over a million tokens
documents.getSummary
- ListRead-only
List documents with their processing status, paged by cursor; filter by a JSON metadata filter or partition
documents.list
- List ElementsRead-only
List the structural elements Ragie parsed from a document (titles, text, tables, images), paged by cursor
documents.listElements
- List EntitiesRead-only
List the entities instructions extracted from one document, paged by cursor
documents.listEntities
- Patch MetadataWrite
Merge metadata onto a document; a null value deletes that key
documents.patchMetadata
- Update FileDestructive
Replace a document with a new file. Reprocessing runs in the background: poll documents.get until status is ready or failed
documents.updateFile
- Update From UrlDestructive
Replace a document with content fetched from a URL. Reprocessing runs in the background: poll documents.get until status is ready or failed
documents.updateFromUrl
- Update RawDestructive
Replace a document with new raw text. Reprocessing runs in the background: poll documents.get until status is ready or failed
documents.updateRaw
Connections
- CreateDestructive
Create a non-OAuth connector such as S3, GCS, Freshdesk, Zendesk, Intercom or a web crawler, with its settings and credentials
connections.create
- Create OAuth Redirect UrlWrite
Start an OAuth connector flow (Google Drive, Notion and the like) and get the short-lived redirect URL to send the user to
connections.createOAuthRedirectUrl
- DeleteDestructive
Delete a connection. With keep_files false its documents are deleted too and cannot be recovered; with true the documents survive unlinked
connections.delete
- GetRead-only
Read one connection, including its sync state and limits
connections.get
- Get StatsRead-only
Read a connection's document and page counts
connections.getStats
- ListRead-only
List managed data connectors, paged by cursor
connections.list
- List Source TypesRead-only
List the connector types Ragie supports, with the metadata each needs
connections.listSourceTypes
- Set EnabledWrite
Enable or disable a connection syncing
connections.setEnabled
- Set LimitsWrite
Set the monthly page limit on a connection; null removes the limit
connections.setLimits
- SyncDestructive
Schedule a connector to sync as soon as possible; the sync itself runs in the background
connections.sync
- UpdateWrite
Update a connection metadata, mode, partition strategy or page limit
connections.update
Instructions
- CreateDestructive
Create an entity extraction instruction; it runs on matching documents and their extraction is billed
instructions.create
- DeleteDestructive
Delete an instruction and the entities it extracted
instructions.delete
- ListRead-only
List entity extraction instructions
instructions.list
- List EntitiesRead-only
List the entities one instruction extracted, paged by cursor
instructions.listEntities
- List Extraction LogsRead-only
List extraction attempts for an instruction with status and reasons, filterable by document, status and date
instructions.listExtractionLogs
- UpdateWrite
Change an instruction's prompt, schema, filter or active flag
instructions.update
Partitions
- CreateWrite
Create a partition with optional page and media limits and a metadata schema
partitions.create
- DeleteDestructive
Delete a partition and every document in it
partitions.delete
- GetRead-only
Read a partition with its limits and usage stats
partitions.get
- ListRead-only
List partitions with their limits, paged by cursor
partitions.list
- Set LimitsWrite
Set a partition's monthly and maximum page and media limits
partitions.setLimits
- UpdateWrite
Change a partition's description, context awareness or metadata schema
partitions.update
Webhook Endpoints
- CreateWrite
Register a webhook endpoint. The answer carries its signing secret (reads of the endpoint return it too); keep it somewhere safe
webhookEndpoints.create
- DeleteDestructive
Delete a webhook endpoint registration; its signing secret stops working
webhookEndpoints.delete
- GetRead-only
Read one webhook endpoint registration
webhookEndpoints.get
- ListRead-only
List the webhook endpoints registered to receive tenant events, paged by cursor. This plugin verifies and handles the deliveries (see webhooks)
webhookEndpoints.list
- UpdateWrite
Update a webhook endpoint name, URL, partition pattern or active flag
webhookEndpoints.update
Authenticators
- CreateWrite
Register your own OAuth app (client id and secret) for a provider's connections
authenticators.create
- Create ConnectionDestructive
Create a connection through your own OAuth app; it starts syncing and processing pages, which is billed
authenticators.createConnection
- DeleteDestructive
Delete an OAuth app registration
authenticators.delete
- ListRead-only
List your own OAuth apps registered for connections, paged by cursor
authenticators.list
Responses
- CreateDestructive
Generate a grounded answer with the deep-search model. Bills LLM usage; poll responses.get until status is completed or failed
responses.create
- GetRead-only
Read a generated response, including its status and the final answer
responses.get
Elements
- GetRead-only
Read one parsed document element
elements.get
Retrievals
- RetrieveRead-only
Search ingested documents and return scored chunks, optionally reranked and filtered by metadata operators
retrievals.retrieve
Connect Ragie to Claude, ChatGPT or Cursor
- 1
Connect Ragie in Corsair
Add your Ragie API key once in Corsair. Corsair stores the credential encrypted and makes the Ragie API calls for your agent, so it never goes into a prompt or a config file. Connect Ragie
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Ragie. On a ChatGPT personal plan, connect Ragie here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Ragie's read and write operations run right away and its 17 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/ragie, add the Ragie plugin, and connect with an API key. Then call methods like corsair.ragie.api.authenticators.create() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. Ragie requires an API key from your Ragie account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Ragie, GitHub, Notion, Stripe, and the rest. Trigger Ragie from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for ragie is retrieval-augmented generation as a service. This plugin ingests documents from files, raw text or URLs, searches them with metadata filters and reranking, generates grounded deep-search answers, reads chunks, elements and source files, runs entity extraction, manages partitions, data connections, OAuth authenticators and webhook endpoints, and receives signed webhook events. Common builds include sync jobs, admin tooling, and agents that call Ragie APIs from your backend. Webhook handlers react to Ragie events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Ragie API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/ragie in the open repo. When Ragie ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Ragie data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Ragie data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Ragie on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 17 destructive Ragie operations. You can change a link's mode at hub.corsair.dev/me.