How to integrate Unstructured MCP with Atomic Agent

Connect Atomic Agent to Unstructured MCP. Parse uploaded pdfs into clean markdown, extract invoice fields using a schema, and more using natural language, with authentication handled for you.

Unstructured logoUnstructured
Api Key

Unstructured is a document-processing service that turns files into Markdown and structured elements. It helps teams extract clean, usable data from complex documents.

9 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including Unstructured.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Unstructured account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Unstructured with

How Atomic Agent connects to Unstructured

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Unstructured to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Unstructured. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Unstructured account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

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

The Unstructured MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Unstructured account. It provides structured and secure access to document uploads, parsing, field extraction, and job management, so your agent can upload files, convert documents to Markdown or structured elements, extract defined fields, and manage processing jobs on your behalf.

  • Document uploads and reuse: Have your agent upload supported documents to temporary storage, reuse them for parsing or field extraction, download them later, or delete them when they are no longer needed.
  • Document parsing: Direct your agent to parse an uploaded or stored document into Markdown or structured elements, with the option to wait for the result or continue with a queued job.
  • Schema-based field extraction: Instruct your agent to extract schema-defined fields from an uploaded document, stored file, or completed parsing job.
  • Processing job tracking: Let your agent list processing jobs, check a job's current status and available result, and review errors when a parse or extraction task needs attention.
  • Job cleanup and cancellation: Have your agent cancel queued or processing jobs, or remove completed jobs from job listings when they're no longer needed.

Use Unstructured from Atomic Agent

With your account connected, ask Atomic Agent to work with Unstructured in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

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

Cancel Job

Request irreversible cancellation of one queued or processing Parse or Extract job and return its immediate status snapshot; terminal jobs are unchanged.

Delete Job

Request asynchronous removal of one terminal Parse or Extract job from job listings; source and output blobs may remain temporarily.

Delete Uploaded File

Permanently delete one temporary uploaded file; related jobs remain and a queued job may fail if it has not consumed the file.

Download Uploaded File

Download the exact bytes of a previously uploaded scratch file before it expires.

Extract Fields

Extract schema-defined fields from one uploaded document, stored file, or completed Parse job, either waiting for a result or returning a queued job.

Get Job

Get the current status, error, configuration, and available result for one Parse or Extract job.

List Jobs

Return one newest-first page of Parse and Extract jobs, optionally filtered by status or operation, with a cursor for the next page.

Parse Document

Parse one uploaded or previously stored document into Markdown or structured elements; optionally extract schema-defined fields and either wait for a result or return a queued job.

Upload File

Upload one supported document to 24-hour scratch storage for reuse by Parse Document or Extract Fields.

FAQ

Frequently asked questions

Start with Unstructured.It takes 30 seconds.

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

Start building