arXiv MCP 服务器
模型上下文协议 (MCP) 服务器,可使用自然语言与 arXiv API 进行交互。
特征
- 检索 arXiv.org 上托管的学术文章的元数据
- 将文章以 PDF 格式下载到本地机器
- 在 arXiv 数据库中搜索特定查询
- 检索文章并将其加载到大型语言模型 (LLM) 上下文中
工具
- 获取文章网址
- 根据标题检索 arXiv.org 上的文章 URL
- 下载文章
- 下载 arXiv.org 上的文章的 PDF 文件
- 加载文章到上下文
- 将 arXiv.org 上的文章加载到 LLM 环境中
- 获取详细信息
- 根据标题检索 arXiv.org 上托管的文章的元数据
- 搜索_arxiv
- 根据指定参数在 arXiv API 上执行搜索查询并返回匹配的文章元数据
all_fields
(字符串):跨所有元数据字段的常规关键字搜索title
(字符串):在文章标题中搜索的关键字author
(字符串):用于过滤结果的作者姓名abstract
(字符串):在文章摘要中搜索的关键字start
(int):返回的第一个结果的索引
设置
手动安装
克隆存储库
git clone https://github.com/prashalruchiranga/arxiv-mcp-server.git
cd arxiv-mcp-server
安装uv
包管理器。有关在其他操作系统上安装的更多详细信息,请访问uv 官方文档。
# Using Homebrew for macOS
brew install uv
# or
curl -LsSf https://astral.sh/uv/install.sh | sh
创建并激活虚拟环境。
uv venv --python=python3.13
source .venv/bin/activate # or `venv\Scripts\activate` on Windows
安装开发依赖项。
与 Claude Desktop 一起使用
要启用此集成,请将服务器配置添加到claude_desktop_config.json
文件中。如果该文件不存在,请务必创建。
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/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"
}
}
}
}
您可能需要在命令字段中输入 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 。