npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@youzhijc/overleaf-paper-mcp

v1.1.3

Published

MCP server for writing, editing, compiling, and downloading academic LaTeX papers in Overleaf

Readme

overleaf-paper-mcp

MCP server for managing academic LaTeX projects in Overleaf: create projects, transfer files, compile documents, inspect compiler output, and download PDFs.

Install

Requirements: Node.js 20+ and Playwright Chromium.

npm install
npx playwright install chromium
npm run build

Run the published package with:

OVERLEAF_EMAIL="[email protected]" \
OVERLEAF_PASSWORD="yourpassword" \
npx -y @youzhijc/overleaf-paper-mcp

Configuration

Provide credentials as runtime environment variables; do not commit a .env file.

| Variable | Purpose | | --- | --- | | OVERLEAF_EMAIL | Overleaf login email. | | OVERLEAF_PASSWORD | Overleaf login password. | | OVERLEAF_DATA_DIR | Recommended absolute root for all MCP-managed local resources. Downloads are kept in workspace/; browser login state is kept in browser-data/. | | OVERLEAF_WORKSPACE_DIR | Legacy alternative for the workspace only. Use OVERLEAF_DATA_DIR for new configurations. |

Use absolute paths for local_path and zip_path when possible. Relative paths are accepted only inside OVERLEAF_DATA_DIR/workspace (or the legacy OVERLEAF_WORKSPACE_DIR). With OVERLEAF_DATA_DIR, all local state is kept below one directory:

OVERLEAF_DATA_DIR/
├── workspace/      # downloaded project files and PDFs
└── browser-data/   # Overleaf login session and browser cache

Do not upload or share browser-data/: it can contain your Overleaf login session. Delete workspace/ to clear downloads, browser-data/ to sign out, or the full data directory to reset the MCP.

Workflow

overleaf_list_files (optional)
→ overleaf_download_file
→ edit the local file
→ overleaf_upload_file (overwrite: true when replacing a file)
→ overleaf_compile
→ overleaf_download_pdf

overleaf_compile always inspects output.log: a rendered PDF does not prove that LaTeX completed without errors. If the log contains an error, it clears cached files and retries once; persistent errors return parsed diagnostics plus the compiler log. Successful results may still contain warnings.

overleaf_upload_file currently writes to the project root. To import a full project archive, use overleaf_create_project_from_zip.

Tools

| Tool | Purpose | | --- | --- | | ping | Check server availability. | | overleaf_login / overleaf_logout | Start or close the browser session. | | overleaf_list_projects / overleaf_open_project | Find or open a project. | | overleaf_create_project | Create an empty project. | | overleaf_create_project_from_zip | Create a project from a local ZIP archive. | | overleaf_list_files | List project files and paths. | | overleaf_download_file / overleaf_upload_file | Transfer one project file. | | overleaf_create_folder / overleaf_create_file | Create empty root-level items. | | overleaf_rename_file / overleaf_delete_file | Rename or delete a file. | | overleaf_compile | Compile and, after a failed retry, return LaTeX diagnostics and output.log. | | overleaf_download_pdf | Download the compiled PDF. |

Codex configuration

[mcp_servers.overleaf-paper-mcp]
command = "npx"
args = ["-y", "@youzhijc/overleaf-paper-mcp"]
env = {
  OVERLEAF_EMAIL = "[email protected]",
  OVERLEAF_PASSWORD = "yourpassword",
  OVERLEAF_DATA_DIR = "/absolute/path/to/your/overleaf-paper-mcp-data"
}
startup_timeout_sec = 120
tool_timeout_sec = 120

License

MIT