by takashiishida
arxiv-latex-mcp is an MCP server that processes LaTeX source code from arXiv papers. It enables Large Language Models to accurately understand mathematical content by providing structured input from original LaTeX sources.
arxiv-latex-mcp is an MCP (Multi-Client Protocol) server designed to fetch and process LaTeX source code from arXiv papers. It addresses the limitations of PDF-based chat applications, particularly their struggle with accurately interpreting mathematical expressions and equations in scientific documents. By leveraging the original LaTeX source, arxiv-latex-mcp enables Large Language Models (LLMs) to achieve a more precise understanding of mathematical content.
There are two primary ways to use arxiv-latex-mcp:
.dxt
file from the project's GitHub releases. After installation, restart Claude Desktop, and you should find get_paper_prompt
in the "Available MCP tools" list.mcpServers
entry for arxiv-latex-mcp
, specifying the command (uv
) and arguments to run the server's main Python script. You may need to replace the command
field with the full path to uv
(e.g., by running which uv
on macOS/Linux or where uv
on Windows).Once set up, you can interact with the server by asking questions about arXiv papers, for example, "Explain the first theorem in 2202.00395."
arxiv-to-prompt
library for efficient downloading and processing of LaTeX source files.Q: Why use LaTeX source instead of PDFs? A: Many PDF chat applications struggle with mathematical content and equation-heavy papers. By using the original LaTeX source code, the LLM can accurately understand and handle equations and notations, which is particularly valuable for fields requiring precise interpretation of mathematical expressions.
Q: What are the system requirements for arxiv-latex-mcp?
A: The project is written in Python and uses uv
for running the server. Specific dependencies would be managed by uv
and are detailed in the project's pyproject.toml
or similar configuration files.
Q: Can I use arxiv-latex-mcp with other MCP clients besides Claude Desktop and Cursor?
A: Yes, the project is designed as an MCP server, meaning it should be compatible with any MCP client that allows for manual configuration of server endpoints. You would need to configure the client with the appropriate command and arguments to run the arxiv-latex-mcp
server.
An MCP server that enables Claude Desktop, 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.
If you are using Claude Desktop, you can utilize Desktop Extensions by double-clicking on the .dxt file to install. Download the .dxt file from here.
Otherwise, you can manually add the following configuration to your config file:
{
"mcpServers": {
"arxiv-latex-mcp": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/arxiv-latex-mcp",
"run",
"server/main.py"
]
}
}
}
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 get_paper_prompt
in the list of "Available MCP tools".
Try asking questions about a paper from arXiv, e.g., "Explain the first theorem in 2202.00395"
Reviews feature coming soon
Stay tuned for community discussions and feedback