- Home
- Skills
- Workflow Automation
- Local PDF to JSON Extractor (Ollama + Docling)
Local PDF to JSON Extractor (Ollama + Docling)
Turn PDFs into Markdown with Docling, then extract schema-validated JSON with a local Ollama model and Pydantic. Nothing leaves your machine.
Free
Local PDF to JSON Extractor (Ollama + Docling)
Example session with this skill installed
Parse invoices/ and extract every line item (product_id, price) into JSON.
- Read your context and instructions
- Compiled the local pdf to
Converted 12 PDFs to Markdown, extracted 87 line items validated against the LineItem schema, saved to line_items.json. 1 document returned no matches.
Connects securely to your tools. The creator never sees your data.
About this skill
Turn a folder of PDFs into Markdown with Docling, then pull out schema-validated JSON (invoices, line items, reports) using a local Ollama model and Pydantic. Documents never leave your machine.
Included:
- A PDF-to-Markdown converter with content-hash caching, so unchanged PDFs are never reprocessed
- A Python extractor that validates model output against your Pydantic schema and retries with the exact errors when it fails
- Helpers to wrap untrusted document text and flag prompt-injection attempts
- Guidance on a deterministic-first pass to cut local compute cost
Quality depends on the local model; long documents should be chunked first. The extractor is a Python library, not a CLI. VLM PDF conversion is slow on CPU and downloads model weights on first run.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
Python 3.10+Ollama with a pulled modeldocling and torch (PDF step)requests and pydantic
Permissions
Allowed Hosts
Talks only to a local Ollama server. Docling downloads VLM weights once from the Hugging Face hub when parsing PDFs. Reads PDFs/Markdown you point it at and writes Markdown and JSON output.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.