Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Edit your real Overleaf projects, plus GitHub, GitLab, Bitbucket, and self-hosted Git repositories, by talking to Claude or ChatGPT. No copy-paste, no downloading files, and every change lands on your default branch 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 and any GitHub, GitLab, Bitbucket, or allowlisted self-hosted Git repository. Ask "tighten my introduction" or "add a related-work paragraph citing Smith 2021" and the edit is committed and pushed to the repository's default branch instantly, visible in your Git history where you can review the diff or revert it. (There's no pull-request flow or branch picker yet.)
The internal Python package is still named
leafbridge.
Nothing to install. In Claude or ChatGPT, add MiLatexAI as a custom connector:
https://milatexai.com/mcp.
start_connect). You get a one-time link to a secure web form where you paste your repository URL and Git access token. It never appears in the chat and is encrypted at rest.Full setup guide: milatexai.com/#get-started
You connect a repository by pasting its URL and an access token. What that takes depends on the host:
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 Overleaf projects you need one of:
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.
GitHub, GitLab, Bitbucket, or self-hosted Git: no paid plan needed. Any repository you can push to works with a free access token: a GitHub fine-grained PAT with Contents read/write, a GitLab project or personal access token, or a Bitbucket app password. Self-hosted HTTPS Git repos are supported when allowlisted.
You will also need Claude or ChatGPT. Their free tiers work fine.
Reads are always free and unlimited. If you connect Overleaf, its own subscription is separate and billed by Overleaf; GitHub, GitLab, and Bitbucket need only a free access token. Manage billing inside your assistant or at milatexai.com/account.
| 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 commits on the default branch | 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 to the default branch and returns the commit hash, auditable in your repository's history. Paths are validated (no traversal), edits require an exact unique match, and the engine always pulls before pushing and never force-pushes.
MiLatexAI is not affiliated with, endorsed by, or sponsored by Overleaf or Digital Science, GitHub, GitLab, Bitbucket, Anthropic, or OpenAI. Overleaf, GitHub, GitLab, Bitbucket, Claude, and ChatGPT are trademarks of their respective owners, used only to describe compatibility.
MiLatexAI is AGPL-3.0, so you can run the server yourself.
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).
AGPL-3.0-or-later. You may self-host freely; running a modified version as a network service requires publishing your changes.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/milatexai)<a href="https://allmcps.com/mcp/milatexai"><img src="https://allmcps.com/api/badge/milatexai?style=directory" alt="Milatexai on AllMCPs" /></a>