
takashiishida/arxiv-latex-mcp 是从 https://github.com/takashiishida/arxiv-latex-mcp. 导入的 MCP 服务器候选
概览
takashiishida/arxiv-latex-mcp 是从 https://github.com/takashiishida/arxiv-latex-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,使Claude Desktop、Claude代码、光标或其他MCP客户端能够通过获取LaTeX源代码直接访问和处理arXiv论文。它在底层使用arxiv-to-prompt来处理LaTeX的下载和处理。
为什么选择使用 LaTeX 源代码而不是上传 PDF?许多 PDF 聊天应用常常在数学内容和方程密集论文方面遇到困难。通过利用 arXiv 论文中的原始 LaTeX 源代码,LLM 能够准确理解并处理方程和符号。这种方法对于计算机科学、数学和工程等领域尤其有价值,因为这些领域对数学表达式的精确解读至关重要。
安装
如果你使用Claude Desktop,可以通过双击.mcpb文件来安装桌面扩展。
从这里下载.mcpb文件。
支持macOS、Windows和Linux。
否则,你可以直接从 PyPI 运行服务器,使用 uvx:
你也可以用pip install arxiv-latex-mcp安装并运行arxiv-latex-mcp,或者使用:
如果你更喜欢从本地结出点运行,可以在配置文件中添加以下配置:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
arxiv-latex MCP Server
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.
The extension needs Python 3.11+ 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.
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.
安装
uvx arxiv-latex-mcp配置
{
"mcpServers": {
"arxiv-latex-mcp": {
"command": "uvx",
"args": ["arxiv-latex-mcp"]
}
}
}