Unstructured MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Unstructured MCP Server
An MCP server that gives AI agents the ability to read and process complex documents using Unstructured.io. Extract structured content from PDFs, PowerPoints, HTML, images, and more — including tables that other parsers break on.
Features
partition_document— Extract structured elements from any document format (PDF, PPTX, DOCX, HTML, images, etc.)chunk_document— Partition and chunk documents for RAG pipelines with semantic boundary detectionextract_tables— Focused table extraction with markdown, JSON, or CSV outputDual mode — Works locally (no API key needed) or with the Unstructured hosted API for production workloads
Smart strategy selection — Auto-detects when high-resolution processing is needed (scanned docs, images) vs. fast mode
Related MCP server: document-intelligence-mcp
Why This Exists
Document processing is table stakes for AI agents — but most tools treat it as an afterthought. PDFs get dumped as raw text, tables lose their structure, and scanned documents are ignored entirely.
This server bridges that gap by exposing Unstructured's document intelligence as MCP tools that any AI agent can call natively. No custom integration code, no preprocessing scripts — just wire it up and ask your agent to read a document.
Architecture
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────────────┐
│ AI Agent │────▶│ MCP Server │────▶│ Unstructured SDK │
│ (Claude, etc) │◀────│ (FastMCP) │◀────│ or Hosted API │
│ │ │ │ │ │
│ "Read this PDF"│ │ partition_document │ │ OCR, layout │
│ │ │ chunk_document │ │ analysis, table │
│ │ │ extract_tables │ │ detection │
└─────────────────┘ └──────────────────────┘ └─────────────────────┘The server is a thin, focused layer — it doesn't try to be smart about documents. It delegates that entirely to Unstructured's SDK, which has years of investment in layout analysis, OCR, and table detection. The MCP layer handles input resolution (local files or URLs), output formatting, and strategy selection.
Quick Start
Install
pip install unstructured-mcp-serverOr from source:
git clone https://github.com/rezzedai/unstructured-mcp-server
cd unstructured-mcp-server
pip install -e .For offline environments, pre-download the required spaCy model:
python -m spacy download en_core_web_smConfigure
Add to your Claude Code MCP config (~/.claude.json or project .mcp.json):
{
"mcpServers": {
"unstructured": {
"command": "python3",
"args": ["-m", "unstructured_mcp.server"]
}
}
}For the hosted API (better OCR, complex layouts):
{
"mcpServers": {
"unstructured": {
"command": "python3",
"args": ["-m", "unstructured_mcp.server"],
"env": {
"UNSTRUCTURED_API_KEY": "your-api-key",
"UNSTRUCTURED_API_URL": "https://api.unstructuredapp.io/general/v0/general"
}
}
}
}Use
Once configured, Claude can process documents in any conversation:
"Read this PDF and give me a summary" "Extract all tables from this financial report" "Chunk this document for my RAG pipeline"
Tools
partition_document
Extract structured elements from any document.
Parameter | Type | Default | Description |
| string | — | Local path to document |
| string | — | Remote URL to fetch |
| string |
|
|
| string |
|
|
Returns elements with type (Title, NarrativeText, Table, ListItem, etc.), text, and metadata (page number, coordinates).
chunk_document
Partition and chunk for RAG. Splits on semantic boundaries (section titles).
Parameter | Type | Default | Description |
| string | — | Local path to document |
| string | — | Remote URL to fetch |
| string |
| Partition strategy |
| string |
|
|
| int |
| Max chunk size |
| int |
| Character overlap between chunks |
extract_tables
Focused table extraction — handles complex layouts, merged cells, nested tables.
Parameter | Type | Default | Description |
| string | — | Local path to document |
| string | — | Remote URL to fetch |
| string |
|
|
How It Works
The server wraps the Unstructured SDK with two processing modes:
Local mode (default) — Uses the unstructured Python package directly. No API key needed.
Good for development, privacy-sensitive documents, and offline use.
API mode — When UNSTRUCTURED_API_KEY is set, routes processing through Unstructured's
hosted service. Better OCR, more robust handling of complex layouts, and support for the full
range of document types.
The server auto-detects: if the API key is set, it uses the API. Otherwise, it processes locally.
Strategy Selection
auto(default) — Inspects the file and picks the best strategy. Images and large PDFs gethi_res; everything else getsfast.hi_res— Best quality. Uses OCR for scanned docs, handles complex tables and layouts. Slower.fast— Speed-optimized. Great for digital-native PDFs and text-heavy documents.
Supported Formats
PDF, DOCX, PPTX, XLSX, HTML, XML, TXT, CSV, TSV, RTF, EML, MSG, PNG, JPG, TIFF, BMP, EPUB, ODT, RST, MD
Development
git clone https://github.com/rezzedai/unstructured-mcp-server
cd unstructured-mcp-server
pip install -e ".[dev]"
# Run tests
pytest -v
# Lint
ruff check src/ tests/Running the server
# Start in stdio mode (default for MCP)
python -m unstructured_mcp.server
# Or use the installed entry point
unstructured-mcp-serverDocker
docker build -t unstructured-mcp .
docker run -p 8080:8080 unstructured-mcpLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Document conversion and OCR for AI agents: PDF, Office docs, images to text.
Hosted document tools for agents: extract, parse, classify, convert, OCR, sign, and redact.
Turn documents into structured, AI-ready data by parsing, enriching, chunking, and embedding.
Convert PDF, Word, Excel and scanned documents to Markdown, tables and RAG chunks. OCR.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables extraction of text, tables, and structured data from PDFs, images, and office documents using LandingAI's Agentic Document Extraction API. Supports both direct parsing and background job processing for large files with privacy-focused processing.-
- AlicenseNot gradedqualityDmaintenanceLocal document intelligence for AI agents — extract text, detect tables, read metadata, analyze structure, search keywords, and detect language from PDF and DOCX files. No cloud API required, no API key needed.MIT
- AlicenseNot gradedqualityDmaintenanceEnables intelligent document processing by extracting text, classifying document types, and generating structured summaries from PDFs and images using vision LLMs.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to inspect and convert PDF, PowerPoint, Excel, and many other file formats into clean, structured Markdown, with chunking support for long documents.Apache 2.0