Skip to main content

MCP server for browsing and searching arXiv papers by category

Project description

arXiv MCP Server

English · 中文


English

An MCP (Model Context Protocol) server that lets LLMs like Claude search and fetch arXiv papers directly.

Features

  • Fetch recent papers from any arXiv category and store them locally
  • List papers by date — titles only, to keep context lean
  • Keyword search across titles and abstracts
  • Retrieve full abstracts on demand for papers of interest
  • Database statistics by publication date

Tools

Tool Parameters Description
fetch_papers category, num_days=3, max_results=100 Fetch recent papers from arXiv API and store in local database
list_papers date="", max_results=100 List paper titles from local database, optionally filtered by date
search_papers query, max_results=100 Keyword search against titles and abstracts, returns titles only
get_paper_details entry_ids: list Get full details including abstracts for specific papers
get_stats Paper counts grouped by publication date

Design principle: fetch_papers, list_papers, and search_papers return only titles and metadata to save context. Call get_paper_details when you need abstracts for specific papers.

Installation

Claude Code (recommended)

Add to your ~/.claude.json under mcpServers:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-today-mcp"],
      "type": "stdio"
    }
  }
}

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-mcp-server"]
    }
  }
}

Usage Example

  1. Browse today's papers: Ask Claude "What's new in cs.AI today?" — Claude will call fetch_papers then list_papers, returning titles grouped by topic.
  2. Get details: "Tell me more about papers 2 and 5" — Claude will call get_paper_details with those entry IDs and summarize the abstracts.

Configuration

The database path can be overridden with an environment variable:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-today-mcp"],
      "env": {
        "ARXIV_MCP_DB_PATH": "/your/custom/path/papers.db"
      }
    }
  }
}

Requirements

  • Python >= 3.10
  • uv or uvx

中文

一个 MCP(模型上下文协议)服务器,让 Claude 等 LLM 能够直接搜索和获取 arXiv 论文。

功能特性

  • 从任意 arXiv 分类抓取最新论文并存储到本地数据库
  • 按日期浏览论文——只返回标题,节省上下文
  • 对标题和摘要进行关键词搜索
  • 按需获取感兴趣论文的完整摘要
  • 按发布日期统计数据库中的论文数量

工具列表

工具 参数 功能
fetch_papers category, num_days=3, max_results=100 从 arXiv API 抓取最新论文,存入本地数据库
list_papers date="", max_results=100 列出本地数据库中的论文标题,可按日期筛选
search_papers query, max_results=100 在标题和摘要中关键词搜索,只返回标题
get_paper_details entry_ids: list 获取指定论文的完整信息(含摘要)
get_stats 按发布日期统计论文数量

设计原则fetch_paperslist_paperssearch_papers 只返回标题和元数据以节省上下文。需要摘要时再调用 get_paper_details

安装配置

Claude Code(推荐)

~/.claude.jsonmcpServers 中添加:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-today-mcp"],
      "type": "stdio"
    }
  }
}

Claude Desktop

claude_desktop_config.json 中添加:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-mcp-server"]
    }
  }
}

使用示例

  1. 浏览今日论文:问 Claude "今天 cs.AI 有什么新论文?"——Claude 会调用 fetch_paperslist_papers,按主题分类返回标题。
  2. 获取详情:"介绍一下第 2、5 篇"——Claude 会调用 get_paper_details 获取摘要并进行解读。

自定义数据库路径

通过环境变量覆盖默认数据库路径:

{
  "mcpServers": {
    "arxiv": {
      "command": "uvx",
      "args": ["arxiv-today-mcp"],
      "env": {
        "ARXIV_MCP_DB_PATH": "/你的/自定义/路径/papers.db"
      }
    }
  }
}

依赖要求

  • Python >= 3.10
  • uvuvx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arxiv_today_mcp-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arxiv_today_mcp-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file arxiv_today_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: arxiv_today_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for arxiv_today_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0b5ae919a2b4a19dabd1693316d2ace7d8abdef55527ddb5ebcd4f4d73f091c
MD5 f26b0825f3adae8c41163a1609405b7b
BLAKE2b-256 93f2cfb80f75356c08b55a3f8587b699581713bcc42b4ad60e767f50b0aa92e3

See more details on using hashes here.

File details

Details for the file arxiv_today_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: arxiv_today_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for arxiv_today_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c59814ff0b65a262b8a12a45137a2210b897fc2b168c86ae9a8916326f217b2
MD5 e9a47b167dd47156e9cfccdf7e87032b
BLAKE2b-256 aed22a6993c2b343c708433ad62fecf09eb8c0edd97a3573a610e417ebe1f5b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page