Skip to main content
Glama
yzfly

ArXiv Paper MCP

by yzfly

ArXiv Paper MCP

一个基于 arXiv 的论文检索与内容解析工具。支持 Model Context Protocol (MCP) 标准,提供论文搜索、PDF链接获取和内容解析功能。

功能特性

  • 🔍 arXiv 论文智能搜索:关键词检索,快速定位你关心的论文

  • 🔗 获取 PDF 下载链接:获取 arXiv 论文的直接 PDF 下载链接

  • 📄 论文内容解析:智能解析论文内容,优先使用 HTML 版本,回退到 PDF

  • 🆕 AI领域最新论文:获取 arXiv AI 领域今日最新更新论文列表

Related MCP server: arXiv MCP Server

安装使用

NPX 方式(推荐)

npx @langgpt/arxiv-paper-mcp

全局安装

npm install -g @langgpt/arxiv-paper-mcp
arxiv-paper-mcp

MCP 客户端配置

Claude Desktop 配置

在 Claude Desktop 的配置文件中添加:

{
  "mcpServers": {
    "arxiv-paper-mcp": {
      "command": "npx",
      "args": ["-y", "@langgpt/arxiv-paper-mcp@latest"]
    }
  }
}

配置文件位置:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

其他 MCP 客户端

对于其他支持 MCP 的客户端,请参考其文档配置 stdio 传输方式。

可用工具与参数

1. 搜索论文

  • 工具名: search_arxiv

  • 参数:

    • query:搜索关键词

    • maxResults:返回论文数(可选,默认 5)

2. 获取PDF下载链接

  • 工具名: get_arxiv_pdf_url

  • 参数:

    • input:arXiv 论文 URL 或 arXiv ID(如:2403.15137v1)

3. 解析论文内容

  • 工具名: parse_paper_content

  • 参数:

    • input:arXiv 论文 URL 或 arXiv ID

    • paperInfo:论文元信息(可选,用于添加论文元数据)

4. 获取AI领域最新论文

  • 工具名: get_recent_ai_papers

  • 参数: 无

使用流程示例

  1. 搜索论文 使用 search_arxiv 工具搜索相关论文

  2. 获取最新AI论文get_recent_ai_papers 工具获取今日最新AI领域论文

  3. 获取PDF链接get_arxiv_pdf_url 工具获取PDF下载链接

  4. 解析论文内容parse_paper_content 工具获取论文的文本内容(优先 HTML,回退 PDF)

开发指南

本地开发

# 克隆项目
git clone https://github.com/yzfly/arxiv-paper-mcp.git
cd arxiv-paper-mcp

# 安装依赖
npm install

# 开发模式运行
npm run dev

# 构建
npm run build

# 运行构建版本
npm start

项目结构

arxiv-paper-mcp/
├── src/
│   └── index.ts          # 主服务器文件
├── build/                # 编译输出目录
├── package.json          # 项目配置
├── tsconfig.json         # TypeScript 配置
├── README.md             # 项目说明
└── LICENSE               # 许可证

技术栈

  • Node.js >= 18.0.0

  • TypeScript - 类型安全的JavaScript

  • Model Context Protocol - 标准化的AI上下文协议

  • arXiv API - 学术论文数据源

故障排除

常见问题

  1. 论文搜索失败

    错误:搜索失败
    解决:检查网络连接,确保搜索关键词正确
  2. PDF解析失败

    错误:PDF 解析失败
    解决:检查 arXiv ID 是否正确,确保论文存在

日志调试

启用详细日志:

DEBUG=arxiv-paper-mcp npx @langgpt/arxiv-paper-mcp

贡献指南

欢迎贡献代码!请遵循以下步骤:

  1. Fork 本项目

  2. 创建特性分支:git checkout -b feature/amazing-feature

  3. 提交更改:git commit -m 'Add amazing feature'

  4. 推送分支:git push origin feature/amazing-feature

  5. 创建 Pull Request

许可证

本项目采用 MIT 许可证。详情请见 LICENSE 文件。

