arXiv MCP服务器
   ](https://smithery.ai/server/@prashalruchiranga/arxiv-mcp-server)
模型上下文协议(MCP)服务器,能够使用自然语言与arXiv API进行交互。
特性
- 检索arXiv.org上托管的学术文章的元数据
- 将PDF格式的文章下载到本地计算机
- 在arXiv数据库中搜索特定查询
- 检索文章并将其加载到大型语言模型(LLM)上下文中
工具
- 获取_文章_url
- 根据标题检索arXiv.org上托管的文章的URL - title (字符串):文章标题
- 下载_文章
- 下载arXiv.org上托管的PDF文件 - title (字符串):文章标题
- load_article_to_context
- 将arXiv.org上托管的文章加载到LLM的上下文中 - title (字符串):文章标题
- 获取详细信息
- 根据文章标题检索arXiv.org上托管文章的元数据 - title (字符串):文章标题
- search_arxiv
- 根据指定的参数在arXiv API上执行搜索查询,并返回匹配的文章元数据 - all_fields (字符串):在所有元数据字段中进行常规关键字搜索 - title (字符串):在文章标题中搜索的关键字 - author (字符串):用于筛选结果的作者姓名 - abstract (字符串):在文章摘要中搜索的关键字 - start (int):返回的第一个结果的索引
设置
MacOS
克隆存储库
git clone https://github.com/prashalruchiranga/arxiv-mcp-server.git
cd arxiv-mcp-server安装 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视窗
安装 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"
}
}
}
}您可能需要在命令字段中输入uv可执行文件的完整路径。你可以通过跑步来获得这个 which uv 在MacOS或 where uv 在Windows上。
示例提示
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 networksDownload the attention is all you need paperCan 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许可证
在麻省理工学院获得许可。请参阅 许可证.
