Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"clichefactory": {
"env": {
"LLM_API_KEY": "your-gemini-api-key",
"LLM_MODEL_NAME": "gemini/gemini-3-flash-preview"
},
"args": [
"--directory",
"/absolute/path/to/cliche-mcp",
"run",
"clichefactory-mcp"
],
"command": "uv"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP (Model Context Protocol) server for ClicheFactory — structured data extraction from documents.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'clichefactory-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked clichefactory-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in writing
A markdown editor — and the bridge to your LLM. Local-first, MIT, ~15 MB. Bundled MCP server lets Claude Code / Codex / Cursor drive your vault directly. 14 AI providers BYOK.
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
Define task-specific AI sub-agents in Markdown for any MCP-compatible tool.
一键同步文章到多个内容平台,支持今日头条、WordPress、知乎、简书、掘金、CSDN、typecho各大平台,一次发布,多平台同步发布。解放个人生产力
MCP Security Weekly
Get CVE alerts and security updates for io.github.ClicheFactory/clichefactory-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
| 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 | local: LLM key · service: API key |
fast | Fastest pipeline | Same as default |
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 supports two modes, matching the SDK and CLI:
local — Runs extraction on your machine. You bring your own LLM key (BYOK). Supports Gemini, OpenAI, Anthropic, and Ollama models. Requires the clichefactory[local] dependencies for document parsing.
service — Uses the ClicheFactory cloud service. Requires a ClicheFactory API key. Supports all extraction modes including trained pipelines and robust verification. Optionally accepts BYOK model overrides.
pip install clichefactory-mcp
For local-mode extraction (document parsing on your machine), install with the local extras:
pip install "clichefactory-mcp[local]"
Set these in your MCP client configuration (see below) or in ~/.clichefactory/config.toml via clichefactory configure.
| Variable | Required | Description |
|---|---|---|
CLICHEFACTORY_API_KEY | Service mode | ClicheFactory API key (format: 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 | Model name, e.g. gemini/gemini-3-flash-preview |
LLM_API_KEY | Local mode | 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) |
The config file at ~/.clichefactory/config.toml (created by clichefactory configure) is also respected. Environment variables take precedence over the config file.
Add to .cursor/mcp.json in your project (or global Cursor settings):
{
"mcpServers": {
"clichefactory": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/cliche-mcp", "run", "clichefactory-mcp"],
... [View full README on GitHub](https://github.com/clichefactory/clichefactory-mcp#readme)