arxiv-mcp-server

作者 blazickjp已验证

A Model Context Protocol server for searching and analyzing arXiv papers

3,068
Stars
251
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/blazickjp/arxiv-mcp-server

快速入门

使用 arxiv-mcp-server 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

arxiv-mcp-server

PyPI Downloads GitHub Stars GitHub Forks Tests Python License

Install in VS Code Install in VS Code Insiders Add to Kiro Claude Code OpenAI Codex Hermes Agent MCP Registry

An MCP server for searching arXiv, downloading papers, reading bounded full text, retrieving original LaTeX by section, following citation graphs, and maintaining research alerts.

It runs locally over stdio by default. Papers and indexes stay on your machine; search, source retrieval, citation graphs, and downloads call their respective external services.

Install

The command-based integrations require uv, which provides uvx. Choose your client below; no repository clone or Python environment setup is required.

Claude Code

Add the MCP server for all projects:

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:

claude plugin marketplace add blazickjp/arxiv-mcp-server
claude 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:

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

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

codex plugin marketplace add blazickjp/arxiv-mcp-server
codex 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

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

hermes mcp add arxiv --command uvx --args arxiv-mcp-server
hermes mcp test arxiv

Kiro and VS Code

Use the Add to Kiro, Install in VS Code, or Install in VS Code Insiders button above.

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

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 below 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 latest GitHub release:

  • Apple Silicon: arxiv-mcp-server-darwin-arm64-<version>.mcpb
  • Intel: arxiv-mcp-server-darwin-x86_64-<version>.mcpb

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

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.

{
  "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.

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

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

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

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:

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.

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:

# macOS and Linux
command -v uvx
# Windows PowerShell
(Get-Command uvx).Source

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

Persistent command install

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

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.

Plugin integrations

The repository now packages the same MCP server and research skill 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

Direct MCP installation is the shortest path. Install the plugin when you also want the research workflow that steers the client toward focused searches, bounded reads, citation traversal, and section-level LaTeX retrieval.

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; optional SEMANTIC_SCHOLAR_API_KEY
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 categoriespreserve 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:

{
  "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:

{
  "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:

{
  "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:

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

Or continue from a prior chunk:

{
  "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:

{
  "paper_id": "1706.03762"
}

Get the first page of its section outline with list_paper_latex_sections:

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

Then call get_paper_latex_section using an ID from that outline:

{
  "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:

# Base server
uv tool install arxiv-mcp-server

# Base server plus PDF conversion
uv tool install "arxiv-mcp-server[pdf]"

# Base server plus local semantic search
uv tool install "arxiv-mcp-server[pro]"

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

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.

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:

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

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:

{
  "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
REQUEST_TIMEOUT60PDF fallback download timeout in seconds
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_KEYemptyOptional Semantic Scholar API key for citation_graph

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

git clone https://github.com/blazickjp/arxiv-mcp-server.git
cd arxiv-mcp-server
uv sync --extra test --extra dev
uv run pytest
uv run black --check .

Run the development checkout from an MCP client with:

{
  "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.

常见问题

What is arxiv-mcp-server?

arxiv-mcp-server is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by blazickjp. A Model Context Protocol server for searching and analyzing arXiv papers. It has 3,068 GitHub stars.

Is arxiv-mcp-server safe to use?

Yes. arxiv-mcp-server passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install arxiv-mcp-server?

Clone the repository with "git clone https://github.com/blazickjp/arxiv-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is arxiv-mcp-server written in?

arxiv-mcp-server is primarily written in Python. It is open-source under blazickjp on GitHub, so you can review or fork the full source.

Are there alternatives to arxiv-mcp-server?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh arxiv-mcp-server against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情