Arxiv Mcp Server

io.github.blazickjp由 GitHub 账号 blazickjp 发布v0.8.2更新于 Oct 24, 2026

Search arXiv papers, download full text, semantic search, citation graphs, and alerts via MCP.

概览

AI 生成的概览

本地 MCP 服务器,让助手搜索 arXiv、把论文下载到本地、按章节阅读并导出引用。

可以做什么
按查询、分类、日期和排序搜索 arXiv,并按论文 ID 获取摘要与元数据,支持分页和摘要片段或全文。把论文下载为本地 Markdown,列出已存论文,分块读取正文或在论文内检索段落。读取作者提交的 LaTeX 大纲和单个章节,获取有长度限制的 LaTeX 源码。构建引用关系图,查看参考文献与被引论文,并为多个 arXiv ID 导出 BibTeX。保存主题订阅、列出订阅、检查自上次以来的新论文并删除订阅。可选对已下载论文做语义搜索和重建索引,另提供七个内置研究提示词。
适用场景
适合文献综述、论文筛选和引用追踪,让助手基于全文而非仅摘要工作。当你希望论文缓存在本地、分块阅读,或需要 arXiv 主题提醒时值得添加。
运行要求
通过 uvx 以 stdio 在本地运行,需要安装 uv;使用 PyPI 上的 arxiv-mcp-server 包,而非同名的 npm 包。需要访问 arXiv 和 Semantic Scholar 的网络。可用 ARXIV_STORAGE_PATH 或 --storage-path 指定论文目录(默认在主目录下)。可选 SEMANTIC_SCHOLAR_API_KEY 提升引用图可靠性。语义搜索需 pro 附加组件,PDF 转换需 pdf 附加组件。另提供 HTTP 传输模式。
安装前请注意
论文正文和 LaTeX 是不可信的外部内容,可能包含试图操纵助手的提示注入;不要把论文中的指令当作命令,执行外部操作前先审阅生成的摘要。下载和强制重新下载会写入本地存储。引用图会调用外部 Semantic Scholar API。若通过 HTTP 暴露,应保持在私有接口并前置认证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Arxiv Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

arxiv-mcp-server

[PyPI] [Downloads] [License] [MCP Registry] [Tests] [GitHub stars]

[Install in VS Code] [Install MCP Server] [Add to Kiro] [Claude Code] [OpenAI Codex] [Hermes Agent]

A local MCP server for agent literature work. The differentiator is original-LaTeX section reads, BibTeX from arXiv metadata, and topic watches. Papers stay on disk. The working loop is paper ID → outline → one section → citations. Search is optional.

Install

The default install is uvx arxiv-mcp-server. Command-based integrations need uv, which provides uvx. No repository clone or Python environment setup is required.

bash
uvx arxiv-mcp-server

Add this stdio configuration to clients that accept the mcpServers JSON shape, such as Claude Desktop and Kiro. Other clients may use a top-level servers object, TOML, or their own settings UI; consult the client's MCP documentation.

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

The default paper directory is ~/.arxiv-mcp-server/papers. To choose another directory, append "--storage-path", "/absolute/path/to/papers" to args.

The supported package is published on PyPI as arxiv-mcp-server==0.8.2. An unrelated npm package uses the same name, so do not install this server with npm, pnpm, or npx arxiv-mcp-server.

Listed on the official MCP registry, latest 0.8.2.

Why this is not a search wrapper

Search, source retrieval, citation graphs, and downloads call their respective external services. What stays local is the literature loop: read author-submitted LaTeX one section at a time, export BibTeX from authoritative arXiv metadata, and keep topic watches on disk. The server runs locally over stdio by default.

Per-client recipes (Claude Code, Codex, Hermes, VS Code / Kiro, Claude Desktop, plugins)

Use the default JSON above unless your client has a one-line helper.

Claude Code

Add the MCP server for all projects:

bash
claude mcp add --transport stdio --scope user arxiv -- uvx arxiv-mcp-server

For the richer plugin integration—which installs the MCP connection plus the bundled arXiv research skill—register this repository as a marketplace and install the plugin:

bash
claude plugin marketplace add blazickjp/arxiv-mcp-serverclaude plugin install arxiv-mcp-server@arxiv-mcp

