arXiv MCP Server
Enables AI assistants to search and retrieve academic papers from arXiv through MCP tools, supporting search by various criteria, detailed paper information, category browsing, and PDF content extraction.
Tools
search_papers
Search for papers on arXiv by various criteria
get_paper
Get details about a specific paper by its arXiv ID
search_by_category
Search for papers in a specific arXiv category
get_paper_content
Get the full text content of a paper by downloading and extracting text from its PDF
README
arXiv MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with the arXiv API to search and retrieve academic papers.
Overview
This server implements the Model Context Protocol to provide tools for searching and retrieving papers from the arXiv preprint repository. It allows AI assistants to search for papers by various criteria, get details about specific papers, search by category, and extract full text content from PDFs.
Features
- Search Papers: Search for papers using various criteria (title, author, abstract, category, etc.)
- Get Paper Details: Get detailed information about a specific paper by its arXiv ID
- Category Search: Search for papers in a specific arXiv category
- PDF Content Extraction: Download and extract full text content from paper PDFs
- Structured Results: Returns properly parsed JSON data instead of raw XML
- Caching: Intelligent PDF caching to avoid redundant downloads
Installation
Prerequisites
- Node.js 18+
- npm or pnpm
Setup
-
Clone this repository:
git clone https://github.com/your-username/arxiv-mcp-server.git cd arxiv-mcp-server -
Install dependencies:
npm install -
Build the project:
npm run build
Usage
As an MCP Server
Start the server:
npm start
The server will run on stdio, allowing it to communicate with MCP clients.
MCP Client Configuration
Add this configuration to your MCP client settings. For Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"arxiv": {
"name": "arxiv-mcp-server",
"command": "node",
"args": ["build/index.js"],
"cwd": "C:/path/to/arxiv-mcp-server",
"enabled": true,
"alwaysAllow": [
"search_papers",
"get_paper",
"search_by_category",
"get_paper_content"
],
"env": {}
}
}
}
For other MCP clients, use a similar configuration structure. Make sure to:
- Update the
cwdpath to point to your arxiv-mcp-server directory - Ensure the
build/index.jsfile exists (runnpm run buildfirst) - The
alwaysAllowarray lists tools that won't require user confirmation
Available Tools
search_papers
Search for papers on arXiv by various criteria with flexible query options.
Parameters:
query(string, optional): General search query across all fieldscategory(string, optional): arXiv category (e.g.,cs.AI,physics.optics)author(string, optional): Author name to search fortitle(string, optional): Words to search for in the titleabstract(string, optional): Words to search for in the abstractstart(number, optional): Starting index for pagination (0-based, default: 0)max_results(number, optional): Maximum number of results to return (max 2000, default: 10)sort_by(string, optional): Sort byrelevance,lastUpdatedDate, orsubmittedDatesort_order(string, optional): Sort orderascendingordescending
Example Response:
{
"feed_title": "arXiv Query: search_query=all:machine+learning",
"total_results": 150000,
"start_index": 0,
"items_per_page": 10,
"papers": [
{
"id": "http://arxiv.org/abs/2104.13478",
"arxiv_id": "2104.13478",
"title": "Advanced Machine Learning Techniques",
"summary": "This paper discusses advanced machine learning techniques...",
"authors": ["John Smith", "Jane Doe"],
"published": "2021-04-28T09:00:00Z",
"updated": "2021-04-28T09:00:00Z",
"categories": ["cs.LG", "cs.AI"],
"links": [
{
"href": "http://arxiv.org/abs/2104.13478",
"rel": "alternate",
"type": "text/html"
}
]
}
]
}
get_paper
Get detailed information about a specific paper by its arXiv ID.
Parameters:
paper_id(string, required): arXiv paper ID (e.g.,2104.13478orcs/0001001)
Returns: Same structured format as search_papers but for a single paper.
search_by_category
Search for papers in a specific arXiv category with pagination and sorting options.
Parameters:
category(string, required): arXiv category (e.g.,cs.AI,physics.optics)start(number, optional): Starting index for pagination (0-based)max_results(number, optional): Maximum number of results to return (max 2000)sort_by(string, optional): Sort byrelevance,lastUpdatedDate, orsubmittedDatesort_order(string, optional): Sort orderascendingordescending
get_paper_content
Download and extract the full text content from a paper's PDF.
Parameters:
paper_id(string, required): arXiv paper ID (e.g.,2104.13478)
Features:
- Downloads PDFs from arXiv's servers
- Caches PDFs locally to avoid redundant downloads
- Extracts and cleans text content using pdf-parse
- Handles network errors and parsing issues gracefully
- Returns plain text content suitable for analysis
Returns: Plain text content of the paper.
Common arXiv Categories
cs.AI- Artificial Intelligencecs.LG- Machine Learningcs.CL- Computation and Languagecs.CV- Computer Vision and Pattern Recognitionphysics.optics- Opticsmath.CO- Combinatoricsstat.ML- Machine Learning (Statistics)
For a complete list, see arXiv Subject Classifications.
Development
Running Tests
npm test
Build
npm run build
Watch Mode (for development)
npm run test:watch
API Reference
This server uses the official arXiv API. For more information:
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
v0.1.0 (Initial Release)
- Basic arXiv API integration
- Search papers by multiple criteria
- Get individual paper details
- Category-based search
- PDF content extraction with caching
- Structured JSON response parsing
- MCP protocol implementation
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。