Extract JSON from documents, emails with attachments, and custom DSPy-trained pipelines.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by ClicheFactory Document Intelligence.
extractExtract structured JSON from a document using a schema
to_markdownConvert a document to markdown text
doctorCheck configuration, dependencies, and system binaries
MCP (Model Context Protocol) server for ClicheFactory β structured data extraction from documents.
This server exposes ClicheFactory's extraction and document conversion capabilities as MCP tools, allowing AI assistants in Cursor, Claude Desktop, OpenClaw, and other MCP-compatible clients to extract structured data from PDFs, images, DOCX, XLSX, CSV, EML, and more.
Service mode uses the ClicheFactory cloud for the best extraction quality. You only need one API key.
Sign up at clichefactory.com β free pages included, no credit card required.
Create an API key in Settings β API Keys (format: cliche-...).
Install the MCP server:
Configure β either paste the key into your MCP client (see below) or run once in a terminal:
The interactive wizard saves credentials to ~/.clichefactory/config.toml, which the MCP server reads automatically.
That's it β one env var (CLICHEFACTORY_API_KEY) or a config file, and you're on hosted extraction.
| Tool | Description |
|---|---|
extract | Extract structured JSON from a document using a schema |
to_markdown | Convert a document to markdown text |
doctor | Check configuration, dependencies, and system binaries |
extractThe main tool. Pass a document file and a JSON schema β get structured data back.
Supports all extraction modes:
| Mode | Description | Requires |
|---|---|---|
| (default) | OCR + LLM extraction | Service API key (recommended) |
fast | Fastest pipeline | Service API key |
trained | Trained pipeline artifact | Service + artifact_id |
robust | Two-stage extract + verify | Service only |
robust-trained | Trained extract + verification | Service + artifact_id |
The schema can be provided as:
.json schema file{"type": "object", "properties": {"invoice_number": {"type": "string"}, "total": {"type": "number"}}})to_markdownConverts any supported document to markdown. Useful for inspecting document contents or feeding them to the LLM for analysis before deciding on an extraction schema.
doctorRuns diagnostics on the ClicheFactory setup β config file, API keys, Python dependencies, system binaries. Call this when things aren't working.
The server defaults to service mode (ClicheFactory cloud). Local mode is available for BYOK / air-gapped use.
service (recommended) β Uses the ClicheFactory cloud service. Requires a ClicheFactory API key. Supports all extraction modes including trained pipelines and robust verification. Best extraction quality out of the box.
local (advanced) β Runs extraction on your machine. You bring your own LLM key (BYOK). Requires pip install "clichefactory-mcp[local]" (~2 GB of parsing/OCR dependencies) plus system binaries (tesseract, LibreOffice). Quality depends on your local setup.
For local-mode extraction (BYOK, runs on your machine), install with the local extras:
Set these in your MCP client configuration (see below) or in ~/.clichefactory/config.toml via clichefactory configure.
| Variable | Required | Description |
|---|---|---|
CLICHEFACTORY_API_KEY | Yes (service mode) | ClicheFactory API key from Settings β API Keys (cliche-...) |
CLICHEFACTORY_API_URL | No | Override the default service URL (https://api.clichefactory.com); useful for local development against a self-hosted ClicheFactory backend |
LLM_MODEL_NAME | Local mode only | Model name, e.g. gemini/gemini-3-flash-preview |
LLM_API_KEY | Local mode only | API key for the LLM provider |
OCR_MODEL_NAME | No | Separate OCR/VLM model (defaults to main model) |
OCR_API_KEY | No | API key for OCR model (defaults to main key) |
Environment variables take precedence over the config file at ~/.clichefactory/config.toml.
Add to .cursor/mcp.json in your project (or global Cursor settings):
For local development from a git checkout, replace uvx with:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Register the MCP server with your OpenClaw agent:
Verify with openclaw mcp list. The agent can now use extract, to_markdown, and doctor tools in any conversation.
An OpenClaw skill with agent instructions is also available in integrations/openclaw/. To install it into your workspace:
Or, once published to ClawHub:
If you prefer BYOK extraction on your machine, install the local extras and set LLM credentials:
Pass mode="local" explicitly in tool calls, or run clichefactory configure --local to set local as the default in ~/.clichefactory/config.toml.
PDF, PNG, JPG, JPEG, WebP, GIF, BMP, DOCX, DOC, ODT, XLSX, CSV, EML, TXT, MD.
This MCP server covers the core extraction and conversion workflows. The following CLI features are not included in v1:
| Feature | Reason |
|---|---|
Batch operations (extract-batch, to-markdown-batch) | MCP tools are typically called one-at-a-time by the LLM. For multiple documents, the LLM calls extract in sequence. Batch support may be added in a future version. |
configure | Interactive prompts don't work in MCP. Use env vars or run clichefactory configure in a terminal. |
--output / -o flag | MCP tools return results directly to the LLM rather than writing to files. |
allow_partial | Not exposed as a tool parameter in v1. |
| OCR engine selection | Uses the SDK defaults (RapidOCR). Configure via ~/.clichefactory/config.toml or pass parsing options through the SDK if needed. |
MIT β Copyright (c) 2026 Urban Susnik s.p.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/clichefactory-document-intelligence)<a href="https://allmcps.com/mcp/clichefactory-document-intelligence"><img src="https://allmcps.com/api/badge/clichefactory-document-intelligence?style=directory" alt="ClicheFactory Document Intelligence on AllMCPs" /></a>