GoLatex MCP Server

GoLatex MCP Server

Enables AI agents to read, write, and compile LaTeX projects locally, view PDF pages as images, and manage project files, with live updates reflected in a web-based editor.

Category
Visit Server

README

GoLatex

Workspace LaTeX local con dos caras sobre el mismo motor:

  • Humana: app tipo Overleaf local — árbol de archivos, editor con resaltado LaTeX y visor PDF con SyncTeX, todo en el navegador.
  • Agéntica: servidor MCP que expone el proyecto abierto (leer/escribir archivos, compilar con errores parseados, ver páginas del PDF como imagen) para Claude Code u otro cliente MCP. Ambas caras comparten proyecto, cola de compilación y eventos en vivo: lo que escribe el agente aparece al instante en la app.

Todo local: sin base de datos, sin cuentas, sin nube.

Requisitos

  • macOS con TeX Live en /Library/TeX/texbin (latexmk, synctex).
  • Python 3.11+.

Arrancar

./run.sh                      # abre http://localhost:8123 (último proyecto)
./run.sh /ruta/a/mi/proyecto  # abre esa carpeta directamente

La primera vez crea .venv e instala dependencias. Puerto configurable con GOLATEX_PORT.

Uso (cara humana)

  • Abrir proyecto: botón 📁 (recientes o explorador de carpetas).
  • Editar: clic en un .tex/.bib del árbol. ⌘S guarda. Pestañas con indicador de cambios sin guardar.
  • Compilar: botón ▶ o ⌘⏎ (raíz configurable con el selector ★; por defecto main.tex). El visor PDF se refresca manteniendo página y zoom.
  • Problemas: panel inferior con errores/warnings clicables (saltan al código); pestaña "Log crudo" con el log completo.
  • SyncTeX: +clic (o doble clic) sobre el PDF salta a la línea de código; ⌘⌥J en el editor salta del código al PDF.
  • Auto: casilla "auto" recompila con cada guardado. 🌙 alterna modo oscuro.
  • Árbol: clic derecho para crear/renombrar/eliminar (va a la Papelera) y fijar el .tex principal.

Si un agente (u otro editor) modifica un archivo, el editor lo recarga al instante; si tenías cambios sin guardar, aparece un aviso para decidir. Si se recompila, el PDF se actualiza solo.

Conectar el MCP a Claude Code (cara agéntica)

Con la app corriendo (./run.sh):

claude mcp add --transport http golatex http://localhost:8123/mcp

Para Claude Desktop u otros clientes, registra la URL http://localhost:8123/mcp (transporte Streamable HTTP).

Herramientas expuestas (siempre restringidas a la carpeta del proyecto abierto):

Tool Qué hace
project_info raíz, main, lista de \input, ¿PDF al día?, páginas
list_files árbol del proyecto (sin artefactos)
read_file / write_file leer / escribir un archivo
edit_file reemplazo puntual (old → new, con control de unicidad)
compile latexmk; devuelve ok, errores parseados (archivo, línea, mensaje) y páginas
get_log log crudo completo, bajo demanda
render_page página N del PDF como imagen PNG (para ver el resultado)
search grep (regex) sobre los archivos de texto del proyecto
bib_list / bib_add listar / agregar entradas de references.bib
ai_check estima qué tan "IA" suena un .tex del proyecto (o texto directo): score 0–1, párrafos sospechosos y señales (detector local texthumanize, sin red). Orientativo: ningún detector de IA es concluyente

Ejemplo de sesión con el agente: "agrega un typo deliberado en capitulo_4.tex, compílalo, léeme el error, arréglalo y recompila" — cada cambio y compilación se ve en vivo en la app.

Nota: el MCP opera sobre el proyecto abierto en la app (una sola sesión y cola de compilación compartida: si el humano y el agente compilan a la vez, se encolan y no se pisan).

Estructura

run.sh            arranque (venv + uvicorn + abrir navegador)
server/           FastAPI: REST + WebSocket + watcher + MCP (/mcp)
web/              UI estática: CodeMirror + PDF.js (vendorizados)

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured