Skip to content
Back to search

arxiv-latex-mcp

MCP server that uses arxiv-to-prompt to fetch and process arXiv LaTeX sources for precise interpretation of mathematical expressions in scientific papers.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/takashiishida--arxiv-latex-mcp/badge.svg)](/listings/takashiishida--arxiv-latex-mcp)

HTML

<a href="/listings/takashiishida--arxiv-latex-mcp"><img src="/api/listings/takashiishida--arxiv-latex-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

If you are using Claude Desktop, you can utilize Desktop Extensions by double-clicking on the `.mcpb` file to install. Download the `.mcpb` file from [here](https://github.com/takashiishida/arxiv-latex-mcp/releases/). Supported on macOS, Windows, and Linux.

Otherwise, you can run the server directly from PyPI with `uvx`:

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

You can also install it with `pip install arxiv-latex-mcp` and run `arxiv-latex-mcp`, or use:

python -m arxiv_latex_mcp

If you prefer to run from a local checkout, add the following configuration to your config file:

{
  "mcpServers": {
      "arxiv-latex-mcp": {
          "command": "uv",
          "args": [
              "--directory",
              "/ABSOLUTE/PATH/TO/arxiv-latex-mcp",
              "run",
              "python",
              "-m",
              "arxiv_latex_mcp"
          ]
      }
  }
}

You may need to replace the `command` field with the full path of `uv`: check this by running `which uv` (MacOS/Linux) or `where uv` (Windows).

Restart the application after saving the above.

For Claude Desktop, click on the hammer icon, and you should see the following in the list of "Available MCP tools": - `get_paper_prompt` — Get the full flattened LaTeX of a paper - `get_paper_abstract` — Get just the abstract - `list_paper_sections` — List section headings of a paper - `get_paper_section` — Get a specific section by path

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 95 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # arxiv-latex MCP Server
  2. [![PyPI version](https://badge.fury.io/py/arxiv-latex-mcp.svg)](https://pypi.org/project/arxiv-latex-mcp/)
  3. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
  4. [![GitHub Release](https://img.shields.io/github/v/release/takashiishida/arxiv-latex-mcp)](https://github.com/takashiishida/arxiv-latex-mcp/releases)
  5. [![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/takashiishida/arxiv-latex-mcp)](https://archestra.ai/mcp-catalog/takashiishida__arxiv-latex-mcp)
  6. An MCP server that enables [Claude Desktop](https://claude.ai/download), [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://www.cursor.com/), or other MCP clients to directly access and process arXiv papers by fetching the LaTeX source. It uses [arxiv-to-prompt](https://github.com/takashiishida/arxiv-to-prompt) under the hood to handle downloading and processing the LaTeX.
  7. Why use the LaTeX source instead of uploading PDFs? Many PDF chat applications often struggle with mathematical content and equation-heavy papers. By utilizing the original LaTeX source code from arXiv papers, the LLM can accurately understand and handle equations and notations. This approach is particularly valuable for fields like computer science, mathematics, and engineering where precise interpretation of mathematical expressions is crucial.
  8. ## Installation
  9. If you are using Claude Desktop, you can utilize Desktop Extensions by double-clicking on the `.mcpb` file to install.
  10. Download the `.mcpb` file from [here](https://github.com/takashiishida/arxiv-latex-mcp/releases/).
  11. The extension needs Python 3.10+ with pip. On first launch, and whenever its dependency requirements or Python runtime change, it downloads wheels into a private cache inside the extension. This requires internet access; subsequent launches reuse that cache. Restart your MCP client after installing an updated extension.
  12. Supported on macOS, Windows, and Linux.
  13. Otherwise, you can run the server directly from PyPI with `uvx`:
  14. ```json
  15. {
  16. "mcpServers": {
  17. "arxiv-latex-mcp": {
  18. "command": "uvx",
  19. "args": ["arxiv-latex-mcp"]
  20. }
  21. }
  22. }
  23. ```
  24. You can also install it with `pip install arxiv-latex-mcp` and run `arxiv-latex-mcp`, or use:
  25. ```bash
  26. python -m arxiv_latex_mcp
  27. ```
  28. If you prefer to run from a local checkout, add the following configuration to your config file:
  29. ```json
  30. {
  31. "mcpServers": {
  32. "arxiv-latex-mcp": {
  33. "command": "uv",
  34. "args": [
  35. "--directory",
  36. "/ABSOLUTE/PATH/TO/arxiv-latex-mcp",
  37. "run",
  38. "python",
  39. "-m",
  40. "arxiv_latex_mcp"
  41. ]
  42. }
  43. }
  44. }
  45. ```
  46. You may need to replace the `command` field with the full path of `uv`: check this by running `which uv` (MacOS/Linux) or `where uv` (Windows).
  47. Restart the application after saving the above.
  48. For Claude Desktop, click on the hammer icon, and you should see the following in the list of "Available MCP tools":
  49. - `get_paper_prompt` — Get the full flattened LaTeX of a paper
  50. - `get_paper_abstract` — Get just the abstract
  51. - `list_paper_sections` — List section headings of a paper
  52. - `get_paper_section` — Get a specific section by its title from `list_paper_sections` (`Section > Subsection` for a subsection)
  53. - `search_papers` — Discover papers by topic, title, or author, optionally filtered by category and submission date
  54. ## Searching for papers
  55. Use `search_papers` when you do not yet have an arXiv ID. It returns paper IDs,
  56. titles, authors, abstracts, categories, submission dates, and PDF links. Pass a
  57. returned `id` to `get_paper_prompt` to read its LaTeX source. If you already have
  58. an ID, call the reading tools directly.
  59. For example, search with `{"query": "ti:\"neural networks\"", "categories": ["cs.LG", "stat.ML"], "date_from": "2026-01-01", "max_results": 10, "sort_by": "date"}`.
  60. Categories are combined with OR and restrict the query. `date_from` and `date_to`
  61. are inclusive submission dates in `YYYY-MM-DD` format (UTC). Searches return 10
  62. papers by default, up to 50, sorted by relevance or by newest submission date.
  63. Search requests share a three-second throttle; rate-limit errors ask you to wait
  64. before retrying.
  65. ## Caching
  66. Paper sources are kept in arxiv-to-prompt's cache (the same one its CLI uses), so repeated calls on the same paper do not download it again. Unversioned IDs such as `2403.12345` are re-downloaded once their copy is older than 7 days, so revised papers are picked up. Versioned IDs such as `2403.12345v2` never change. If a refresh fails, the cached copy is used. To change this, set environment variables in the server's MCP config (`"env": {...}`):
  67. | Variable | Default | Effect |
  68. |---|---|---|
  69. | `ARXIV_LATEX_MCP_CACHE` | `1` | `0` turns caching off |
  70. | `ARXIV_LATEX_MCP_CACHE_TTL_DAYS` | `7` | Age after which unversioned IDs are re-downloaded |
  71. | `ARXIV_LATEX_MCP_CACHE_DIR` | arxiv-to-prompt's default | Cache location (default `~/.cache/arxiv-to-prompt`, or `%LOCALAPPDATA%\arxiv-to-prompt` on Windows) |
  72. ## Example
  73. Try asking questions about a paper from arXiv, e.g., "Explain the first theorem in 2202.00395"
  74. <div align="center">
  75. <img src="example.png" alt="Example of using arXiv LaTeX MCP with Claude Desktop" width="600">
  76. </div>

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.