Unstructured MCP server for AI agents

Live

API KEY

DOCUMENT PROCESSING

AI

Unstructured gives your agent document processing pipelines: manage source and destination connectors, create and run workflows, and follow jobs, failed files, and processed output.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Unstructured
agent · Acme Q3
Run
Run the contracts workflow now.
S
unstructured_workflow_run
328ms
Document agent
Started a job for the contracts workflow. It reads the new or changed documents from its source connector.
Sources: Unstructured workflow
unstructured
1 job
18:29
Message Claude...

Tools your document processing agent reaches for on Unstructured, scoped per user.

CALL ANY TOOL
30 tools for document processing in Unstructured: manage source and destination connectors, create and run workflows, and follow jobs, file status, and processed output.
unstructured_account_get
Get account
Get the account and workspace the API key belongs to. Returns account_id and workspace_id. Use this to confirm which workspace the connection works in.
Parameters
Name
Type
Required
Description
—
No parameters required
unstructured_destination_connection_check_create
Create destination connection check
unstructured_destination_connection_check_get
Get destination connection check
unstructured_destination_create
Create destination
unstructured_destination_delete
Delete destination
unstructured_destination_get
Get destination
unstructured_destination_update
Update destination
unstructured_destinations_list
List destinations
unstructured_job_cancel
Cancel job
unstructured_job_details_get
Get job details
unstructured_job_failed_files_list
List job failed files
unstructured_job_file_status_get
Get job file status
unstructured_job_get
Get job
unstructured_job_output_download
Download job output
unstructured_jobs_list
List jobs
unstructured_source_connection_check_create
Create source connection check
unstructured_source_connection_check_get
Get source connection check
unstructured_source_create
Create source
unstructured_source_delete
Delete source
unstructured_source_get
Get source
unstructured_source_update
Update source
unstructured_sources_list
List sources
unstructured_template_get
Get template
unstructured_templates_list
List templates
unstructured_workflow_create
Create workflow
unstructured_workflow_delete
Delete workflow
unstructured_workflow_get
Get workflow
unstructured_workflow_run
Run workflow
unstructured_workflow_update
Update workflow
unstructured_workflows_list
List workflows
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Unstructured tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["unstructured"], toolNames: [
    "unstructured_workflows_list",
    "unstructured_workflow_run",
    "unstructured_job_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my workflows, run the contracts workflow, and check the status of the job" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["unstructured"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my workflows, run the contracts workflow, and check the status of the job" }],
  tools,
});

// Execute the tool call with the user's vaulted Unstructured API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["unstructured"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my workflows, run the contracts workflow, and check the status of the job" }],
  tools,
});

// Tool call runs with the user's vaulted Unstructured API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["unstructured"] }, pageSize: 100,
});

const agent = new Agent({
  name: "document_agent",
  model: "gemini-2.5-pro",
  instruction: "Unstructured tools scoped to this user",
  tools,
});

await agent.run("List my workflows, run the contracts workflow, and check the status of the job");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Unstructured tool. Click to copy, paste into your agent, done.
Workflows
Copy the prompt
Copied
List my workflows.
Copy the prompt
Copied
Run the contracts workflow now.
Copy the prompt
Copied
Create a workflow that reads from this source and writes to this destination.
Connectors
Copy the prompt
Copied
List my source connectors.
Copy the prompt
Copied
Check that this destination connector can be reached.
Copy the prompt
Copied
Create a source connector for this bucket.
Jobs
Copy the prompt
Copied
Show the status of the latest job.
Copy the prompt
Copied
List the documents that failed in this job.
Copy the prompt
Copied
Download the processed output of one file from this job.
SEE HOW AUTH WORKS
Each user connects their own Unstructured API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Unstructured
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Unstructured
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Unstructured
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Unstructured
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI and document connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
GTM and RevOps Teams
Deal intelligence agent
Pulls recent Gong calls, scores deal risk with an LLM, cross-references the record in Attio, and DMs each owner their at-risk deals in Slack. Every read is scoped to that rep's own access.
Test other agents
See the same per-user auth pattern across other AI and document connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
SALES
Deal intelligence agent
Score Gong call risk with an LLM, cross-reference the Attio record, and DM each owner their at-risk deals in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Unstructured API key looks fine in a demo. In production every workflow or connector change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Unstructured today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Unstructured as the user or through a shared API key?
As the user. Each user connects their own Unstructured API key once, and Scalekit sends it with every call. Audit logs attribute every workflow and connector change to that user, not a shared service account.
Where is the Unstructured API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Unstructured?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example unstructured_jobs_list and unstructured_workflows_list without unstructured_workflow_run, which starts a job and spends processing credits, and unstructured_workflow_delete, which deletes a workflow. 3 of the 30 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Unstructured access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent follow a job?
unstructured_workflow_run returns the job with its id and status. unstructured_job_get returns the job's status, unstructured_job_file_status_get shows each file, and unstructured_job_failed_files_list lists the documents that failed with their errors.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""unstructured"": {
""url"": ""https://mcp.scalekit.com/unstructured"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.unstructured]
url = ""https://mcp.scalekit.com/unstructured""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""unstructured"": {
""url"": ""https://mcp.scalekit.com/unstructured"",
""type"": ""http""
}
}
}