overleaf-multi-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OVERLEAF_TOKEN | No | Git token for content I/O. Required unless token.txt exists in OVERLEAF_CONFIG_DIR. | |
| OVERLEAF_SESSION | No | Session cookie for discovery. Optional. | |
| OVERLEAF_BASE_URL | No | Dashboard host (self-hosted CE). | https://www.overleaf.com |
| OVERLEAF_GIT_BASE | No | Git host (self-hosted CE). | https://git.overleaf.com |
| OVERLEAF_CONFIG_DIR | No | State directory. | ~/.config/overleaf-mcp |
| OVERLEAF_WORKSPACE_ROOT | No | Where setup_local puts folders. | process.cwd() |
| OVERLEAF_DEFAULT_PROJECT | No | Name/ID used when projectName is omitted. | |
| OVERLEAF_GIT_AUTHOR_NAME | No | Commit identity. | Overleaf MCP |
| OVERLEAF_GIT_AUTHOR_EMAIL | No | Commit identity. | overleaf-mcp@localhost |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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