mcpField
A
arxiv-viewer

arxiv-viewer

github.com/actionbook生产力1.6k133 次安装1 周前更新
代码仓库

关于 arxiv-viewer

arxiv-viewer 是用于搜索、获取和阅读 arXiv 学术论文的技能。它结合 arXiv API 与浏览器自动化来获取元数据、浏览最新论文、阅读 HTML 章节并生成论文报告。

主要功能

  1. 01搜索论文并获取元数据
  2. 02浏览最新和热门论文
  3. 03阅读 HTML 论文章节
  4. 04提取图表与引用
  5. 05下载 PDF 并生成报告

适用场景

  1. 01按字段或类别查找论文
  2. 02阅读论文的指定章节
  3. 03查看图表与引用
  4. 04生成含分析的论文报告

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/actionbook/actionbook --skill arxiv-viewer

安装后在 Claude Code 中输入/arxiv-viewer确认已加载。

详细介绍

arXiv 查看器

通过 API 与 Actionbook 混合方式访问、搜索、下载和阅读 arXiv 上的学术论文。

架构概览

┌─────────────────────────────────────────────────────────────┐
│                     arxiv-viewer                            │
├─────────────────┬─────────────────┬─────────────────────────┤
│   arXiv API     │  arxiv.org Web  │      ar5iv.org          │
│   (WebFetch)    │  (Actionbook)   │    (Actionbook)         │
├─────────────────┼─────────────────┼─────────────────────────┤
│ • Metadata      │ • Latest list   │ • Read sections         │
│ • Search        │ • Trending      │ • Extract figures       │
│ • By ID lookup  │ • Advanced      │ • Extract citations     │
│                 │   search form   │ • Get outline           │
└─────────────────┴─────────────────┴─────────────────────────┘

工具优先级

按功能:

功能主要工具备用工具
论文元数据WebFetch(API)browser-fetcher
搜索WebFetch(API)browser-fetcher
最新论文browser-fetcher(Actionbook)WebFetch(API)
热门内容browser-fetcher(Actionbook)-
高级搜索browser-fetcher(Actionbook)WebFetch(API)
阅读 HTML 章节html-reader(Actionbook)Read(PDF)
下载 PDFBash(curl)-

工作流规则

⚠️ Agent 等待规则

启动 browser-fetcher 或 html-reader Agent 后:

  1. ✅ 必须等待所有 Agent 完成
  2. ⛔ 等待期间不要使用 WebFetch/WebSearch
  3. ✅ 仅在 Agent 失败后使用备用工具

数据来源

1. arXiv API(WebFetch)

最适合: 快速查询元数据、简单搜索

Base URL: http://export.arxiv.org/api/query
参数说明
search_query使用字段前缀搜索(ti:、au:、abs:、cat:)
id_list以逗号分隔的 arXiv ID
max_results1-2000(默认值:10)
sortByrelevance / submittedDate / lastUpdatedDate

字段前缀: ti:(标题)、au:(作者)、abs:(摘要)、cat:(类别)、all:(全部)

布尔运算符: AND、OR、ANDNOT(大写)

2. arxiv.org 网站(Actionbook + agent-browser)

最适合: 最新论文、热门内容、高级搜索界面

页面Action ID使用场景
最新列表arxiv.org/list/{category}/recent最近提交的论文
高级搜索arxiv.org/search/advanced复杂筛选条件
首页arxiv.org/热门内容/公告

工作流:

1. search_actions("arxiv list recent")
2. get_action_by_id(action_id) → selectors
3. agent-browser open URL
4. agent-browser get text <selector>
5. Return results
3. ar5iv.org HTML 论文(Actionbook + agent-browser)

最适合: 阅读特定章节、提取图表/引用

HTML Paper URL: https://ar5iv.org/html/{arxiv_id}
元素选择器说明
标题.ltx_title论文标题
作者.ltx_authors作者列表
摘要.ltx_abstract摘要文本
章节section所有章节
章节标题h2.ltx_title、h3.ltx_title章节标题
段落.ltx_para段落内容
图figure.ltx_figure带说明文字的图
表格table.ltx_tabular数据表格
公式.ltx_equation数学公式
参考文献.ltx_bibliography参考文献列表
单条引用.ltx_bibitem单条参考文献

