Command Palette

Search for a command to run...

Home / Servers

overleaf-git-mcp

Updated 1mo ago

by Junfei-Z

Overleaf Git MCP

A model-agnostic MCP server for token-efficient reading, editing, and synchronization of Overleaf LaTeX projects through Git.

Node.js >= 18 MCP compatible Codex CLI and IDE Claude Code and Desktop Overleaf Git Bridge Version 1.1.0 MIT License GitHub stars

Overleaf Git MCP connects Codex, Claude Code, Claude Desktop, and other MCP clients that support local STDIO servers to your Overleaf projects.

It is built for real research-writing workflows, where LaTeX projects are large, most edits touch only a small part of a file, and repeatedly transferring entire files wastes context and tokens. The server provides targeted patching, sparse checkout, diff-based re-reading, section-aware access, and explicit Git push operations.

Key capabilities

  • Read project files and inspect LaTeX section structure.
  • Apply targeted edits without rewriting complete files.
  • Commit and push changes back to Overleaf through its Git bridge.
  • Skip figures and other binary assets during synchronization.
  • Return only changed content on repeated reads when smart diff mode is enabled.
  • Manage multiple Overleaf projects from one local MCP server.
  • Keep write operations local until an explicit push_changes call.

Why use this MCP server?

A thesis or long paper can easily have an 80–100 KB main.tex file — roughly 35K tokens. A naive agent workflow re-reads or rewrites that entire file even when only one sentence changes.

The examples below show the kind of efficiency gains this design targets:

ScenarioNaive workflowOverleaf Git MCPExpected effect
Read a 35K-token file twice70K tokensFirst read + subsequent diffAbout 50% less repeated content
Replace a 50-word sentenceRewrite the full fileAbout 100–200 tokens with patch_fileMore than 99% less generated text
Clone a figure-heavy projectDownload all assetsDownload supported text files onlyLower bandwidth and faster setup
Revisit the same file in one sessionReturn the full file each timeReturn only detected changesStable context usage

Actual savings depend on the project structure, client behavior, and the edit being requested.


What is new in v1.1.0?

Sparse checkout

Only supported text files are synchronized:

  • .tex
  • .bib
  • .bst
  • .cls
  • .sty
  • .bbl
  • .cfg

Images, PDFs, and other binary assets are skipped. This keeps clone and pull operations lightweight for projects with many figures.

Read/write separation

  • Read operations pull the latest state from Overleaf.
  • Write operations modify the local working copy without automatically pulling.
  • push_changes pulls before committing and pushing, reducing the risk of overwriting remote work.

Smart diff mode

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

204,501

mcp-server-fetch

OfficialUpdated 14d ago

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

90,371

@modelcontextprotocol/server-everything

OfficialUpdated 14d ago

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

90,371

mcp-server-git

OfficialUpdated 14d ago

by modelcontextprotocol

A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs

90,371