Verify the direct MCP installation with claude mcp get arxiv. Restart Claude Code or run /reload-plugins after installing the plugin.

OpenAI Codex

Add the MCP server:

bash
codex mcp add arxiv -- uvx arxiv-mcp-server

Or install the MCP connection and bundled research skill as a Codex plugin:

bash
codex plugin marketplace add blazickjp/arxiv-mcp-servercodex plugin add arxiv-mcp-server@arxiv-mcp

Verify the direct MCP installation with codex mcp get arxiv. Codex CLI, the Codex IDE extension, and Codex in the ChatGPT desktop app share this MCP configuration.

Hermes Agent

[Hermes Agent]

Add the server, approve the discovered tools, and test the saved connection:

bash
hermes mcp add arxiv --command uvx --args arxiv-mcp-serverhermes mcp test arxiv

VS Code and Kiro

[Install in VS Code] [Install MCP Server] [Add to Kiro]

For the richer Kiro Power integration, open the Powers panel, choose Add Custom Power → Import power from GitHub, and enter:

text
https://github.com/blazickjp/arxiv-mcp-server

The Power installs the MCP connection from mcp.json and adds focused arXiv research guidance. Kiro users who prefer manual configuration can place the generic configuration above in .kiro/settings/mcp.json for one workspace or ~/.kiro/settings/mcp.json for all workspaces.

Claude Desktop bundle

macOS users can install a bundled .mcpb extension from the v0.8.2 release or the latest GitHub release:

Double-click the bundle, drag it into Claude Desktop, or open Settings → Extensions → Advanced settings → Install Extension…. The bundle includes the server dependencies and requires CPython 3.11.x.

Other MCP clients

Other clients may use a top-level servers object, TOML, or their own settings UI; consult the client MCP documentation. Direct MCP installation is the shortest path. Install a plugin when you also want the research workflow that steers the client toward focused searches, bounded reads, citation traversal, and section-level LaTeX retrieval.

Plugin manifests

The same MCP server and research skill are packaged for both major plugin systems:

IntegrationManifestMarketplace
Claude Code.claude-plugin/plugin.json.claude-plugin/marketplace.json
OpenAI Codex / ChatGPT Work.codex-plugin/plugin.json.agents/plugins/marketplace.json
Kiro PowerPOWER.mdmcp.json
Shared MCP launch.mcp.json for Claude and repository-local clients; .codex-mcp.json for Codex pluginsuvx arxiv-mcp-server
Shared research workflowskills/arxiv-mcp-server/SKILL.mdInstalled with either plugin

If a desktop client cannot find uvx

Desktop applications do not always inherit the same PATH as your terminal. If uvx arxiv-mcp-server works in a terminal but the client reports that the server failed to connect, find the executable's absolute path:

bash
# macOS and Linuxcommand -v uvx
powershell
# Windows PowerShell(Get-Command uvx).Source

Replace "command": "uvx" with the returned absolute path, then restart the client. Keep the args value unchanged.

If an existing installation is missing newer tools

uvx reuses cached tool environments. Force it to resolve the current PyPI release with a supported interpreter, then restart your MCP client:

bash
uvx --python 3.11 --refresh-package arxiv-mcp-server arxiv-mcp-server

If your client still launches an older environment, add "--python", "3.11" before "arxiv-mcp-server" in its args array.

Persistent command install

To place arxiv-mcp-server on your PATH instead of launching it through uvx:

bash
uv tool install arxiv-mcp-server

If the command is not immediately available, run uv tool update-shell and restart the terminal. Afterward, use "command": "arxiv-mcp-server" and omit the package name from args.

Tools

The server currently exposes 19 tools.

