Arxiv Mcp Server banner
yzfly yzfly

Arxiv Mcp Server

Development community

Description

🔬 ArXiv论文智能解读助手 - Arxiv-MCP-Server, 支持MCP协议的学术论文一键下载、解析、翻译为中文,并生成微信公众号文章格式

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ArXiv MCP Server

一个基于 arXiv 的论文解读与知识整理助手。支持 Model Context Protocol (MCP) 标准,将学术论文一键转为通俗中文解读和微信公众号文章,适合自用或自动化工具集成。

功能亮点

  • 🔍 arXiv 论文智能搜索:关键词检索,快速定位你关心的论文
  • 📥 一键下载 PDF:自动获取并保存原始论文
  • 📝 中英文智能转换:将 PDF 英文内容解析为高质量的中文 Markdown,方便笔记、归档与复用
  • 📱 微信文章生成:自动生成适配微信阅读体验的爆款文章草稿
  • 🗑️ 一键清理文件:支持一键清空所有历史处理文件,避免空间积压
  • 🤖 AI 内容理解与重写:依托 SiliconFlow 大模型服务,内容处理高效、自然

每个文件处理工具都会返回实际保存的文件名,方便你集成到任何自动化流程!

安装使用

NPX 方式(推荐)

npx @langgpt/arxiv-mcp-server

全局安装

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

配置要求

环境变量

在使用前,请设置以下环境变量:

# 必需:SiliconFlow API Key
export SILICONFLOW_API_KEY="your_api_key_here"

# 必需:工作目录
export WORK_DIR="/path/to/your/data/directory"

获取 API Key

请通过以下链接获取 SiliconFlow API Key: [https://cloud.siliconflow.cn/i/TxUlXG3u](https://cloud.siliconflow.cn/i/TxUlXG3u)

MCP 客户端配置

Claude Desktop 配置

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

{
  "mcpServers": {
    "arxiv-mcp-server": {
      "command": "npx",
      "args": ["-y", "@langgpt/arxiv-mcp-server@latest"],
      "env": {
        "SILICONFLOW_API_KEY": "your_api_key_here",
        "WORK_DIR": "/path/to/your/data/directory"
      }
    }
  }
}

配置文件位置:

  • 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

  • **工具名**: `download_arxiv_pdf`

  • **参数**:

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

3. 解析为中文Markdown

  • **工具名**: `parse_pdf_to_markdown`

  • **参数**:

    • arxivId:arXiv 论文 ID
    • paperInfo:论文元信息(可选,含标题/作者/摘要等)

4. 转换为微信文章

  • **工具名**: `convert_to_wechat_article`

  • **参数**:

    • arxivId:arXiv 论文 ID

5. 完整流程处理

  • **工具名**: `process_arxiv_paper`

  • **参数**:

    • arxivId:arXiv 论文 ID
    • `includeWe