pdffigures2

pdffigures2 is a skill for Claude Code, Codex from vlln/pdffigures-mcp-server. It costs 65 tokens per session (1,120 once invoked), scanned A, original, Apache-2.0.

A tool for extracting figures, charts, tables, and captions from scholarly PDF files, especially academic papers.

In plain words
What is it for?
It helps extract visual elements with metadata and render them as PNG images. It requires a running PDFFigures 2.0 extraction server.
Why use it?
It helps recover visual information that may be difficult to use from a PDF's text alone and can correct or structure table text with OCR.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is skills/pdffigures2/scripts/pdffigures2 paper.pdf -o ./extracted/.

Good fit It helps extract visual elements with metadata and render them as PNG images. It requires a running PDFFigures 2.0 extraction server.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/vlln/pdffigures-mcp-server
agentmods
npx agentmods add skills/vlln/pdffigures-mcp-server/pdffigures2

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdffigures2

README.md
[![agentmods](https://agentmods.dev/badge/skills/vlln/pdffigures-mcp-server/pdffigures2.svg)](https://agentmods.dev/skills/vlln/pdffigures-mcp-server/pdffigures2)
Your own site
<a href="https://agentmods.dev/skills/vlln/pdffigures-mcp-server/pdffigures2"><img src="https://agentmods.dev/badge/skills/vlln/pdffigures-mcp-server/pdffigures2.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01120
Opus 5 $0.00032 $0.00560
Sonnet 5 $0.00013 $0.00224
Haiku 4.5 $0.00006 $0.00112

Measured 8d ago against content hash c3fde9e8c4e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pdffigures2 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl
skills/pdffigures2/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pdffigures2

Installation

Install the skill into your agent that supports Agent Skills with skit:

skit install github:vlln/pdffigures-mcp-server/skills/pdffigures2

Or manually copy the skills/pdffigures2 directory into your agent's skills directory, then configure:

cp .env.example .env
# edit PDFFIGURES2_API_URL if the server is remote

When To Use

Use this skill when the user asks to:

  • Extract figures, charts, illustrations, or tables from a PDF
  • "Get the figures out of this paper"
  • "What tables are in this PDF?" or "Extract all charts from this document"
  • Understand a PDF's visual content beyond just its text

The skill calls a pdffigures2 extraction server via HTTP. It identifies figure and table regions, extracts captions, runs OCR on table text, and renders each element as a PNG.

Do not use this skill for: extracting only the text layer (use pdf2text), extracting embedded image assets without caption matching (use pymupdf), or processing non-scholarly PDFs like brochures (results may be poor).

Workflow

1. Ensure the server is running

This skill is an API client — it requires a pdffigures2 server.

Point to an existing remote server by setting PDFFIGURES2_API_URL in .env (copy from .env.example).

2. Run extraction

skills/pdffigures2/scripts/pdffigures2 <pdf_path> -o <output_dir>

Options:

  • -o, --output-dir DIR — Where to download figures (default: ./pdffigures2_output)
  • --quiet — Suppress progress messages

Example:

skills/pdffigures2/scripts/pdffigures2 paper.pdf -o ./extracted/

3. Interpret the output

The script prints a JSON summary to stdout containing:

{
  "total": 5,
  "figures": [
    {
      "figType": "Figure",
      "name": "3",
      "page": 4,
      "caption": "Fig. 3. Overview of the proposed architecture.",
      "captionBoundary": { "x1": 100, "y1": 200, "x2": 400, "y2": 215 },
      "regionBoundary": { "x1": 60, "y1": 80, "x2": 440, "y2": 350 },
      "renderDpi": 300,
      "imageText": [],
      "filePath": "/absolute/path/to/extracted/paper-Figure3-1.png"
    },
    {
      "figType": "Table",
      "name": "I",
      "page": 2,
      "caption": "TABLE I Dataset statistics.",
      "imageText": ["Column A", "Column B", "value 1", "value 2"],
      "filePath": "/absolute/path/to/extracted/paper-TableI-1.png"
    }
  ],
  "figuresDir": "/absolute/path/to/extracted/",
  "elapsedSeconds": 3
}

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 124 lines · 65 tokens per session scan A c3fde9e8c4e4

Subscribe to this mod's changes

pdffigures2 is a skill published in the GitHub repository vlln/pdffigures-mcp-server (8 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,120 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 56 tokens

pptx-posters

Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

paper-spine

Build, rewrite, audit, submit, revise, or transfer scholarly papers end to end, producing verified LaTeX/PDF/Word and target-specific publication packages.

WUBING2023/PaperSpine · 37 tokens

paper-compile

A build workflow that turns LaTeX source files into a PDF and checks whether the paper compiles correctly. LaTeX is a text-based system commonly used for academic papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 53 tokens

nsfc-budget

A tool that creates an editable LaTeX budget justification and renders it as a PDF for an NSFC research-funding application. NSFC is China’s National Natural Science Foundation, and a budget justification explains why proposed costs are needed.

huangwb8/ChineseResearchLaTeX · 138 tokens