惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Recorded Future
Recorded Future
博客园 - 【当耐特】
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
C
Check Point Blog
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
Microsoft Azure Blog
Microsoft Azure Blog
Last Week in AI
Last Week in AI
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
罗磊的独立博客
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
The Cloudflare Blog
博客园 - 司徒正美
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
B
Blog
Martin Fowler
Martin Fowler
L
LangChain Blog
V
Visual Studio Blog
U
Unit 42
P
Proofpoint News Feed
Vercel News
Vercel News
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
F
Fortinet All Blogs
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
The Register - Security
The Register - Security
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
T
Tailwind CSS Blog
H
Help Net Security
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Parse Documents Inside Claude and Cursor with MCP — No Code Required
Iteration La · 2026-04-30 · via DEV Community

The Copy-Paste-Parse Loop

You get a PDF from a client. You need three fields out of it — an invoice number, a date, and a total. So you open the PDF, squint at the layout, copy the values, paste them into a spreadsheet, and move on to the next one. Multiply that by fifty documents a week and you've got a full afternoon gone.

Developers automate this with API calls. But what if your AI assistant could just do it for you — right inside the tool you're already using?

That's what MCP makes possible. The Model Context Protocol is an open standard that lets AI assistants like Claude and Cursor discover and call external tools directly. Instead of writing integration code, you describe what you want in plain language. The assistant figures out which tool to call, sends the request, and hands you the result.

Iteration Layer's Document Extraction ships as an MCP server. Connect it once, and every conversation with your AI assistant becomes a document parsing session.

What MCP Actually Is

MCP stands for Model Context Protocol. It's a standard that lets AI clients — Claude Desktop, Cursor, and any MCP-compatible tool — connect to external services as "tools" the model can invoke.

Think of it like USB for AI assistants. You plug in a service, the assistant discovers what it can do, and it starts using it when relevant. No SDK integration, no API wrapper code, no deployment scripts.

When you connect the Document Extraction as an MCP server, your assistant gains the ability to:

  • Accept a document (PDF, DOCX, image, or URL)
  • Define an extraction schema on the fly
  • Return structured JSON with confidence scores

All from a chat prompt.

Setting Up in Claude Code

Claude Code supports MCP servers natively. Add the Iteration Layer server with a single command:

claude mcp add iterationlayer --transport http https://api.iterationlayer.com/mcp

Enter fullscreen mode Exit fullscreen mode

The first time you use an Iteration Layer tool, a browser window opens for OAuth authentication. Log in, authorize access, and you're connected. No API keys to manage.

To verify the server is available, start a conversation and ask Claude Code what MCP tools it has access to. You should see extract_document listed among the available tools.

Setting Up in Cursor

Add to your .cursor/mcp.json:

