About latex-mcp
latex-mcp lets AI agents compile TeX files with LaTeX in a Docker container. It is for workflows that need containerized TeX compilation.
Key features
- 01Compile TeX files with LaTeX
- 02Run compilation in Docker
Use cases
- 01Compile TeX documents for an AI agent
- 02Run TeX compilation in a Docker container
MCP support
The MCP server exposes TeX compilation to AI agents.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMElatex-mcp
Enable AI agents to compile TeX files with LaTeX inside a Docker container.
Quickly Start
Prerequisites
- Docker
- Recommended hardware: 4GB or higher
- Network access to GitHub Container Registry
Configuration in Claude Code
Create a .mcp.json file in your project root. This configuration is ideal for team collaboration as it uses ${PWD} environment variable that works across different machines:
{
"mcpServers": {
"latex-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src=${PWD},dst=${PWD}",
"-w",
"${PWD}",
"ghcr.io/sepinetam/latex-mcp:latest"
]
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.