Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OVERLEAF_PROJECTNoPin to this alias, URL or id
OVERLEAF_GIT_HOSTNoFor self-hosted Server Prohttps://git.overleaf.com
OVERLEAF_MCP_HOMENoWhere token, registry and working copies live~/.overleaf-mcp
OVERLEAF_AUTO_PUSHNo0 commits locally; push_changes sends them1
OVERLEAF_GIT_TOKENNoToken via env instead of the token file
OVERLEAF_COMMIT_NAMENoLocal commit identity name
OVERLEAF_COMMIT_EMAILNoLocal commit identity email
OVERLEAF_SYNC_INTERVALNoSeconds before a pull is considered stale15
OVERLEAF_ALLOW_UNREGISTEREDNo1 lets attach_project take any id/URL0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Edits one Overleaf LaTeX project at a time, through Overleaf's Git integration.

Workflow

  1. If no project is attached, call list_projects and attach_project with the alias the user names. Only projects the user has registered can be attached; you cannot add new ones yourself.

  2. Orient with list_files and outline, then read_file before editing.

  3. Change text with edit_file (exact find/replace, like a code editor) or apply_edits for several changes to one file in a single commit. Use write_file only for new files or full rewrites.

  4. Every write is committed and pushed straight to Overleaf, so it appears in the user's Overleaf editor within seconds. The commit message is shown in Overleaf's history; make it say what changed.

Paths are relative to the project root, with forward slashes ('chapters/intro.tex'). Every result is JSON with an 'ok' flag; failures carry 'error' and 'remediation'. A CONFLICT means the user edited the same text in Overleaf at the same moment: re-read the file and redo the edit. This server does not compile LaTeX.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_projectsA

List the Overleaf projects the user has registered for use with Claude, and which one is attached.

attach_projectA

Attach an Overleaf project to this session. All other tools then act on this project only.

Clones the project locally, which takes a few seconds. Attaching a different project detaches the current one first.

detach_projectA

Detach the current project. Afterwards no project is reachable until attach_project is called again.

project_statusA

Show which project is attached, whether it is in sync with Overleaf, and the push mode.

list_filesA

List files in the attached project (recursively), with sizes.

read_fileB

Read a text file from the attached project.

search_projectA

Search the text files of the attached project. Returns matching lines with file and line number.

outlineA

Show the document structure: sectioning commands in reading order, following \input and \include.

project_historyB

Recent versions of the project (as recorded by Overleaf's Git bridge), newest first.

show_diffB

Show what one version of the project changed.

edit_fileA

Replace exact text in a file of the attached project and push it to Overleaf.

apply_editsA

Apply several find/replace edits to one file as a single Overleaf change.

write_fileA

Create a new text file, or replace a file's entire content, and push it to Overleaf.

Prefer edit_file for changes to existing files: it cannot accidentally drop text.
upload_fileA

Copy a file from this computer (figures, data, .bib) into the attached project and push it.

delete_fileA

Delete a file from the attached project. It stays recoverable from Overleaf's history.

move_fileA

Rename or move a file within the attached project. Does not update \input or \includegraphics references.

sync_projectA

Pull the latest changes made in Overleaf (by the user or collaborators) right now.

push_changesA

Push local commits that have not reached Overleaf yet (only needed when auto-push is off or a push failed).

discard_unpushedA

Throw away local commits that never reached Overleaf and reset to Overleaf's current version.

Prompts

Interactive templates invoked by user choice

NameDescription
attachAttach an Overleaf project to this session

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 19 tools

Disambiguation4/5

Most tools have crisp, non-overlapping purposes (attach/detach/status, sync/push/discard, read/search/outline), and descriptions explicitly steer between the closest pairs. The only real friction is the edit_file / apply_edits / write_file / upload_file cluster, where an agent must read descriptions carefully to pick correctly; project_status vs list_projects also lightly overlap.

Naming Consistency4/5

Nearly everything is consistent snake_case verb_noun (attach_project, read_file, push_changes, show_diff). A few tools invert to noun-first or bare nouns (outline, project_status, project_history), which is a minor deviation but still readable and predictable.

Tool Count4/5

19 tools is at the upper end of comfortable, and a few could be merged (e.g. status into list_projects, discard_unpushed as a mode flag). Still, each tool maps to a concrete action in the attach-edit-sync-history workflow, so the surface feels earned rather than padded.

Completeness4/5

Strong coverage of the core lifecycle: project attachment, file CRUD plus move/upload, search/outline, edit/apply_edits with push, plus sync, history and diff. Gaps exist around LaTeX-specific needs such as compiling/viewing the PDF or build log, and Overleaf collaboration features like comments and creating new projects, but agents can largely work around them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues