Local PDF to JSON Extractor (Ollama + Docling)

    by Rahul Bhargava

    1

    Turn PDFs into Markdown with Docling, then extract schema-validated JSON with a local Ollama model and Pydantic. Nothing leaves your machine.

    Free

    Security scanned

    Works with the AI Agents you already use

    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.

    validated against the LineItem schema, saved to line_items.json

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Allowed Hosts

    localhost:11434

    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.

    Listed9 days ago

    What's inside

    Frequently Asked Questions

    Turn PDFs into Markdown with Docling, then extract schema-validated JSON with a local Ollama model and Pydantic. Nothing leaves your machine.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Local PDF to JSON Extractor (Ollama + Docling) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    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.

    Free