ToolPurposeNotes
search_papersSearch arXiv by query, category, date, and sort orderDefault ≤5 compact results (abstract_mode=snippet); remote arXiv API
get_abstractFetch metadata and an abstract by arXiv IDDoes not download the paper
download_paperDownload and convert a paper to local MarkdownHTML first; PDF fallback uses [pdf]; force=true re-fetches; content bounded to 12,000 chars by default
list_papersList papers stored locallyReturns id, title, authors, published; compact for IDs only
read_paperRead locally stored paper contentBounded to 12,000 chars by default; supports start/max_chars/return_full_text
get_paper_outlinePaginated markdown heading outlineStable hierarchical section IDs
read_paper_sectionRead one bounded markdown sectionBy outline ID or unique title
search_paper_textBounded passage search in a paperSource offsets; no Torch required
get_paper_latexRetrieve bounded author-submitted LaTeXRemote arXiv source archive
list_paper_latex_sectionsReturn a paginated LaTeX outlineSupports start and max_sections
get_paper_latex_sectionRead one bounded LaTeX sectionSelect by outline ID or exact title
citation_graphFetch references and citing papersRemote Semantic Scholar API (1 call per paper, cached on disk); optional free API key improves reliability
export_citationsExport BibTeX for one or more arXiv IDsAuthoritative arXiv metadata
watch_topicSave or update an arXiv topic watchStored locally; omit categories to preserve on update, categories: [] to clear
list_watchesList saved topic watchesRead-only; does not advance last_checked
check_alertsCheck saved watches for new papersReturns papers since the last check
unwatch_topicDelete a saved topic watchExact topic match; not-found if missing
semantic_searchSearch downloaded papers by semantic similarityRequires [pro]
reindexRebuild the local semantic indexRequires [pro]

Research alerts (watch_topic)

Save standing topic watches with watch_topic, inspect them with list_watches, poll with check_alerts, and remove with unwatch_topic.

When updating an existing watch (same topic string):

  • Omit categories → preserve the stored category filters (and other fields you leave unchanged).
  • Pass categories: [] → clear category filters.
  • Pass a non-empty list → replace the stored filters.

Create path: omitting categories stores an empty list (no category filter).

search_papers query guide

Tool schemas stay short on purpose. Use this section (not the always-loaded MCP description) for query tutorials, category catalogs, and workflow examples.

Query construction

  • Use quoted phrases for exact matches: "multi-agent systems", "neural networks"
  • Combine related concepts with OR: "AI agents" OR "software agents"
  • Field-specific searches: ti:"exact title phrase", au:"author name", abs:"keyword", cat:cs.LG
  • Exclude with ANDNOT: "machine learning" ANDNOT "survey"
  • Prefer 2–4 core concepts over long keyword lists

Advanced patterns

  • Field + phrase: ti:"transformer architecture"
  • Multiple fields: au:"Smith" AND ti:"quantum"
  • Exclusions: "deep learning" ANDNOT ("survey" OR "review")
  • Broad + narrow: "artificial intelligence" AND (robotics OR "computer vision")

Category filtering (recommended for relevance)

Computer Science: cs.AI (AI), cs.LG (ML), cs.CL (NLP), cs.CV (vision), cs.MA (multi-agent), cs.RO (robotics), cs.NE (neural/evolutionary), cs.IR (IR), cs.HC (HCI), cs.CR (security), cs.DB (databases)

Statistics & Math: stat.ML, stat.AP, math.OC, math.ST

Physics & other: quant-ph, eess.SP, eess.AS, physics.data-an

Effective examples

  • ti:"reinforcement learning" with categories: ["cs.LG", "cs.AI"]
  • au:"Hinton" AND "deep learning" with categories: ["cs.LG"]
  • "multi-agent" ANDNOT "survey" with categories: ["cs.MA"]
  • abs:"transformer" AND ti:"attention" with categories: ["cs.CL"]

Dates and sorting

  • Dates use YYYY-MM-DD (date_from / date_to)
  • Default sort_by is relevance; use date for newest-first monitoring
  • Foundational work: date_to: "2010-12-31" with title/abstract field searches

Result size, abstracts, and pagination

  • Default max_results is 5 (cap 50). Pass an explicit value for larger pages.
  • abstract_mode: snippet (default, ~280 chars, marked … [truncated] when cut), full (complete abstract), or none (omit abstracts). Other metadata (title, authors, categories, dates, URLs) is always returned.
  • Responses report total_results (corpus hits), returned, has_more, start, next_start, and abstract_mode
  • Pass start=next_start with the same abstract_mode for the next page
  • arXiv enforces ~3 seconds between requests (handled server-side); on rate-limit errors wait ~60s

Search and inspect a paper

Ask your MCP client to call search_papers with:

json
{  "query": "\"Kolmogorov-Arnold Networks\"",  "categories": ["cs.LG", "cs.AI"],  "sort_by": "date"}

