Skip to main content

An MCP server that fetches and processes arXiv papers using LaTeX source for accurate equation handling

Project description

arxiv-latex MCP Server

License: MIT GitHub Release Trust Score

An MCP server that enables Claude Desktop, Claude Code, Cursor, or other MCP clients to directly access and process arXiv papers by fetching the LaTeX source. It uses 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. 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

Example

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

Example of using arXiv LaTeX MCP with Claude Desktop

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arxiv_latex_mcp-0.2.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arxiv_latex_mcp-0.2.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file arxiv_latex_mcp-0.2.2.tar.gz.

File metadata

  • Download URL: arxiv_latex_mcp-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for arxiv_latex_mcp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7c6232367afae9d19b1a34f55d78c6d6b69c87441f2e91c03a883b6c02075b77
MD5 63186aea6231dca91e3839a823c80658
BLAKE2b-256 523ffb8936fc629cbaf05b644f327f5a86860c72686a71e55b995cfb3d8d21c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for arxiv_latex_mcp-0.2.2.tar.gz:

Publisher: publish.yml on takashiishida/arxiv-latex-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arxiv_latex_mcp-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for arxiv_latex_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 079ddc33d4ab3d774e1441df91bc25bf09daa1c7b9f65bd2d3f4cd723983eb5c
MD5 551630c403e87592d717ada8edbdfb08
BLAKE2b-256 5a66416ae107665003df75a1fac2171469b662d81f5f03767b841eb8c8d5e91e

See more details on using hashes here.

Provenance

The following attestation bundles were made for arxiv_latex_mcp-0.2.2-py3-none-any.whl:

Publisher: publish.yml on takashiishida/arxiv-latex-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page