Cradl AI MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Cradl AI MCP or direct API to upload documents, run extraction workflows, review results, and monitor processing status through natural language.

Cradl AI logoCradl AI
S2s Oauth2

Cradl AI is an API-first platform for AI-powered document extraction workflows. Use it to turn invoices, forms, and PDFs into structured data at scale.

11 Tools

Try Cradl AI now

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

TOOL ROUTER PLAYGROUND
Cradl AI
Try asking
TOOLS

Supported Tools

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

Download File

Download document, OCR, annotation, prediction, or run-variable content from an exact Cradl AI file-service URL with a cradl:file ID.

Get Agent Run

Get the current state and outputs of one Cradl AI agent run.

Get Document

Get metadata, processing links, and annotations for one Cradl AI document by ID.

Get Prediction

Get one extracted prediction, including its status, fields, errors, and downloadable output references.

List Agent Runs

List processing runs for an agent, optionally filtered by status or creation/update time.

List Agents

List document-processing agents available to the connected Cradl AI workspace.

List Documents

List documents in the connected Cradl AI workspace and discover document IDs and content/output file URLs.

List Predictions

List extracted predictions, optionally filtered by model, and discover prediction IDs and output file URLs.

Process Document

Create a Cradl agent run and document, then upload one document for asynchronous extraction, consuming processed-page quota.

Start Agent Run

Create a processing run for an existing Cradl AI agent.

Upload Document to Run

Create a document attached to a Cradl AI agent run and upload its PDF, image, or email content for asynchronous processing, consuming processed-page quota.

SETUP GUIDE

Connect Cradl AI MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

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

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["cradl_ai"],
  mcp: true,
});
Create a session scoped to Cradl AI and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List failed Cradl AI document extraction jobs",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Cradl AI request
SETUP GUIDE

Connect Cradl AI API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

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

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["cradl_ai"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Cradl AI
3

Run Cradl AI tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List failed Cradl AI document extraction jobs" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Cradl AI tool calls through the session, and print the final answer

Why Use Composio?

AI Native Cradl AI Integration

  • Supports both Cradl AI MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable document extraction tasks
  • Rich coverage for working with extraction workflows, documents, and results

Managed Auth

  • Built-in S2S OAuth2 handling with secure token storage and lifecycle management
  • Central place to manage, scope, and revoke Cradl AI access
  • Per user and per environment credentials instead of hard-coded secrets

Agent Optimized Design

  • Tools are tuned so agents can run Cradl AI extraction workflows with fewer mistakes
  • Clear tool inputs help models understand documents, jobs, and extraction results
  • 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 Cradl AI
  • Scoped, least privilege access to Cradl AI document extraction resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Cradl AI.It takes 30 seconds.

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

Start building