Defaults return up to five compact results with abstract snippets. Use "abstract_mode": "full" when you need complete abstracts in the search response, or call get_abstract for a single paper after a compact search:

json
{  "paper_id": "2404.19756"}

Do not call get_abstract again for papers already returned with abstract_mode=full.

Download and read full text

Call download_paper with:

json
{  "paper_id": "2404.19756"}

Omitting max_chars returns a bounded first chunk (default 12,000 paper characters). Cached papers are returned immediately. Pass "force": true to re-download and overwrite the local markdown and sidecar (also happens automatically when the HTML extractor version changes).

Then page through the cached content with read_paper:

json
{  "paper_id": "2404.19756",  "start": 0}

Or continue from a prior chunk:

json
{  "paper_id": "2404.19756",  "start": 12000}

Large-content responses include content_length, returned_chars, next_start, is_truncated, and (when truncated) next_retrieval with the next-call instruction. Pass next_start into the next call's start to continue reading. Pass an explicit max_chars to override the default chunk size, or "return_full_text": true to opt into the previous unbounded full-paper response.

Migration notes (bounded content default)

Previously, omitting max_chars on download_paper / read_paper returned the entire paper. That default is now a 12,000-character chunk so a single MCP tool call cannot flood the client context window.

NeedCall
First bounded chunk (new default){ "paper_id": "…" }
Continue reading{ "paper_id": "…", "start": <next_start> }
Custom chunk size{ "paper_id": "…", "max_chars": 5000 }
Old unbounded behavior{ "paper_id": "…", "return_full_text": true }

Clients that already passed max_chars are unchanged. Only callers that relied on the omitted-max_chars = full-text behavior need to add return_full_text: true or page via next_start.

Read original LaTeX by section

Call get_paper_latex with:

json
{  "paper_id": "1706.03762"}

Get the first page of its section outline with list_paper_latex_sections:

json
{  "paper_id": "1706.03762",  "start": 0,  "max_sections": 100}

Then call get_paper_latex_section using an ID from that outline:

json
{  "paper_id": "1706.03762",  "section_id": "3.2",  "max_chars": 12000}

LaTeX archives are validated, size-limited, and cached locally before content is returned.

Optional dependencies

Choose the install variant that matches the features you need:

bash
# Base serveruv tool install arxiv-mcp-server
# Base server plus PDF conversionuv tool install "arxiv-mcp-server[pdf]"
# Base server plus local semantic searchuv tool install "arxiv-mcp-server[pro]"

If the base tool is already installed, reinstall the selected variant:

bash
uv tool install --force "arxiv-mcp-server[pdf]"

The pdf extra installs pymupdf4llm and pymupdf-layout for papers without usable arXiv HTML. The pro extra adds local embedding dependencies for semantic_search and reindex; semantic search only operates on papers already downloaded to the configured storage directory.

For older papers that require PDF conversion, run the package with its PDF extra:

json
{  "mcpServers": {    "arxiv": {      "type": "stdio",      "command": "uvx",      "args": [        "--from",        "arxiv-mcp-server[pdf]",        "arxiv-mcp-server"      ]    }  }}

Built-in prompts

The server provides seven MCP prompt workflows. Prompt availability depends on the client; the server provides workflow instructions but does not run a separate model.

PromptRequired argumentsPurpose
research-discoverytopicMap terminology, searches, papers, research clusters, and a reading path
deep-paper-analysispaper_idAnalyze one paper in depth
summarize_paperpaper_idSummarize methods, results, and limitations
compare_paperspaper_idsCompare multiple papers
literature_reviewtopicSynthesize a topic and optional paper set
literature-synthesispaper_idsSynthesize themes, methods, timelines, or gaps across papers
research-questionpaper_ids, topicFormulate grounded, falsifiable research questions

Streamable HTTP

For deployments where stdio is not practical:

bash
TRANSPORT=http HOST=127.0.0.1 PORT=8080 \  uvx arxiv-mcp-server --storage-path /absolute/path/to/papers

PowerShell:

powershell
$env:TRANSPORT = "http"$env:HOST = "127.0.0.1"$env:PORT = "8080"uvx arxiv-mcp-server --storage-path C:\absolute\path\to\papers

Connect clients to:

