How to integrate Ragie MCP with Codex

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Ragie MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

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

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Ragie MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate Ragie with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Ragie MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

What is the Ragie MCP server, and what's possible with it?

The Ragie MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Ragie account. It provides structured and secure access so your agent can perform Ragie operations on your behalf.

Conclusion

You've successfully integrated Ragie with Codex using Composio's MCP server. Now you can interact with Ragie directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Ragie operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Ragie operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
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.

FAQ

Frequently asked questions

With a standalone Ragie MCP server, the agents and LLMs can only access a fixed set of Ragie tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Ragie and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Ragie tools.

Yes, absolutely. You can configure which Ragie scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Ragie data and credentials are handled as safely as possible.

Start with Ragie.It takes 30 seconds.

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

Start building