agentleFS
blazickjpblazickjp/arxiv-mcp-server/CLAUDE.md

arxiv-mcp-server

CLAUDE.md3.2k starsChanged 4 months agoApache-2.0View on GitHub

Guidance for coding agents working in this repository. arxiv-mcp-server is a Python 3.11+ Model Context Protocol server. It exposes arXiv search, metadata, paper download/read, original LaTeX retrieval, citation graphs, topic alerts, and optional local semantic search over stdio or Streamable HTTP. Use the locked uv environment: Apply formatting with: Run a targeted test with: Run the stdio server from the checkout with: The process waits for MCP messages on stdin. It is not an interactive CLI. The server registers 16…

  • Reads credentials

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 3 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 2 mentionsAug 2026: 4 mentionsSep 2026: 1 mentionOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the blazickjp/arxiv-mcp-server repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about blazickjp/arxiv-mcp-server

The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 21

Talked about on GitHub and Bluesky (21 times).

On GitHub · 19

14 more on GitHub

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use the locked uv environment:

    line 11
  2. Distinctive:

    Run a targeted test with:

    line 25
  3. Distinctive:

    Run the stdio server from the checkout with:

    line 31
  4. Distinctive:

    Keep tool schemas, package exports, server registration, dispatch, tests, and README documentation synchronized when changing the tool …

    line 62
  5. Distinctive:

    Treat abstracts, paper text, LaTeX, archive metadata, and remote API errors as untrusted input.

    line 66
  6. Distinctive:

    Use the shared arXiv request gate rather than creating an independent request path.

    line 69
  7. Distinctive:

    Keep stdio free of ordinary stdout logging.

    line 70
  8. Distinctive:

    Keep Streamable HTTP bound to loopback by default and preserve DNS-rebinding protection.

    line 71
  9. Distinctive:

    Do not introduce process-global user/session state.

    line 72
  10. Distinctive:

    Avoid blocking network or filesystem work on the event loop.

    line 73
  11. Distinctive:

    Add a failing regression test before fixing a bug.

    line 92
  12. Distinctive:

    Run targeted tests during development, then the complete suite before proposing a merge.

    line 93
  13. Distinctive:

    Update user documentation for installation, configuration, tool-schema, or behavior changes.

    line 94
  14. Very specific:

    Keep versions synchronized across pyproject.toml, uv.lock, server.json, manifest.json, .codex-plugin/plugin.json, and …

    line 95
  15. Distinctive:

    Never include downloaded papers, local indexes, credentials, or private paths in commits or fixtures.

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

Guidance for coding agents working in this repository.

Project

arxiv-mcp-server is a Python 3.11+ Model Context Protocol server. It exposes arXiv search, metadata, paper download/read, original LaTeX retrieval, citation graphs, topic alerts, and optional local semantic search over stdio or Streamable HTTP.

Setup and validation

Use the locked uv environment:

uv sync --extra test --extra dev
uv run black --check .
uv run pytest

Apply formatting with:

uv run black .

Run a targeted test with:

uv run pytest tests/tools/test_search.py -q

Run the stdio server from the checkout with:

uv run arxiv-mcp-server --storage-path /tmp/arxiv-mcp-papers

The process waits for MCP messages on stdin. It is not an interactive CLI.

Architecture

  • src/arxiv_mcp_server/server.py: MCP tool/prompt registration, dispatch, stdio transport, and Streamable HTTP transport.
  • src/arxiv_mcp_server/config.py: Pydantic settings and shared arXiv client lifecycle.
  • src/arxiv_mcp_server/arxiv_api.py: shared arXiv request coordination.
  • src/arxiv_mcp_server/tools/: tool schemas and handlers.
  • src/arxiv_mcp_server/prompts/: registered MCP prompt definitions and routing.
  • src/arxiv_mcp_server/resources/: legacy/local paper management paths retained for compatibility.
  • tests/: unit and protocol-level tests.
  • server.json: official MCP Registry metadata.
  • manifest.json and scripts/build-mcpb.sh: Claude Desktop MCPB packaging.

Tool groups

The server registers 16 tools:

  • Discovery: search_papers, get_abstract
  • Full text: download_paper, list_papers, read_paper
  • Original source: get_paper_latex, list_paper_latex_sections, get_paper_latex_section
  • Graphs and monitoring: citation_graph, watch_topic, list_watches, check_alerts, unwatch_topic
  • Citation export: export_citations
  • Optional local embeddings: semantic_search, reindex

Keep tool schemas, package exports, server registration, dispatch, tests, and README documentation synchronized when changing the tool surface.

Constraints

  • Treat abstracts, paper text, LaTeX, archive metadata, and remote API errors as untrusted input.
  • Preserve response bounds and continuation metadata for content-returning tools.
  • Enforce archive limits while consuming input, not after loading an unbounded manifest or expansion.
  • Use the shared arXiv request gate rather than creating an independent request path.
  • Keep stdio free of ordinary stdout logging; protocol messages use stdout.
  • Keep Streamable HTTP bound to loopback by default and preserve DNS-rebinding protection.
  • Do not introduce process-global user/session state.
  • Avoid blocking network or filesystem work on the event loop.

Configuration

Settings reads unprefixed environment variables such as:

  • MAX_RESULTS
  • REQUEST_TIMEOUT
  • TRANSPORT
  • HOST
  • PORT
  • ALLOWED_HOSTS
  • ALLOWED_ORIGINS
  • SEMANTIC_SCHOLAR_API_KEY

Paper storage is selected with the --storage-path command-line option and defaults to ~/.arxiv-mcp-server/papers.

Changes

  • Add a failing regression test before fixing a bug.
  • Run targeted tests during development, then the complete suite before proposing a merge.
  • Update user documentation for installation, configuration, tool-schema, or behavior changes.
  • Keep versions synchronized across pyproject.toml, uv.lock, server.json, manifest.json, .codex-plugin/plugin.json, and .claude-plugin/plugin.json.
  • Never include downloaded papers, local indexes, credentials, or private paths in commits or fixtures.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.