json
{  "mcpServers": {    "arxiv": {      "type": "http",      "url": "http://127.0.0.1:8080/mcp"    }  }}

Cloud and load-balancer probes should GET http://<host>:<port>/healthz. It returns 200 with body ok once the HTTP server is listening. There is no separate /ready check: if the process is up, it is ready. The stdio transport has no HTTP endpoints.

The server binds to 127.0.0.1 by default and enables MCP DNS-rebinding protection. If a reverse proxy exposes the server, keep the process on a private interface and provide authentication and network controls upstream. Use ALLOWED_HOSTS and ALLOWED_ORIGINS for the host and origin values forwarded by the proxy.

Configuration

SettingDefaultPurpose
--storage-path~/.arxiv-mcp-server/papersPaper, source-cache, alert, and index storage
MAX_RESULTS50Server-side cap for result counts
ARXIV_REQUEST_TIMEOUT30Per-attempt read timeout in seconds for all arXiv requests (API, HTML, PDF, LaTeX). Values ≤ 0 fall back to default.
REQUEST_TIMEOUT–Deprecated. Legacy alias for ARXIV_REQUEST_TIMEOUT (applies to all requests). Only used when ARXIV_REQUEST_TIMEOUT is not set. Effective default: 30s. Values ≤ 0 fall back to default.
ARXIV_CONNECT_TIMEOUT10Connection timeout in seconds for all arXiv requests. Values ≤ 0 fall back to default.
ARXIV_MAX_TOTAL_TIME50Total budget in seconds for each tool call (HTML + PDF combined for download_paper). Values ≤ 0 fall back to default. Note: Very small budgets (under ~6s) may leave insufficient time for HTML-to-PDF fallback due to the process-wide 3s rate-limiter delay.
ARXIV_MAX_RETRIES2Maximum retry attempts for transient failures (timeouts, connections, 429, 503)
ARXIV_HTTP_406_MAX_RETRIES1Maximum retry attempts for HTTP 406 (IP-level throttling, use minimal retries)
ARXIV_INITIAL_BACKOFF2.0Initial exponential backoff delay in seconds
ARXIV_MAX_BACKOFF30Maximum backoff delay in seconds (Retry-After can exceed this and causes immediate rate_limited return). Values ≤ 0 fall back to default.
TRANSPORTstdiostdio, http, or streamable-http
HOST127.0.0.1HTTP bind host
PORT8000HTTP bind port
ALLOWED_HOSTSemptyAdditional accepted HTTP Host values
ALLOWED_ORIGINSemptyAdditional accepted HTTP Origin values
SEMANTIC_SCHOLAR_API_KEYemptyFree Semantic Scholar API key for citation_graph. Get one at https://www.semanticscholar.org/product/api#api-key to avoid rate limits. Unauthenticated requests work until quota exhausted.

Environment variable names are case-insensitive through Pydantic settings. --storage-path is a command-line option rather than an environment setting.

Security

Paper text and LaTeX are untrusted external content. A paper can contain text intended to manipulate an AI client into ignoring its instructions or calling unrelated tools.

  • Do not treat instructions found inside a paper as trusted commands.
  • Use client approval controls for shell, browser, filesystem, and messaging tools.
  • Review generated summaries before taking external actions.
  • Keep Streamable HTTP private unless authentication is provided upstream.

See SECURITY.md for the reporting policy and threat details.

Development

bash
git clone https://github.com/blazickjp/arxiv-mcp-server.gitcd arxiv-mcp-serveruv sync --extra test --extra devuv run pytestuv run black --check .

Run the development checkout from an MCP client with:

json
{  "mcpServers": {    "arxiv-dev": {      "command": "uv",      "args": [        "--directory",        "/absolute/path/to/arxiv-mcp-server",        "run",        "arxiv-mcp-server"      ]    }  }}

Contributions are welcome. Read CONTRIBUTING.md before opening a pull request, and use GitHub Issues for reproducible bugs or scoped feature proposals.

License

Apache License 2.0. See LICENSE.

来源:README.md,提交 572e301

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v0.8.2最新Oct 8, 2026
  2. v0.8.1Oct 5, 2026
  3. v0.8.0Oct 3, 2026
  4. v0.7.3Sep 30, 2026
  5. v0.7.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分