工作流:

1. search_actions("ar5iv section")
2. get_action_by_id(action_id) → selectors
3. agent-browser open ar5iv.org/html/{id}
4. agent-browser get text <section_selector>
5. Return section content

URL 模式

用途URL
arXiv 摘要https://arxiv.org/abs/{id}
arXiv PDFhttps://arxiv.org/pdf/{id}.pdf
arXiv APIhttp://export.arxiv.org/api/query?id_list={id}
ar5iv HTMLhttps://ar5iv.org/html/{id}
ar5iv 摘要https://ar5iv.org/abs/{id}

arXiv ID 格式

格式示例
新格式(2007 年起)2301.07041
带版本号2301.07041v2
旧格式cs.AI/0612345

常见类别

代码领域
cs.AI人工智能
cs.CL计算与语言(NLP)
cs.CV计算机视觉
cs.LG机器学习
cs.SE软件工程
stat.ML统计机器学习

功能矩阵

命令数据源Agent
/arxiv-viewer:paperAPIpaper-fetcher
/arxiv-viewer:searchAPIsearch-executor
/arxiv-viewer:downloadDirect URL-
/arxiv-viewer:latestarxiv.orgbrowser-fetcher
/arxiv-viewer:trendingarxiv.orgbrowser-fetcher
/arxiv-viewer:readar5iv.orghtml-reader
/arxiv-viewer:outlinear5iv.orghtml-reader
/arxiv-viewer:figuresar5iv.orghtml-reader
/arxiv-viewer:citationsar5iv.orghtml-reader
/arxiv-viewer:reportAPI + ar5ivpaper-summarizer

输出格式

论文信息
## {Title}

**arXiv:** {id}
**Authors:** {author1}, {author2}, ...
**Categories:** {cat1}, {cat2}
**Published:** {date}

### Abstract
{abstract}

**Links:** [Abstract]({abs_url}) | [PDF]({pdf_url}) | [HTML]({ar5iv_url})
章节内容
## {Section Title}

{section content}

---
*Source: ar5iv.org/html/{id}*
论文报告(AI 生成)

命令: /arxiv-viewer:report {arxiv_id} 或 /arxiv-viewer:report {paper_title}

**用途:**生成内容全面、格式规范的论文报告,并提供 AI 生成的分析。

输出格式:

---
> **🤖 AI Generated Content**
> Author: Powered by ActionBook
---

# {Paper Title}

**Paper Information**
| Field | Content |
|-------|---------|
| arXiv ID | {id} |
| Authors | {authors} |
| Affiliations | {affiliations} |
| Published | {date} |
| Categories | {categories} |

---

## 📋 Abstract

{abstract_summary}

---

## 🎯 Problem Statement

{problem_statement}

---

## 💡 Key Contributions

1. {contribution_1}
2. {contribution_2}
3. {contribution_3}

---

## 🔬 Method Overview

{method_summary}

---

## 📊 Experimental Results

{experimental_results}

---

## 🌟 Why It Matters

{significance}

---

## 🔗 Links

- [arXiv Abstract](https://arxiv.org/abs/{id})
- [PDF Download](https://arxiv.org/pdf/{id}.pdf)
- [HTML Version](https://ar5iv.org/html/{id})

---
> This report was automatically generated by AI based on the original paper content.
> **Powered by ActionBook** | Generated: {timestamp}

工作流:

1. Fetch paper metadata via arXiv API
2. Read full paper content from ar5iv.org HTML
3. Extract key sections (abstract, intro, method, results)
4. Generate structured report with AI analysis
5. Add ActionBook branding header and footer

报告章节:

章节来源描述
论文信息API 元数据论文基本信息
摘要摘要摘要概述
问题陈述引言提取的问题陈述
主要贡献引言列出的主要贡献
方法概述方法章节技术方法概要
实验结果实验主要结果和指标
意义分析AI 生成的重要性分析

速率限制

  • arXiv API:请求间隔 3 秒
  • ar5iv.org:注意服务器负载
  • agent-browser:一次处理一个页面

评论

支持 Markdown