
PaperBanana
io.github.llmsresearch由 GitHub 帳號 llmsresearch 發布v0.1.1更新於 Oct 24, 2026
Generate academic diagrams and statistical plots from text using multi-agent AI.
概覽
本機 MCP 伺服器,以多代理 AI 流程從文字產生學術方法示意圖與統計圖表。
- 可以做什麼
- 依方法文字或 PDF 產生方法示意圖,可選擇輸入優化與評審迭代改進
- 依 CSV 或 JSON 資料檔產生統計圖表,由 VLM 撰寫 matplotlib 程式碼
- 依 YAML 或 JSON 清單批次產生,並輸出拼合圖與批次報告
- 依使用者回饋接續或改進既有執行,並套用 NeurIPS、ICML、ACL、IEEE 等會議風格包
- 從整篇論文規劃並產生整套圖表包,可選擇資料驅動圖表
- 適用情境
- 適合撰寫論文或研究報告時,希望依文字與資料檔自動產出出版等級的方法架構圖與資料圖表,而不必手動繪製。
- 執行需求
- 以 Python 套件形式在本機透過 stdio 執行,需要 Python 3.10 以上。需要模型供應商的 API 金鑰,例如 OPENAI_API_KEY、GOOGLE_API_KEY 或 ATLASCLOUD_API_KEY,透過環境變數或 .env 檔設定;Azure 或自訂端點以 base URL 變數設定。呼叫模型需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PaperBanana,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[llmsresearch%2Fpaperbanana | Trendshift] [llmsresearch%2Fpaperbanana | Trendshift]
Disclaimer: This is an unofficial, community-driven open-source implementation of the paper "PaperBanana: Automating Academic Illustration for AI Scientists" by Dawei Zhu, Rui Meng, Yale Song, Xiyu Wei, Sujian Li, Tomas Pfister, and Jinsung Yoon (arXiv:2601.23265). This project is not affiliated with or endorsed by the original authors or Google Research. The implementation is based on the publicly available paper and may differ from the original system.
An agentic framework for generating publication-quality academic diagrams and statistical plots from text descriptions. Supports OpenAI (GPT-5.2 + GPT-Image-1.5), Azure OpenAI / Foundry, Google Gemini, and Atlas Cloud providers.
- Two-phase multi-agent pipeline with iterative refinement
- Multiple VLM and image generation providers (OpenAI, Azure, Gemini, Atlas Cloud)
- Input optimization layer for better generation quality
- Auto-refine mode and run continuation with user feedback
- CLI, Python API, and MCP server for IDE integration
- Batch generation from a manifest file (YAML/JSON) for multiple diagrams in one run
- Batch plots —
paperbanana plot-batchruns many statistical plots from one manifest (CSV/JSON per item) - PDF inputs for methodology context (optional
paperbanana[pdf]/ PyMuPDF), with per-page selection - PaperBanana Studio — local Gradio web UI (
paperbanana studio) for diagrams, plots, evaluation, batch, and run browser - Claude Code skills for
/generate-diagram,/generate-plot, and/evaluate-diagram
[PaperBanana takes paper as input and provide diagram as output]
Learning LLM concepts? We also publish 211 free visual cards on attention, RAG, agents, and inference. Read them online.
Atlas Cloud
Atlas Cloud is a full-modal AI inference platform that gives developers a single AI API to access video generation, image generation, and LLM APIs. Instead of managing multiple vendor integrations, you connect once and get unified access to 300+ curated models across all modalities.
Check out Atlas Cloud's new coding plan promotion for more budget-friendly API access: https://www.atlascloud.ai/console/coding-plan
Quick Start
Try it in your browser: the Colab quickstart notebook walks through install → API key → diagram generation end-to-end, no local setup required.
Prerequisites
- Python 3.10+
- An OpenAI API key (platform.openai.com) or Azure OpenAI / Foundry endpoint
- Or a Google Gemini API key (free, Google AI Studio)
Step 1: Install
Or install from source for development:
Docker
Build the image from a clone of the repo and pass your API key at runtime:
To generate a diagram, mount your input and an outputs folder into /work:
Step 2: Get Your API Key
Or use the setup wizard for Gemini:
Step 3: Generate a Diagram
With input optimization and auto-refine:
Output is saved to outputs/run_<timestamp>/final_output.png along with all intermediate iterations and metadata.
PaperBanana Studio (local web UI)
Install the optional Gradio dependency, then start the app:
Open the URL shown in the terminal (default http://127.0.0.1:7860/). The Studio exposes the same workflows as the CLI: methodology diagrams, statistical plots, comparative evaluation, continuing a prior run, batch manifests (methodology or plot batch via the Batch tab), and a simple browser for run_* / batch_* output folders. Use --host, --port, --config, and --output-dir as needed.
How It Works
PaperBanana implements a multi-agent pipeline with up to 7 specialized agents:
Phase 0 -- Input Optimization (optional, --optimize):
- Input Optimizer runs two parallel VLM calls:
- Context Enricher structures raw methodology text into diagram-ready format (components, flows, groupings, I/O)
- Caption Sharpener transforms vague captions into precise visual specifications
Phase 1 -- Linear Planning:
- Retriever selects the most relevant reference examples from a curated set of 13 methodology diagrams spanning agent/reasoning, vision/perception, generative/learning, and science/applications domains
- Planner generates a detailed textual description of the target diagram via in-context learning from the retrieved examples
- Stylist refines the description for visual aesthetics using NeurIPS-style guidelines (color palette, layout, typography)
Phase 2 -- Iterative Refinement:
- Visualizer renders the description into an image
- Critic evaluates the generated image against the source context and provides a revised description addressing any issues
- Steps 4-5 repeat for a fixed number of iterations (default 3), or until the critic is satisfied (
--auto)
Providers
PaperBanana supports multiple VLM and image generation providers:
Azure OpenAI / Foundry endpoints are auto-detected — set OPENAI_BASE_URL to your endpoint.
Gemini-compatible gateways are also supported — set GOOGLE_BASE_URL when needed.
Atlas Cloud uses ATLASCLOUD_BASE_URL=https://api.atlascloud.ai/v1 for chat and ATLASCLOUD_IMAGE_BASE_URL=https://api.atlascloud.ai/api/v1 for image generation.
Atlas Cloud official site: https://www.atlascloud.ai/?utm_source=github&utm_medium=link&utm_campaign=paperbanana
Recommended Atlas LLM models for ATLASCLOUD_VLM_MODEL:
deepseek-ai/DeepSeek-V3-0324(default)openai/gpt-4oopenai/gpt-4.1google/gemini-2.5-flashanthropic/claude-sonnet-4.5-20250929
These are stable, generally available models verified against the Atlas Cloud API. The full, always-current model pool (300+ models) is documented on Atlas Cloud's own docs — see https://www.atlascloud.ai/models — and any model id listed there can be passed via ATLASCLOUD_VLM_MODEL.
Recommended Atlas image models for ATLASCLOUD_IMAGE_MODEL:
openai/gpt-image-2/text-to-imageopenai/gpt-image-2/editbaidu/ERNIE-Image-Turbo/text-to-imageblack-forest-labs/flux-devblack-forest-labs/flux-schnellqwen/qwen-image
CLI Reference
paperbanana generate -- Methodology Diagrams
paperbanana plot -- Statistical Plots
Plots are rendered via VLM-generated matplotlib code — no image-generation provider or credentials are required.
paperbanana venues -- Custom Venue Style Packs
--venue selects a venue style pack: a directory with methodology_style_guide.md, plot_style_guide.md, and an optional venue.yaml. Built-in packs (neurips, icml, acl, ieee) ship with PaperBanana; you can add your own under ~/.config/paperbanana/venues/ (override with --venue-dir or PAPERBANANA_VENUE_DIR) without touching the repo:
venue.yaml (all fields optional):
On a name clash, built-in packs win — user packs cannot shadow built-in venues. Unknown venue names fail fast with the list of available packs from both sources.
paperbanana batch -- Batch Generation
Generate multiple methodology diagrams from a single manifest file (YAML or JSON). Each item runs the full pipeline; outputs are written under outputs/batch_<id>/run_<id>/ and a batch_report.json summarizes all runs.
Manifest format (YAML or JSON with an items list):
Paths in the manifest are resolved relative to the manifest file's directory.
Composite figures: Add an optional composite section to automatically stitch all generated panels into a single labeled figure after the batch completes:
The composite image is saved alongside the individual panels in the batch output directory. See examples/composite_batch_manifest.yaml for a complete example.
Generate a human-readable report from an existing batch run (Markdown or HTML):
Diagram batch reports include batch_kind: methodology; plot batches use batch_kind: statistical_plot. Human-readable reports (paperbanana batch-report) show the batch kind when present.
Sweep manifests let you store the full sweep plan as YAML/JSON instead of eight comma-separated CLI flags. Mutually exclusive with the axis flags; see examples/sweep_manifest.yaml.
Sweep reports produced by paperbanana sweep can be rendered the same way:
Rendered sweep reports include a summary, a top-5 ranked table, the full variants table (with per-variant provider/model, iterations, critic-suggestion count, proxy score, and output path), and the quality_proxy_score note. Dry-run reports render a simplified "Planned Variants" section.
paperbanana plot-batch -- Batch Statistical Plots
Generate multiple plots from a manifest (YAML or JSON). Each item specifies a data file (CSV or JSON) and an intent string, mirroring paperbanana plot. Outputs live under outputs/batch_<id>/run_<id>/ with the same batch_report.json and paperbanana batch-report workflow as diagram batches.
Manifest format (items list):
Paths are resolved relative to the manifest file’s directory.
paperbanana orchestrate -- Full-Paper Figure Package
Generate a publication-focused figure bundle from a full paper source, with optional data-driven plots. The command:
- parses the paper (
.txt,.md, or.pdf) - plans multiple methodology figures from section structure
- optionally discovers CSV/JSON files to plan statistical plots
- runs generation for all planned items
- writes a package folder containing
figure_package.json,figures/,figures.tex, andcaptions.md
Use --dry-run to only plan and inspect orchestration_plan.json without API calls.
Use --resume-orchestrate <id-or-path> to continue an interrupted orchestration from checkpoint state.
paperbanana composite -- Compose Multi-Panel Figures
Stitch multiple images into a single labeled figure with (a), (b), (c) sub-panel labels:
This command works on any existing images — no API calls needed. It is also triggered automatically when a batch manifest includes a composite section (see paperbanana batch above).
paperbanana evaluate -- Quality Assessment
Comparative evaluation of a generated diagram against a human reference using VLM-as-a-Judge:
Scores on 4 dimensions (hierarchical aggregation per the paper):
- Primary: Faithfulness, Readability
- Secondary: Conciseness, Aesthetics
paperbanana polish -- Refine an Existing Figure
Bring your own figure: a VLM audits it against the venue style guide and proposes up to 10 concrete, actionable improvements, then an image-edit capable provider applies them to the original figure (guided edit). Suggestions are printed to the console so you can see exactly what changed.
Requires an image provider that supports guided image edits (Google Gemini image models). If the figure already conforms to the style guide, polish exits without making changes.
paperbanana studio -- Local web UI
Requires pip install 'paperbanana[studio]' (Gradio).
paperbanana setup -- First-Time Configuration
Interactive wizard that first asks whether to use the official Gemini API. If you choose official API, it follows the default AI Studio key flow; if not, it asks for a custom Gemini-compatible URL and API key.
paperbanana data -- Reference Dataset
The dataset is served from a project-hosted GitHub release mirror
(bench-data-v1)
and its SHA256 checksum is verified before extraction. Credit to the
PaperBananaBench authors —
the mirror tracks their 2026-03-22 revision. The set is cached under
~/.cache/paperbanana/ (override with PAPERBANANA_CACHE_DIR); generation
commands can also fetch it on first use via --auto-download-data.
Python API
Progress callbacks: generate() and continue_run() accept an optional progress_callback argument. The pipeline invokes it with PipelineProgressEvent objects (stage, message, seconds, iteration, extra) at each step (optimizer, retriever, planner, stylist, visualizer, critic), so you can show progress in UIs or log timing without patching agents.
To continue a previous run:
See examples/generate_diagram.py and examples/generate_plot.py for complete working examples.
MCP Server
PaperBanana includes an MCP server for use with Claude Code, Cursor, or any MCP-compatible client. Add the following config to use it via uvx without a local clone:
Eleven MCP tools are exposed: generate_diagram, generate_plot, continue_run (resume a prior run_* with optional feedback), continue_diagram, continue_plot, evaluate_diagram, evaluate_plot, orchestrate_figures (full-paper figure packages), batch_diagrams, batch_plots, and download_references.
The repo also ships with 3 Claude Code skills:
/generate-diagram <file> [caption]- generate a methodology diagram from a text file/generate-plot <data-file> [intent]- generate a statistical plot from CSV/JSON data/evaluate-diagram <generated> <reference>- evaluate a diagram against a human reference
See mcp_server/README.md for full setup details (Claude Code, Cursor, local development).
Overleaf Integration (GitHub Action)
Keep your paper's methodology figure in sync with the text — automatically. PaperBanana ships a GitHub Action that pairs with Overleaf's built-in GitHub sync: push your .tex changes, the action extracts the methodology section, generates the figure, and commits back the image plus a ready-to-\input LaTeX snippet. Pull in Overleaf and it's in your file tree.
See integrations/github-action/README.md for the full workflow, all inputs, and cost-control options.
Configuration
Default settings are in configs/config.yaml. Override via CLI flags or a custom YAML:
Key settings:
Environment variables (.env):
Project Structure
Development
Citation
This is an unofficial implementation. If you use this work, please cite the original paper:
Original paper: https://arxiv.org/abs/2601.23265
Disclaimer
This project is an independent open-source reimplementation based on the publicly available paper. It is not affiliated with, endorsed by, or connected to the original authors, Google Research, or Peking University in any way. The implementation may differ from the original system described in the paper. Use at your own discretion.
License
MIT
來源:README.md,提交 87e01fd
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分