Skip to main content
Glama
huanongfish

ArXiv MCP Server

by huanongfish

Twitter 关注 铁匠徽章 Python 版本 许可证:MIT PyPI 下载 PyPI 版本

ArXiv MCP 服务器

🔍 让 AI 助手能够通过简单的 MCP 界面搜索和访问 arXiv 论文。

ArXiv MCP 服务器通过消息控制协议 (MCP) 在 AI 助手和 arXiv 研究库之间架起了一座桥梁。它允许 AI 模型以编程方式搜索论文并访问其内容。

🤝**贡献• 📝报告错误**

✨ 核心功能

  • 🔎论文搜索:使用日期范围和类别过滤器查询 arXiv 论文

  • 📄论文访问:下载并阅读论文内容

  • 📋论文列表:查看所有下载的论文

  • 🗃️本地存储:论文保存在本地以便更快地访问

  • 📝提示:一组研究提示

Related MCP server: ArXiv-MCP

🚀 快速入门

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 ArXiv Server:

npx -y @smithery/cli install arxiv-mcp-server --client claude

手动安装

使用 uv 安装:

uv tool install arxiv-mcp-server

对于开发:

# Clone and set up development environment
git clone https://github.com/blazickjp/arxiv-mcp-server.git
cd arxiv-mcp-server

# Create and activate virtual environment
uv venv
source .venv/bin/activate

# Install with test dependencies
uv pip install -e ".[test]"

🔌 MCP 集成

将此配置添加到您的 MCP 客户端配置文件中:

{
    "mcpServers": {
        "arxiv-mcp-server": {
            "command": "uv",
            "args": [
                "tool",
                "run",
                "arxiv-mcp-server",
                "--storage-path", "/path/to/paper/storage"
            ]
        }
    }
}

对于开发:

{
    "mcpServers": {
        "arxiv-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "path/to/cloned/arxiv-mcp-server",
                "run",
                "arxiv-mcp-server",
                "--storage-path", "/path/to/paper/storage"
            ]
        }
    }
}

💡 可用工具

该服务器提供四个主要工具:

1. 论文搜索

使用可选过滤器搜索论文:

result = await call_tool("search_papers", {
    "query": "transformer architecture",
    "max_results": 10,
    "date_from": "2023-01-01",
    "categories": ["cs.AI", "cs.LG"]
})

2. 论文下载

通过 arXiv ID 下载论文:

result = await call_tool("download_paper", {
    "paper_id": "2401.12345"
})

3. 列出论文

查看所有下载的论文:

result = await call_tool("list_papers", {})

4. 阅读论文

访问已下载论文的内容:

result = await call_tool("read_paper", {
    "paper_id": "2401.12345"
})

⚙️ 配置

通过环境变量配置:

多变的

目的

默认

ARXIV_STORAGE_PATH

纸张存放位置

〜/ .arxiv-mcp-server /论文

🧪 测试

运行测试套件:

python -m pytest

📄 许可证

根据 MIT 许可证发布。详情请参阅许可证文件。


由 Pear Labs 团队倾情打造

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huanongfish/arxiv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server