Set up Ragie in Metorial for Claude, ChatGPT and Cursor
Share Ragie with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 14 tools (8 read-only).
To give your team Ragie in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Ragie integration in a Metorial portal, and each person connects with an API key. Ingest, process, and semantically retrieve documents using RAG (Retrieval Augmented Generation). The integration has 14 tools, 8 read-only, 5 write and 1 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Ragie in a portal and how each person connects
- What Ragie asks for when you connect, and where to find it
- How to keep the 8 read-only tools and reject the other 6
Before you start
- A portal with at least one access group
- An API key from Ragie for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
API Key
To connect, a person enters:
token: Ragie API key. Obtain from https://secure.ragie.ai/api-keys
Setup settings
Setup also asks for:
partition(optional): Default partition to scope operations to. Useful for multi-tenant applications.
Admin: share Ragie in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Ragie. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Ragie.
Choose who gets it
Add the access groups that should see Ragie. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Ragie integration. Once it exists, check which groups have it:
Employee: connect Ragie
In the portal
Open Ragie in the catalog
Sign in to your portal and open Ragie. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (token).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Ragie connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 8 read-only tools, such as get_document and get_entities, and lose the 5 write tools, such as create_document or update_document, and the destructive tool delete_document.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 14 tools, minus any you rejected. list_documents takes no input. It lists documents in Ragie with optional metadata filtering and pagination.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (8)
retrieve_documents: Perform semantic search across indexed documents using a natural language query. Needsquery.get_entities: Retrieve extracted entities either by instruction (all entities extracted by a specific instruction across documents) or by document (all entities from a specific document across all instructions).get_document: Retrieve detailed information about a specific document including its status, metadata, content, summary, and chunks. NeedsdocumentId.list_documents: List documents in Ragie with optional metadata filtering and pagination.create_response: Generate an AI-powered answer using Ragie's deep-search agentic retrieval. Needsquery.list_partitions: Browse partitions in name order with pagination.download_document_source: Prepare the original source file of a document for download.list_document_chunks: Read a page of document chunks in index order, optionally limited to a range of chunk indices.
Write tools (5)
update_document: Update an existing document's metadata, content from a URL, or raw text/JSON data. NeedsdocumentId.manage_instructions: Create, list, update, or delete entity extraction instructions. Needsaction.create_document: Ingest a new document into Ragie for indexing and retrieval. Needssource.manage_partitions: List, create, inspect, or delete partitions. Needsaction.manage_connections: List, inspect, update, enable/disable, sync, or delete data source connections. Needsaction.
Destructive tools (1)
delete_document: Permanently delete a document from Ragie. NeedsdocumentId.
Triggers
Ragie has 2 triggers, which fire on events in Ragie:
connection_events: Triggers on connection sync events: sync started, sync progress, sync finished, and connection/partition limit exceeded.document_events: Triggers when document status changes (indexed, keyword_indexed, ready, failed) or when a document is deleted.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Ragie there
- Tool permissions: tool filters and what employees see
- Ragie on metorial.com: the integration overview