Overleaf MCP Server
Integrates with Overleaf's Git feature to manage Overleaf projects, including cloning projects, pulling changes, pushing edits, checking repository status, and configuring Git authentication.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Overleaf MCP Serverclone project 65a1b2c3d4e5f6 to /Users/me/research-paper"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overleaf MCP Server
An MCP server that integrates with Overleaf's Git feature, allowing you to manage Overleaf projects directly from your MCP-enabled environment (like Cursor).
Features
Clone Projects: Clone Overleaf projects to your local machine using the Project ID.
Pull Changes: Sync latest changes from Overleaf to your local copy.
Push Changes: Commit and push your local edits back to Overleaf.
Get Status: Check the status of your local repository (modified files, etc.).
Authentication Management: Securely configure and store your Overleaf Git credentials.
Related MCP server: Overleaf MCP Server
Installation
Clone this repository:
git clone https://github.com/juho127/overleafMCP.git cd overleafMCPInstall dependencies:
npm install"args": ["/path/to/overleafMCP/build/index.js"] } } }
### Other Clients (e.g., Cursor)
For other MCP-supported clients like Cursor:
1. Go to **Settings** > **Features** > **MCP Servers**.
2. Click **+ Add New**.
3. Enter the command to run the server:
- Command: `node`
- Args: `/absolute/path/to/overleafMCP/build/index.js` (Replace with your actual path)
## Usage
### Authentication
Before using the git tools, you should configure your authentication. You can find your Git token in your Overleaf Account Settings.
**Tool**: `configure_auth`
- `email`: Your Overleaf email address.
- `token`: Your Overleaf Git token (or password).
### Cloning a Project
**Tool**: `clone_project`
- `projectId`: The ID from your Overleaf project URL (e.g., `65a1b2c3d4e5f6...`).
- `localPath`: Absolute path where you want to clone the project.
### Managing Changes
- **Pull**: Use `pull_changes` to get updates from Overleaf.
- **Status**: Use `get_status` to see what files you've changed.
- **Push**: Use `push_changes` to save your work back to Overleaf.
## License
MITAvailable Tools
5 toolsclone_projectC
Clone an Overleaf project to a local directory
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the Overleaf project | |
| localPath | Yes | The local path to clone the project to (absolute path) | |
| No | Overleaf account email (optional if configured globally) | ||
| token | No | Overleaf git token (optional if configured globally) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden but only states the basic action without disclosing behavioral traits. It doesn't mention permissions needed, whether it overwrites existing files, error handling, or any side effects, which is a significant gap for a tool that likely involves file system operations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with zero waste. It's front-loaded with the core action and resource, making it highly efficient and easy to parse, which is ideal for conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of cloning a project (involving authentication and file operations), no annotations, and no output schema, the description is incomplete. It lacks details on success/failure outcomes, error cases, or interaction with sibling tools, leaving gaps for the agent to infer behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the schema already documents all parameters well. The description adds no additional meaning beyond implying the tool uses 'projectId' and 'localPath', but it doesn't compensate with extra context like format examples or constraints, meeting the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('clone') and resource ('Overleaf project') with the destination ('to a local directory'). It's specific about what the tool does, though it doesn't explicitly differentiate from sibling tools like 'pull_changes' or 'configure_auth', which keeps it from a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like 'pull_changes' or 'configure_auth'. The description lacks context about prerequisites or scenarios, such as whether this is for initial setup or ongoing sync, leaving the agent without usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
configure_authC
Configure global Overleaf credentials
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Overleaf account email | ||
| token | Yes | Overleaf git token |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Configure' implies a write/mutation operation, but the description doesn't state whether this persists credentials across sessions, requires specific permissions, has side effects (e.g., invalidating previous tokens), or what happens on success/failure. For a credential-setting tool with zero annotation coverage, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It's front-loaded with the core purpose ('Configure global Overleaf credentials') and avoids unnecessary elaboration. Every word earns its place, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a credential-configuration tool with no annotations and no output schema, the description is incomplete. It doesn't cover behavioral aspects (e.g., persistence, error handling), usage context, or what the tool returns (e.g., success confirmation, error messages). For a mutation tool that likely affects other sibling operations, more context is needed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with both parameters (email and token) clearly documented in the schema. The description adds no additional meaning beyond the schema—it doesn't explain format requirements (e.g., email validation, token generation source) or interdependencies between parameters. Baseline 3 is appropriate when the schema does all the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Configure global Overleaf credentials' clearly states the action (configure) and the resource (global Overleaf credentials). It distinguishes this from sibling tools like clone_project or push_changes by focusing on authentication setup rather than project operations. However, it doesn't specify what 'global' means in this context (e.g., system-wide vs. session-wide), which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., must be called before other tools that require auth), whether it should be used once per session or repeatedly, or what happens if credentials are invalid. With sibling tools like get_status that might also interact with Overleaf, there's no differentiation in usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_statusB
Get the status of the local project (git status and diff)
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | The local path of the project |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only operation ('Get') but doesn't confirm safety, specify if it requires authentication, mention rate limits, or describe the output format. This is inadequate for a tool with potential behavioral nuances.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose ('Get the status') and adds clarifying detail ('git status and diff'). There is no wasted verbiage, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (one parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks behavioral details and usage context, leaving gaps that could hinder an agent's effectiveness in a broader workflow.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the input schema already documents the single parameter 'localPath' with its type and description. The description adds no additional meaning about parameters beyond what the schema provides, resulting in a baseline score of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Get') and resource ('status of the local project'), and it elaborates on what 'status' includes ('git status and diff'). However, it doesn't explicitly differentiate from sibling tools like 'clone_project' or 'pull_changes', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a git repository), exclusions, or comparisons to siblings like 'pull_changes' for updates. This leaves the agent with minimal context for decision-making.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
pull_changesC
Pull latest changes from Overleaf for a local project
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | The local path of the project |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Pull latest changes') but does not describe what this entails (e.g., whether it overwrites local files, requires authentication, handles conflicts, or has side effects). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and efficiently conveys the essential information, earning a perfect score for conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a mutation operation with no annotations and no output schema), the description is inadequate. It lacks details on behavior, error handling, or what the tool returns, leaving the agent with insufficient information to use it effectively in context with sibling tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, with the parameter 'localPath' fully documented in the schema. The description does not add any additional meaning or context about the parameter beyond what the schema provides, such as format examples or constraints, so it meets the baseline score when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Pull latest changes') and the target resource ('from Overleaf for a local project'), which is specific and actionable. However, it does not explicitly differentiate this tool from its sibling 'push_changes' or 'clone_project', which would be needed for a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'push_changes' or 'clone_project'. It lacks context about prerequisites (e.g., whether the project must already be cloned or configured) or exclusions, leaving the agent to infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
push_changesC
Commit and push changes to Overleaf
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | The local path of the project | |
| message | Yes | Commit message |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Commit and push changes' implies a write/mutation operation, it doesn't specify critical details like required permissions, whether it's destructive to remote data, error conditions, or typical response format. This leaves significant gaps for a tool that modifies remote state.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero wasted words. It's appropriately sized for a tool with two parameters and no complex behavioral nuances to explain, making it easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description is insufficient. It doesn't explain what 'changes' entail (e.g., staged files?), what happens on success/failure, or how it interacts with sibling tools. Given the complexity of a git-like operation, more context is needed for reliable use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting both parameters ('localPath' and 'message'). The description adds no additional parameter semantics beyond what the schema provides, so it meets the baseline score when schema coverage is high.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Commit and push changes') and the target resource ('to Overleaf'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'pull_changes' or 'get_status', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'pull_changes' or 'configure_auth'. It doesn't mention prerequisites (e.g., needing authentication or existing changes) or exclusions, leaving the agent to infer usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
- First observed
clone_project - First observed
configure_auth - First observed
get_status - First observed
pull_changes - First observed
push_changes
TDQS
Each tool has a clearly distinct purpose with no overlap: clone_project for initial setup, configure_auth for credentials, get_status for local state, pull_changes for syncing from remote, and push_changes for syncing to remote. The actions and targets are well-defined and unambiguous.
All tools follow a consistent verb_noun pattern with snake_case: clone_project, configure_auth, get_status, pull_changes, push_changes. The naming is predictable and readable throughout the set.
With 5 tools, this server is well-scoped for managing Overleaf projects locally. Each tool earns its place by covering essential operations for cloning, authentication, status checking, and bidirectional syncing, without being too sparse or bloated.
The toolset covers core workflows for local Overleaf project management: setup (clone, auth), status checking, and syncing (pull, push). Minor gaps might include project creation or deletion on Overleaf, but agents can work around this by using existing tools for most common tasks.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
A MCP server built for developers enabling Git based project management with project and personal…
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Persistent AI LaTeX workspace: edit and compile multi-file projects, export publication-ready PDFs.
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides access to Overleaf projects via Git integration, allowing Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.6150261MIT
- AlicenseNot gradedqualityDmaintenanceEnables access to Overleaf LaTeX projects through Git integration, allowing users to read files, analyze document structure, extract sections, and manage multiple projects through natural language commands.189MIT
- AlicenseBqualityDmaintenanceEnables MCP clients to manage Overleaf projects via Git sync, including listing, reading, writing, and syncing files.451MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides access to Overleaf projects via Git integration, enabling Claude and other MCP clients to read LaTeX files, analyze document structure, and extract content.131MIT
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/juho127/overleafMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server