Skip to main content
Glama

unstructured-mcp-server

FastMCP server for Unstructured.io document parsing.

Overview

This MCP server provides tools for parsing documents (PDF, DOCX, TXT, logs, etc.) using Unstructured.io API. It connects Claude to document parsing capabilities via the Model Context Protocol.

Related MCP server: mcp-upstage

Prerequisites

  • Python >= 3.10

  • Unstructured API container running on localhost:9104

Start the Unstructured API

docker run -d --name unstructured-api -p 9104:8000 \
  quay.io/unstructured-io/unstructured-api:latest

Or using docker-compose (recommended):

cd brainery-containers
docker-compose up -d unstructured-api

Installation

npx -y @smithery/cli install @tapiocapioca/unstructured-mcp-server --client claude

This will:

  • Install the package

  • Configure Claude Desktop automatically

  • Set up the MCP server

Via pip (Manual)

pip install unstructured-mcp-server

Or with uv:

uv pip install unstructured-mcp-server

Then add to your MCP settings:

{
  "mcpServers": {
    "unstructured": {
      "command": "unstructured-mcp",
      "env": {
        "UNSTRUCTURED_API_URL": "http://localhost:9104"
      }
    }
  }
}

Usage

As MCP Server

unstructured-mcp

Configuration

Set environment variables (optional):

export UNSTRUCTURED_API_URL=http://localhost:9104

Tools

Tool

Description

parse_document

Parse a single document (PDF, DOCX, TXT, logs) and extract text

parse_batch

Parse multiple documents in batch

parse_document

parse_document(file_path: str, strategy: str = "auto")

Parameters:

  • file_path: Absolute path to file on host machine

  • strategy: Parsing strategy - auto, fast, hi_res, or ocr_only (default: auto)

Returns:

  • text: Extracted text content

  • elements_count: Number of document elements

  • file_type: Detected file type

  • processing_time_ms: Processing time in milliseconds

parse_batch

parse_batch(file_paths: list[str])

Parameters:

  • file_paths: Array of absolute paths to files

Returns:

  • List of results, one per file (success or error)

Supported File Types

Documents (via Unstructured API):

  • PDF, DOCX, PPTX, XLSX, ODT, RTF, EPUB

Text Files (direct read):

  • .txt, .log, .md, .csv, .json, .yaml, .yml

  • .py, .js, .ts, .java, .c, .cpp, .sh, .bash

  • .conf, .cfg, .ini, .properties, .env, .sql

  • .xml, .html, .css, .gitignore, .htaccess

License

MIT

Available Tools

2 tools
parse_batchParse BatchC

Parse multiple documents in batch.

Inputs: file_paths (required). Returns: result

parse_documentParse DocumentB

Parse a local document and extract text.

Supports PDF, DOCX, PPTX, XLSX, and text-based files (.txt, .log, .py, etc).

Inputs: file_path (required), strategy. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools target clearly distinct scopes: single-document parsing versus multi-document batch parsing. There is no realistic risk of an agent confusing parse_document with parse_batch.

    Naming Consistency4/5

    Both names follow a consistent verb_prefix pattern (parse_*), which is predictable and readable. parse_batch slightly omits the noun (documents) making it marginally less self-describing than parse_document.

    Tool Count3/5

    Two tools is thin for a document-processing server, though the single/batch pairing is a sensible minimal split. It borders on under-scoped given the variety of formats claimed (PDF, DOCX, PPTX, XLSX, text).

    Completeness3/5

    Core extraction is covered, but there are notable gaps: no way to discover supported formats or inspect file metadata, and no option for structured/element-level output or chunking. Agents can work around these, but the lifecycle ends at 'text out' with no follow-up operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop to search and query personal document collections (PDF, Word, Markdown, text) using semantic search and conversational AI with full context preservation across exchanges.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude and other MCP-compatible agents to process documents, extract structured data, detect PII, and export LLM-ready datasets through natural language tool calls.
      8
      25 PyPI
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables LLM hosts like Claude Code or Codex CLI to inspect folder structures and read unstructured documents (PDF, PPTX, DOCX, SVG, and images) by returning raw text and images for the host to summarize or analyze.
      2
      -