Skip to main content
Glama
NVCLong
by NVCLong

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OVERLEAF_TOKENNoGit token for content I/O. Required unless token.txt exists in OVERLEAF_CONFIG_DIR.
OVERLEAF_SESSIONNoSession cookie for discovery. Optional.
OVERLEAF_BASE_URLNoDashboard host (self-hosted CE).https://www.overleaf.com
OVERLEAF_GIT_BASENoGit host (self-hosted CE).https://git.overleaf.com
OVERLEAF_CONFIG_DIRNoState directory.~/.config/overleaf-mcp
OVERLEAF_WORKSPACE_ROOTNoWhere setup_local puts folders.process.cwd()
OVERLEAF_DEFAULT_PROJECTNoName/ID used when projectName is omitted.
OVERLEAF_GIT_AUTHOR_NAMENoCommit identity.Overleaf MCP
OVERLEAF_GIT_AUTHOR_EMAILNoCommit identity.overleaf-mcp@localhost

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sync_projectsA

Refresh the project list from your Overleaf account (uses the session cookie). Run after creating a new project.

find_projectA

Fuzzy-search known projects by title or ID. Returns ranked matches with IDs and whether a local workspace exists.

session_statusA

Report auth state: git token present, session cookie present, last sync time, project count, workspace count.

list_projectsA

List all projects from the last sync (title, ID, last-modified, access level).

setup_localA

Clone a project into a visible local folder (full working tree: .tex, .cls, .bst, images, etc.) and register it so reads/writes route there.

pull_localA

git pull (--ff-only) the registered workspace to freshen it from Overleaf.

diff_localA

Show uncommitted changes in the registered workspace (unified diff + untracked files) for review before pushing.

push_localA

Stage (all, or the given paths), commit, and push the registered workspace back to Overleaf. Explicit — the only tool that pushes workspace edits.

list_version_historyA

Return git commit history for a project ({sha, author, date, message, changedFiles}). Uses the workspace if present, else a temp clone.

rollback_to_versionA

Restore a workspace to a prior commit as UNCOMMITTED changes (review with diff_local, then push_local). mode "restore" = git checkout ; "revert" = undo commits since .

list_filesA

List files in a project (workspace or temp clone), optionally filtered by extension.

read_fileC

Read a file from a project.

get_sectionsA

List LaTeX \section{…} headings in a file (title, level, line).

get_section_contentB

Extract the body of one LaTeX section by title.

status_summaryB

Overview of a project: file count, total size, source (workspace/temp), and dirty state if a workspace.

write_fileA

Write a whole file. With a workspace: writes only (review + push_local). Without: commits + pushes immediately (commitMessage required).

write_sectionB

Replace one LaTeX section body, preserving the heading. Same push semantics as write_file.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NVCLong/Overleaf-Connector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server