arXiv Discovery MCP
MCP server for discovering, triaging, and monitoring arXiv papers with transparent interest modeling and inspectable ranking.
README
arXiv Discovery MCP
MCP server for arXiv paper discovery, triage, and monitoring with inspectable ranking.
What This Is
arXiv Discovery MCP is a research discovery substrate inspired by arxiv-sanity. It helps researchers and AI agents discover, triage, and monitor arXiv papers through the Model Context Protocol (MCP) -- exposing tools, resources, and prompts that integrate directly into Claude Desktop, Claude Code, or any MCP-compatible client.
Unlike "chat with papers" wrappers, this system provides explicit interest modeling, inspectable ranking explanations, and structured workflow state. You build an interest profile from seed papers, followed authors, and saved queries. The system uses that profile to rank search results, surface new papers, and explain why each result scored the way it did.
The project tracks content provenance and respects reuse constraints per content type. All ranking signals are transparent: you can see exactly which interest signals contributed to each paper's score.
Features
MCP Tools (13)
Discovery
search_papers-- Full-text search with optional profile-ranked resultsbrowse_recent-- Browse recent papers by arXiv categoryfind_related_papers-- Find papers related to one or more seed papersget_paper-- Retrieve full metadata for a single paper
Workflow
triage_paper-- Mark papers as shortlisted, seen, or dismissedadd_to_collection-- Add papers to named collections (auto-creates)create_watch-- Create a saved query that monitors for new papers
Interest & Enrichment
add_signal-- Add an interest signal (seed paper, followed author, etc.)batch_add_signals-- Add multiple interest signals at oncecreate_profile-- Create a named interest profilesuggest_signals-- Get profile expansion suggestions based on usage patternsenrich_paper-- Fetch citation counts, FWCI, and topics from OpenAlex
Content
get_content_variant-- Retrieve paper content (abstract, HTML, or PDF-to-markdown) with rights gating
MCP Resources (4)
paper://{arxiv_id}-- Paper metadata, triage state, enrichment, and content variantscollection://{slug}-- Collection contents with paginationprofile://{slug}-- Interest profile with all signalswatch://{slug}/deltas-- New papers since last check
MCP Prompts (3)
daily-digest-- Workflow guidance for reviewing new papers across watchesliterature-map-from-seeds-- Workflow for building a literature map from seed paperstriage-shortlist-- Workflow for reviewing and triaging a collection
CLI
All MCP capabilities are mirrored in a full CLI (arxiv-mcp) for terminal workflows, scripting, and debugging.
Test Coverage
493 tests passing across ingestion, search, workflow, interest modeling, enrichment, content normalization, and MCP integration.
Prerequisites
- Python 3.13+ (uses 3.13 language features)
- PostgreSQL 16+ (must be running and accessible)
- Git (for cloning the repository)
Installation
git clone https://github.com/loganrooks/arxiv-sanity-mcp.git
cd arxiv-sanity-mcp
# Create and activate a virtual environment (recommended)
python3.13 -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
pip install -e .
For development (tests, linting):
pip install -e ".[dev]"
# Or manually:
pip install pytest pytest-asyncio pytest-cov pytest-timeout respx ruff
Note: The MCP server configuration below requires the absolute path to your venv's Python interpreter. You can find it with
which pythonafter activating the venv.
Database Setup
- Create the database user and databases:
sudo -u postgres psql -c "CREATE USER arxiv_mcp WITH PASSWORD 'arxiv_mcp_dev';"
sudo -u postgres psql -c "CREATE DATABASE arxiv_mcp OWNER arxiv_mcp;"
sudo -u postgres psql -c "CREATE DATABASE arxiv_mcp_test OWNER arxiv_mcp;"
- Create a
.envfile in the project root (or set environment variables):
DATABASE_URL=postgresql+asyncpg://arxiv_mcp:arxiv_mcp_dev@localhost:5432/arxiv_mcp
- Run database migrations:
alembic upgrade head
Quick Start
Once installed and the database is set up, try these commands:
# Harvest a paper by arXiv ID
arxiv-mcp harvest fetch 2301.00001
# Search for papers
arxiv-mcp search query "attention mechanism"
# Browse recent papers in a category
arxiv-mcp search browse --category cs.AI
# Create a collection
arxiv-mcp collection create "reading-list"
# Triage a paper
arxiv-mcp triage mark 2301.00001 shortlisted
MCP Server Configuration
Claude Code
Use claude mcp add-json with your venv's absolute Python path:
claude mcp add-json arxiv-discovery --scope local '{
"command": "/absolute/path/to/arxiv-sanity-mcp/.venv/bin/python",
"args": ["-m", "arxiv_mcp.mcp"],
"cwd": "/absolute/path/to/arxiv-sanity-mcp",
"env": {
"DATABASE_URL": "postgresql+asyncpg://arxiv_mcp:arxiv_mcp_dev@localhost:5432/arxiv_mcp"
}
}'
Replace /absolute/path/to/arxiv-sanity-mcp with the actual path to your cloned repository.
Important: Use the absolute path to the venv Python binary (e.g.,
/home/user/projects/arxiv-sanity-mcp/.venv/bin/python), not justpython. This ensures the MCP server uses the correct environment regardless of which directory you launch Claude Code from.
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"arxiv-discovery": {
"command": "/absolute/path/to/arxiv-sanity-mcp/.venv/bin/python",
"args": ["-m", "arxiv_mcp.mcp"],
"cwd": "/absolute/path/to/arxiv-sanity-mcp",
"env": {
"DATABASE_URL": "postgresql+asyncpg://arxiv_mcp:arxiv_mcp_dev@localhost:5432/arxiv_mcp"
}
}
}
}
Replace /absolute/path/to/arxiv-sanity-mcp with the actual path to your cloned repository.
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL |
Yes | postgresql+asyncpg://arxiv_mcp:arxiv_mcp_dev@localhost:5432/arxiv_mcp |
PostgreSQL connection string |
OPENALEX_EMAIL |
No | (empty) | Email for OpenAlex polite pool (recommended; increases rate limit from 1 to 10 req/s) |
OPENALEX_API_KEY |
No | (empty) | OpenAlex API key for enrichment |
DEPLOYMENT_MODE |
No | local |
local or hosted -- controls content license enforcement |
Design Documents
Architectural documentation is in the docs/ directory:
| Document | Description |
|---|---|
| 01 - Project Vision | Goals and product values |
| 02 - Product Principles | Design principles and constraints |
| 03 - Design Space | Retrieval and ranking options explored |
| 04 - Reference Designs | Systems studied for design inspiration |
| 05 - Architecture Hypotheses | Architectural bets and rationale |
| 06 - MCP Surface Options | MCP interface design decisions |
| 07 - Data Sources & Content Rights | arXiv data access and licensing |
| 08 - Evaluation & Experiments | Testing methodology |
| 09 - Roadmap | Development phases |
| 10 - Open Questions | Unresolved design questions |
| 11 - Sources | External references |
Architecture Decision Records
- ADR-0001 -- Exploration-first architecture
- ADR-0002 -- Metadata-first, lazy enrichment
- ADR-0003 -- License and provenance first
- ADR-0004 -- MCP as workflow substrate
See docs/adrs/ for full details.
License
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。