Oleafly
Lets your AI agent read, edit, search and compile the LaTeX, Typst or Markdown project open in Oleafly.
1.1k stars on GitHubby OleaflyLicense AGPL-3.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Download the .mcpb file and open it with Claude Desktop.
Download the .mcpb file βReady! Now test it
Restart the app and paste one of these requests in the chat:
Compile my project and fix the first error.
Search the project for every use of the macro \todo.
What it is
Oleafly is a free, open-source editor for research writing in LaTeX, Typst and Markdown, with live collaboration and built-in AI agents. Its MCP server gives an outside AI client the same project tools, such as reading, editing, searching and compiling. oleafly mcp works with the app open or closed.
What it can do
- Read and edit the files of your project
- Search across the project
- Compile the project and see errors and the PDF
- Run through
oleafly mcpover stdio for Claude Code, Codex, Cursor and Gemini CLI - Run a local MCP server that listens on 127.0.0.1 only
- Install as an extension in Claude Desktop with oleafly.mcpb
When to use
- βΊWhen you want an AI to fix a LaTeX compile error in your paper
- βΊWhen you want an assistant to tighten the wording in a Typst or Markdown project
- βΊWhen you want checks for broken references or missing figures before you submit
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
paper-compileHelps Codex users compile a LaTeX paper into a PDF, fix build errors, and stop repeated failures for a rescue review instead of editing blindly.paper-compileHelps your agent compile a LaTeX paper into a PDF, fix the build errors, and check that the output is ready for submission.ml-paper-writingHelps your agent write publication-ready ML and AI papers for top conferences, with citation checks, LaTeX templates and venue checklists.Frequently asked questions
Is it free?
Yes. The readme says free forever, open source, with no Oleafly account and no tracking.
Which AI agents work inside it?
Claude Code, Codex CLI and a dozen more are listed in its catalog, or you can connect a hosted provider, any OpenAI-compatible endpoint or a local Ollama model.
Is AI required?
No. The readme says the editor, compiler, PDF, citations, proofreading and checks all work with AI off.
Can I review what the AI changes?
Yes. Every file change is a diff you can approve, and you can undo a single file or a whole turn.
Can I write with coauthors?
Yes. Live collaboration works through an Oleafly Server that you can install on a Linux machine with one command.
Is it finished software?
The readme marks it as beta.
If it does not work
- βΊMake sure the Oleafly project you want to work on is open, or point oleafly mcp at it.
- βΊRestart your AI app fully after adding the oleafly mcp command.
- βΊIf a project needs a full TeX distribution, switch it to latexmk with TeX Live, MacTeX, MiKTeX or TinyTeX.
5 new skills a week. 1 minute to read.