mcpField
A
arXiv MCP Server

arXiv MCP Server

本地服务
github.com/prashalruchiranga数据与分析4164 周前更新

关于 arXiv MCP Server

arXiv MCP Server 是一个 MCP 服务,允许通过自然语言查询 arXiv API。它面向需要检索、下载学术论文并将其载入 LLM 上下文的研究人员。

主要功能

  1. 01检索 arXiv 论文的元数据
  2. 02按标题获取文章链接与详细信息
  3. 03按关键词、作者、摘要等条件搜索
  4. 04下载 PDF 文件到本地
  5. 05将论文载入 LLM 上下文

适用场景

  1. 01根据论文标题查找并下载 PDF
  2. 02查询某位作者关于特定主题的论文列表
  3. 03让 LLM 阅读论文内容并进行分析

MCP 相关

该项目是 MCP 服务,向 MCP 客户端提供 get_article_url、download_article、load_article_to_context、get_details 和 search_arxiv 等工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

arXiv MCP Server

MCP Compatible Python License smithery badge

一个 Model Context Protocol(MCP)服务,可使用自然语言与 arXiv API 交互。

功能

  • 获取托管在 arXiv.org 上的学术文章的元数据
  • 将文章以 PDF 格式下载到本地设备
  • 在 arXiv 数据库中搜索指定内容
  • 获取文章并将其加载到大模型的上下文中

工具

  • get_article_url
    • 根据文章标题获取托管在 arXiv.org 上的文章 URL
      • title(String):文章标题
  • download_article
    • 将托管在 arXiv.org 上的文章下载为 PDF 文件
      • title(String):文章标题
  • load_article_to_context
    • 将托管在 arXiv.org 上的文章加载到大模型的上下文中
      • title(String):文章标题
  • get_details
    • 根据文章标题获取托管在 arXiv.org 上的文章元数据
      • title(String):文章标题
  • search_arxiv
    • 根据指定参数在 arXiv API 中执行搜索,并返回匹配文章的元数据
      • all_fields(String):在所有元数据字段中搜索通用关键词
      • title(String):在文章标题中搜索的关键词
      • author(String):用于筛选结果的作者姓名
      • abstract(String):在文章摘要中搜索的关键词
      • start(int):要返回的第一条结果的索引

设置

MacOS

克隆代码仓库

git clone https://github.com/prashalruchiranga/arxiv-mcp-server.git
cd arxiv-mcp-server

安装 uv 包管理器。有关安装的更多详情,请参阅uv 官方文档。

# Using Homebrew
brew install uv

# or
curl -LsSf https://astral.sh/uv/install.sh | sh

创建并激活虚拟环境。

uv venv --python=python3.13
source .venv/bin/activate

安装开发依赖项。

uv sync
Windows

安装 uv 包管理器。有关安装的更多详情,请参阅uv 官方文档。

# Use irm to download the script and execute it with iex
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

关闭并重新打开 Shell,然后克隆代码仓库。

git clone https://github.com/prashalruchiranga/arxiv-mcp-server.git
cd arxiv-mcp-server

创建并激活虚拟环境。

uv venv --python=python3.13
source .venv\Scripts\activate

安装开发依赖项。

uv sync

在 Claude Desktop 中使用

要启用此集成,请将服务配置添加到 claude_desktop_config.json 文件中。如果文件不存在,请先创建。

MacOS 路径:~/Library/Application Support/Claude/claude_desktop_config.json Windows 路径:%APPDATA%/Roaming/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "arxiv-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/arxiv-mcp-server/src/arxiv_server",
        "run",
        "server.py"
      ],
      "env": {
        "DOWNLOAD_PATH": "/ABSOLUTE/PATH/TO/DOWNLOADS/FOLDER"
      }
    }
  }
}

你可能需要在 command 字段中填写 uv 可执行文件的完整路径。在 MacOS 上运行 which uv,或在 Windows 上运行 where uv,即可获取该路径。

示例提示词

Can you get the details of 'Reasoning to Learn from Latent Thoughts' paper?
Get the papers authored or co-authored by Yann Lecun on convolutional neural networks
Download the attention is all you need paper
Can you get the papers by Andrew NG which have 'convolutional neural networks' in title?
Can you display the paper?
List the titles of papers by Yann LeCun. Paginate through the API until there are 30 titles

许可证

根据 MIT 许可证授权。请参阅 LICENSE。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。