{
  "mcpServers": {
    "iterationlayer": {
      "type": "http",
      "url": "https://api.iterationlayer.com/mcp"
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Save and restart. The Document Extraction tool is now available in your Cursor AI conversations. Authentication works the same way — OAuth in the browser on first use.

How Tool Discovery Works

When your AI assistant starts a conversation, it queries all connected MCP servers to learn what tools are available. The Document Extraction MCP server advertises an extract_document tool with a description of its capabilities — accepted file types, schema structure, field types, and limits.

The assistant reads this tool description and knows when to use it. If you mention a document, ask for extraction, or upload a file, the assistant recognizes that the Document Extraction is the right tool. You never need to tell it "use the Document Extraction" — it figures that out from context.

This is the key difference from a traditional API integration. You don't write code to call the parser. You don't map fields manually. The assistant handles the translation between your natural language request and the structured API call.

Parsing Documents Conversationally

Once connected, you talk to the parser in natural language. Here's what that looks like.

You upload a PDF invoice and type:

"Extract the invoice number, vendor name, date, line items with descriptions and amounts, and the total from this invoice."

The assistant translates that into a schema, calls the Document Extraction API, and returns structured JSON:

{
  "invoiceNumber": {
    "type": "TEXT",
    "value": "INV-2026-0847",
    "confidence": 0.97,
    "citations": ["INV-2026-0847"],
    "source": "invoice.pdf"
  },
  "vendorName": {
    "type": "TEXT",
    "value": "Acme Supplies Ltd.",
    "confidence": 0.95,
    "citations": ["Acme Supplies Ltd."],
    "source": "invoice.pdf"
  },
  "invoiceDate": {
    "type": "DATE",
    "value": "2026-02-15",
    "confidence": 0.98,
    "citations": ["Feb 15, 2026"],
    "source": "invoice.pdf"
  },
  "lineItems": {
    "type": "ARRAY",
    "value": [
      {
        "description": {
          "value": "Office chairs (x4)",
          "confidence": 0.94,
          "citations": ["Office chairs (x4)"]
        },
        "amount": {
          "value": 1200.00,
          "confidence": 0.96,
          "citations": ["1,200.00"]
        }
      },
      {
        "description": {
          "value": "Standing desks (x2)",
          "confidence": 0.93,
          "citations": ["Standing desks (x2)"]
        },
        "amount": {
          "value": 890.00,
          "confidence": 0.95,
          "citations": ["890.00"]
        }
      }
    ],
    "confidence": 0.94,
    "citations": [],
    "source": "invoice.pdf"
  },
  "total": {
    "type": "CURRENCY_AMOUNT",
    "value": 2090.00,
    "confidence": 0.97,
    "citations": ["Total: $2,090.00"],
    "source": "invoice.pdf"
  }
}

Enter fullscreen mode Exit fullscreen mode

Every field comes with a confidence score between 0.0 and 1.0. You can see at a glance whether the extraction is trustworthy or needs a second look.

More Conversation Examples

The conversational interface handles more than invoices. Here are a few more prompts and what the assistant does with them.

Parsing a contract for key dates and parties:

"I need the effective date, expiration date, and the names and roles of all parties from this contract. Also check if there's a non-compete clause."

The assistant builds a schema with DATE fields for the dates, an ARRAY with nested TEXT and ENUM fields for the parties, and a BOOLEAN field for the non-compete check. You get structured data back without touching a line of code.

Extracting data from a receipt photo:

"This is a photo of a grocery receipt. Get me the store name, date, each item with its price, and the total."

The assistant sends the image to the parser, which runs OCR internally and extracts the fields. No pre-processing, no separate OCR step. The receipt photo goes in, structured JSON comes out.

Processing multiple documents at once:

"Here are 5 vendor invoices. Extract the invoice number, vendor name, total amount, and currency from each one."

The assistant batches all 5 files into a single API call (up to 20 per request) and returns results for every document. Each field in each document gets its own confidence score.

Iterating on Schemas Conversationally

One of the things that makes MCP particularly useful is the feedback loop. After the first extraction, you can refine your request based on the results.

Say the assistant extracts a total but misses the tax breakdown. You reply:

"That's good, but I also need the subtotal and tax amount as separate fields."

The assistant adds CURRENCY_AMOUNT fields for subtotal and tax to the schema and re-runs the extraction. No code to edit, no deployment, no configuration file to update. You iterate on the schema in plain language until the output matches what you need.

This is especially valuable when you're figuring out the right schema for a new document type. Instead of guessing the field definitions upfront, writing code, running it, and adjusting — you have a conversation. Once the schema produces the right output, you can take that exact schema and use it in your production code via the API or SDK.

What You Can Parse

The Document Extraction handles more than just PDFs. Upload any of these formats and the assistant will extract structured data:

  • PDFs — native text or scanned (built-in OCR)
  • Word documents — DOCX format
  • Images — PNG, JPG, GIF, WEBP (for photos of documents, receipts, whiteboards)
  • Text files — MD, TXT, CSV, JSON

The parser supports 17 field types out of the box: text, numbers, dates, booleans, emails, IBANs, currency amounts, addresses, arrays (for tables and line items), and calculated fields that compute values from other extracted fields.

Beyond One-Off Parsing

The conversational interface is great for ad-hoc work — checking a document, extracting a few fields, validating data. But the same API that powers the MCP server works programmatically too.

When you're ready to process documents at scale — batch parsing 20 files at once, building automated pipelines, integrating into your backend — the same Iteration Layer's Document Extraction API is available via direct HTTP calls, TypeScript SDK, and Python SDK.

The MCP setup is the fastest way to try it. The API is how you ship it. The schema you refined conversationally is the same schema you pass to the API endpoint — no translation needed.

Get Started

Sign up for a free account at iterationlayer.com — no credit card required. Run the claude mcp add command above, authenticate in the browser, and start parsing documents from your next Claude Code or Cursor conversation.

The docs cover every field type, every schema option, and every supported format. Start with a simple invoice — it's the fastest way to see how conversational document extraction works.