Quick overview
This workflow collects an uploaded document via an n8n form and uses Unstructured’s hosted Transform MCP server to convert it into structured, LLM-ready text output, then returns the extracted content and basic stats (elements, characters) while handling size limits and transform job polling.
How it works
- Receives a document upload through an n8n form trigger.
- Checks whether the uploaded file is within the 50 MB limit and shows a “File too large” completion page if it exceeds the cap.
- Requests a pre-signed upload URL from Unstructured Transform MCP and uploads the file bytes to that URL via HTTP PUT.
- Starts a transform job in Unstructured Transform MCP, then polls the job status every 5 seconds until it completes or fails.
- When the job completes, fetches the transform results metadata from Unstructured and verifies a download URL is available.
- Downloads the extracted output from the signed download URL and returns a formatted response containing the status, source filename, output stats, and extracted content (or a “No content could be extracted” message).
Setup
- Create an Unstructured Transform account and generate an API key, then add it to n8n as an HTTP Bearer Auth credential.
- Attach the Bearer Auth credential to the Unstructured MCP Client nodes (request upload URL, start transform, check status, and get results).
- Ensure the n8n form trigger is enabled and keep the 50 MB upload limit in mind when submitting documents.