作者信息

相关链接

支持

如果您觉得这个项目有用,请给它一个 ⭐!

如有问题或建议,请通过以下方式联系:

Available Tools

4 tools
get_arxiv_pdf_urlC

获取 arXiv PDF 下载链接

ParametersJSON Schema
NameRequiredDescriptionDefault
inputYesarXiv 论文URL(如:http://arxiv.org/abs/2403.15137v1)或 arXiv ID(如:2403.15137v1)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does (gets a PDF URL) but lacks critical behavioral details: whether it's a read-only operation, error handling (e.g., for invalid IDs), rate limits, authentication needs, or what the output looks like (e.g., a direct URL string). For a tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in Chinese that directly states the purpose without fluff. It's appropriately sized for a simple tool, though it could be slightly more structured (e.g., by including a brief example). There's no wasted verbiage, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 parameter, no output schema, no annotations), the description is incomplete. It lacks output details (what the PDF URL looks like), error conditions, and behavioral context. While the purpose is clear, the description doesn't provide enough information for an agent to use the tool confidently without trial and error, especially with no annotations to fill gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the parameter 'input' fully documented in the schema as accepting arXiv URLs or IDs. The description adds no additional parameter semantics beyond what's in the schema, such as format examples or edge cases. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '获取 arXiv PDF 下载链接' clearly states the action (获取/get) and resource (arXiv PDF 下载链接/arXiv PDF download URL), making the purpose immediately understandable. It distinguishes from siblings like 'get_recent_ai_papers' (list papers) and 'parse_paper_content' (extract content), but doesn't explicitly differentiate from 'search_arxiv' which might also return PDF URLs. The purpose is specific but could be slightly more precise about being a URL resolver rather than a downloader.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'search_arxiv' or 'parse_paper_content'. It doesn't mention prerequisites (e.g., needing an arXiv ID), exclusions, or typical use cases. The agent must infer usage from the purpose alone, which is insufficient for optimal tool selection in a multi-tool environment.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_recent_ai_papersB

获取 arXiv AI 领域最新论文(cs.AI/recent)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but provides no information about rate limits, authentication requirements, pagination behavior, response format, or error conditions. For a tool that presumably makes external API calls, this lack of behavioral context is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise - a single Chinese sentence that efficiently communicates the core functionality. Every word earns its place: it specifies the action ('获取'), the resource ('arXiv AI 领域最新论文'), and the specific category ('cs.AI/recent'). There's zero waste or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this tool likely makes API calls to arXiv and has no annotations or output schema, the description is insufficiently complete. It doesn't explain what format the results will be in, how many papers are returned, whether there's pagination, or any error handling. For a tool that fetches data from an external service, more context about the response behavior is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't discuss parameters since none exist. The baseline for 0 parameters is 4, as there's no need for parameter explanation when none are required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '获取 arXiv AI 领域最新论文' (Get latest arXiv AI papers). It specifies the verb ('获取' - get) and resource ('arXiv AI 领域最新论文' - latest arXiv AI papers), and mentions the specific category 'cs.AI/recent'. However, it doesn't explicitly differentiate from sibling tools like 'search_arxiv' or 'get_arxiv_pdf_url', which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'search_arxiv' (which might allow broader searches) or 'get_arxiv_pdf_url' (which fetches specific PDFs). There's no indication of when this tool is appropriate versus when other tools should be used instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

parse_paper_contentC

解析论文内容(优先使用 HTML 版本,回退到 PDF)

ParametersJSON Schema
NameRequiredDescriptionDefault
inputYesarXiv 论文URL或 arXiv ID
paperInfoNo论文信息(可选,用于添加论文元数据)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but reveals little about behavioral traits. It mentions format preferences (HTML over PDF) but doesn't disclose what the tool actually returns (structured content? raw text?), error handling for invalid inputs, rate limits, authentication needs, or whether it performs destructive operations. The description is insufficient for a tool that presumably extracts and returns paper content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise - a single sentence in Chinese that efficiently communicates the core functionality. It's front-loaded with the main purpose ('解析论文内容') followed by implementation detail. However, it could be more structured by separating purpose from behavioral notes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (parsing academic papers with format fallbacks), no annotations, no output schema, and 2 parameters (one being a nested object), the description is inadequate. It doesn't explain what parsed content looks like, how HTML/PDF parsing differs, what metadata from paperInfo gets used, or error conditions. For a content extraction tool, this leaves too many unknowns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds no parameter-specific information beyond what the schema provides - it doesn't explain how 'input' relates to the format preference mentioned, nor clarifies the optional 'paperInfo' object's purpose in the parsing context. Baseline 3 is appropriate when schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '解析论文内容' (parse paper content) with specific implementation details about preferring HTML version and falling back to PDF. It distinguishes from siblings like get_arxiv_pdf_url (gets URL only) and search_arxiv (searches metadata), but doesn't explicitly differentiate from get_recent_ai_papers which might also involve content parsing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to choose parse_paper_content over get_arxiv_pdf_url (for just the PDF URL) or search_arxiv (for metadata search), nor does it specify prerequisites like needing arXiv URLs/IDs specifically.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_arxivC

搜索 arXiv 论文

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes搜索英文关键词
maxResultsNo最大结果数量

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states the basic action without disclosing behavioral traits. It doesn't mention rate limits, authentication needs, response format, pagination, or whether it's read-only (implied but not explicit). This is a significant gap for a search tool with no structured safety hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in Chinese ('搜索 arXiv 论文'), which is appropriately concise and front-loaded. However, it could be more structured by including key details upfront, but it earns high marks for zero waste in its brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete for a search tool. It doesn't explain return values (e.g., paper metadata, abstracts), error handling, or how results are sorted/filtered. With 2 parameters and 100% schema coverage, it minimally covers inputs but lacks context on behavior and outputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema fully documents parameters ('query' for English keywords, 'maxResults' with default 5). The description adds no additional meaning beyond what the schema provides, such as query syntax examples or result ordering. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '搜索 arXiv 论文' (Search arXiv papers) states the basic action and resource, but it's vague about scope and doesn't distinguish from sibling tools like 'get_recent_ai_papers' or 'parse_paper_content'. It lacks specificity about what kind of search it performs (e.g., full-text, metadata, date ranges).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'get_recent_ai_papers' for recent papers or 'parse_paper_content' for analyzing content. The description implies a general search function but doesn't specify contexts or exclusions, leaving the agent to guess based on tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updates
    • First observedget_arxiv_pdf_url
    • First observedget_recent_ai_papers
    • First observedparse_paper_content
    • First observedsearch_arxiv

TDQS

B3.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: get_arxiv_pdf_url retrieves PDF URLs, get_recent_ai_papers fetches recent AI papers, parse_paper_content extracts content from papers, and search_arxiv searches for papers. There is no overlap or ambiguity between these functions.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (e.g., get_arxiv_pdf_url, parse_paper_content) using snake_case throughout. The naming is predictable and readable across all tools.

Tool Count4/5

With 4 tools, the server is well-scoped for accessing and processing arXiv papers, covering key operations like searching, retrieving, and parsing. It might benefit from additional tools for broader paper management, but the count is reasonable for its purpose.

Completeness4/5

The tool set covers essential arXiv paper workflows: searching, fetching recent papers, getting PDFs, and parsing content. Minor gaps exist, such as lack of tools for filtering or sorting results, but agents can work around these with the provided tools.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to search and access arXiv papers through a Model Context Protocol interface, allowing for paper search, download, listing, and reading functionality.
    4
    2
    Apache 2.0
  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables AI assistants to search, retrieve, analyze, and export academic papers from arXiv.org using the Model Context Protocol.
    19
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to search, download, and access arXiv papers with local storage and date filtering via the Model Context Protocol.
    3
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching and retrieving arXiv papers via the Model Context Protocol, providing tools for querying, structured search, and literature review prompts.
    MIT