Command Palette

Search for a command to run...

UnylyUnyly
Browse all

LeafBridge

FreeNot checked

Connects Claude/ChatGPT to Overleaf projects via the Git integration, enabling read, edit, write, and file management through natural language commands.

GitHubEmbed

About

Connects Claude/ChatGPT to Overleaf projects via the Git integration, enabling read, edit, write, and file management through natural language commands.

README

Edit your real Overleaf projects by talking to Claude or ChatGPT. No copy-paste, no downloading files, and every change lands in Overleaf as a real Git commit.

milatexai.com · Works with Claude and ChatGPT · Open source (AGPL-3.0)

MiLatexAI is a hosted, remote MCP server that connects your AI assistant to your Overleaf projects over Overleaf's own Git integration. Ask "tighten my introduction" or "add a related-work paragraph citing Smith 2021" and the edit is committed and pushed to Overleaf instantly, visible in your project history where you can review the diff or revert it.

The internal Python package is still named leafbridge.


Use it (hosted, recommended)

Nothing to install. In Claude or ChatGPT, add MiLatexAI as a custom connector:

  1. Add the connector using the URL https://milatexai.com/mcp.
    • Claude: Settings, Connectors, Add custom connector, paste the URL, sign in.
    • ChatGPT: Settings, Connectors, enable Developer mode, Add custom connector, paste the URL, authorize. Works on ChatGPT including its free plan.
  2. Connect a project. Ask the assistant to connect a project (or run start_connect). You get a one-time link to a secure web form where you paste your Overleaf Git token. It never appears in the chat and is encrypted at rest.
  3. Talk to your paper. "List my files," "read the methods section," "why won't it compile," "rewrite this paragraph."

Full setup guide: milatexai.com/#get-started


Requirement: Overleaf Git integration (a paid Overleaf feature)

MiLatexAI works through Overleaf's Git integration, which is a premium (paid) feature on Overleaf. To use it on your own projects you need one of:

  • An Overleaf paid plan (Standard or Professional), or
  • A project shared with you from a premium or group/institutional account that includes Git integration.

Quick test: if you can create a Git token under Overleaf, Account Settings, Git Integration, you are good to go. Free-only Overleaf accounts cannot create Git tokens.

You will also need Claude or ChatGPT. Their free tiers work fine.


Pricing

  • Free: 1 connected project, 25 write-commits per month, unlimited reads. Runs on spare capacity (best-effort).
  • Pro, $4.99/mo: unlimited projects, unlimited write-commits, guaranteed access.

Reads are always free and unlimited. Overleaf's own subscription is separate and billed by Overleaf. Manage billing inside your assistant or at milatexai.com/account.


What it does

Tool What it does Write
list_projects, list_files List your projects, or a project's files No
read_file, get_sections, read_section Read files and navigate LaTeX structure No
check_compile Build with a bundled LaTeX engine (Tectonic) and report the exact errors No
get_history Recent Overleaf commits No
edit_file, write_file, delete_file, upload_file Change files, each an immediate Git commit and push Yes

Only writes count toward the monthly limit; reads are always free. Every write commits and pushes immediately and returns the commit hash, auditable in Overleaf's history. Paths are validated (no traversal), edits require an exact unique match, and the engine always pulls before pushing and never force-pushes.


Security and privacy

  • Your Overleaf Git token is entered on a secure web form, encrypted at rest, and never written to the chat.
  • MiLatexAI touches only the projects you explicitly connect, nothing else in your Overleaf account.
  • We do not store your document contents. We keep only your account email, your encrypted token, and a monthly commit counter.
  • The full connector is open source (AGPL-3.0), so you can audit exactly what it does.

MiLatexAI is not affiliated with, endorsed by, or sponsored by Overleaf or Digital Science, Anthropic, or OpenAI. Overleaf, Claude, and ChatGPT are trademarks of their respective owners, used only to describe compatibility.


Self-host

MiLatexAI is AGPL-3.0, so you can run the server yourself.

python -m venv .venv
. .venv/Scripts/activate          # or: source .venv/bin/activate
pip install -r requirements.txt
python -m pytest -q                # test suite

The hosted service runs leafbridge.asgi:app (Streamable HTTP MCP at /mcp) on Azure Container Apps, with WorkOS AuthKit for authentication and Stripe for billing. Self-hosted Overleaf Server Pro is supported via a git_url override on a project. Running a modified version as a network service requires publishing your changes (AGPL).


Status

  • Live at milatexai.com: hosted multi-user server, WorkOS sign-in, per-user encrypted tokens, server-side compile checks (Tectonic), Stripe billing, and website sign-in for managing your subscription.
  • Roadmap: connector-directory listings, multi-file smart edits, team plans.

License

AGPL-3.0-or-later. You may self-host freely; running a modified version as a network service requires publishing your changes.

from github.com/yasaminfayyaz/milatexai

Install LeafBridge in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install leafbridge

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add leafbridge -- uvx --from git+https://github.com/yasaminfayyaz/milatexai leafbridge

FAQ

Is LeafBridge MCP free?

Yes, LeafBridge MCP is free — one-click install via Unyly at no cost.

Does LeafBridge need an API key?

No, LeafBridge runs without API keys or environment variables.

Is LeafBridge hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install LeafBridge in Claude Desktop, Claude Code or Cursor?

Open LeafBridge on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare LeafBridge with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs