Skip to main content
Glama
README.md
# arxiv-latex MCP Server
[![PyPI version](https://badge.fury.io/py/arxiv-latex-mcp.svg)](https://pypi.org/project/arxiv-latex-mcp/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitHub Release](https://img.shields.io/github/v/release/takashiishida/arxiv-latex-mcp)](https://github.com/takashiishida/arxiv-latex-mcp/releases)
[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/takashiishida/arxiv-latex-mcp)](https://archestra.ai/mcp-catalog/takashiishida__arxiv-latex-mcp)


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.

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.

## Installation

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`:
```json
{
  "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:
```bash
python -m arxiv_latex_mcp
```

If you prefer to run from a local checkout, add the following configuration to your config file:
```json
{
  "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

## Example
Try asking questions about a paper from arXiv, e.g., "Explain the first theorem in 2202.00395"

<div align="center">
  <img src="example.png" alt="Example of using arXiv LaTeX MCP with Claude Desktop" width="600">
</div>

TDQS

A4.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: abstract retrieval, full LaTeX source, specific section, and section listing. No overlap in functionality.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case, with verbs 'get' and 'list' appropriately distinguishing retrieval types.

Tool Count5/5

Four tools is well-scoped for the domain of fetching arXiv paper content, covering key operations without unnecessary bloat.

Completeness4/5

The set covers core paper retrieval tasks (abstract, full source, sections), but lacks a search tool or metadata-only retrieval, which are minor gaps.

Maintenance

ActivityMaintained
ResponsivenessUnresponsive