MO

mjyoo2/overleafmcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

336 stars 44 forks Качество 73 Тренд 20MIT

mjyoo2/overleafmcp — это кандидат на MCP-сервер, импортированный из https://github.com/mjyoo2/overleafmcp.

Обзор

mjyoo2/overleafmcp — это кандидат на MCP-сервер, импортированный из https://github.com/mjyoo2/overleafmcp.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol), предоставляющий доступ к проектам Overleaf через интеграцию с Git. Это позволяет Claude и другим клиентам MCP читать файлы LaTeX, анализировать структуру документов, извлекать контент и записывать файлы из и в проекты Overleaf.

Особенности

  • 📄 Управление файлами: Перечисление, чтение и запись файлов из и в проекты Overleaf
  • 📋 Структура документа: Разбор разделов и подразделов LaTeX
  • 🔍 Извлечение контента: Извлечение отдельных разделов по заголовку
  • 📊 Краткое описание проекта: Получить обзор статуса и структуры проекта
  • 🏗️ Многопроектная поддержка: Управление несколькими проектами Overleaf

Быстрый старт (рекомендуется)

Нет клона, нет npm install. Добавьте этот блок в конфигурацию Claude Desktop и перезапустите Claude Desktop.

Местоположение конфигурационного файла

OS Путь
Windows %APPDATA%\Claude\claude_desktop_config.json
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Linux ~/.config/claude/claude_desktop_config.json

macOS / Linux

Windows — Claude Desktop на Windows нуждается в cmd /c, чтобы найти npx:

Перезапустите Claude Desktop. Инструменты overleaf должны появиться в 🔧 меню.

Многопроектная установка

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Overleaf MCP Server

An MCP (Model Context Protocol) server that provides access to Overleaf projects via Git integration. This allows Claude and other MCP clients to read LaTeX files, analyze document structure, extract content, and write files from and to Overleaf projects.

Features

  • 📄 File Management: List, read, and write files from and to Overleaf projects
  • 📋 Document Structure: Parse LaTeX sections and subsections
  • 🔍 Content Extraction: Extract specific sections by title
  • 📊 Project Summary: Get overview of project status and structure
  • 🏗️ Multi-Project Support: Manage multiple Overleaf projects

No clone, no npm install. Add this block to your Claude Desktop config and restart Claude Desktop.

Config file location

OS Path
Windows %APPDATA%\Claude\claude_desktop_config.json
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Linux ~/.config/claude/claude_desktop_config.json

macOS / Linux

{
  "mcpServers": {
    "overleaf": {
      "command": "npx",
      "args": ["-y", "@mjyoo2/overleaf-mcp"],
      "env": {
        "OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID",
        "OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN"
      }
    }
  }
}

Windows — Claude Desktop on Windows needs cmd /c to find npx:

{
  "mcpServers": {
    "overleaf": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@mjyoo2/overleaf-mcp"],
      "env": {
        "OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID",
        "OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN"
      }
    }
  }
}

Restart Claude Desktop. The overleaf tools should appear in the 🔧 menu.

Multi-Project Setup

The env-var Quick Start only handles a single project. For multiple projects, drop a projects.json file into the user config directory and skip the env block in your Claude Desktop config.

File location

OS Path
Windows %APPDATA%\overleaf-mcp\projects.json
macOS / Linux ~/.config/overleaf-mcp/projects.json (or $XDG_CONFIG_HOME/overleaf-mcp/projects.json if set)

File contents

{
  "projects": {
    "default": {
      "name": "Main Paper",
      "projectId": "...",
      "gitToken": "olp_..."
    },
    "thesis": {
      "name": "PhD Thesis",
      "projectId": "...",
      "gitToken": "olp_..."
    }
  }
}

Claude Desktop config — same as Quick Start but no env block:

{
  "mcpServers": {
    "overleaf": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@mjyoo2/overleaf-mcp"]
    }
  }
}

(Drop cmd /c on macOS / Linux.)

Reference a specific project in tool calls with projectName:

Use read_file with filePath: "main.tex", projectName: "thesis"
Открыть полный README на GitHub

Установка

npx -y @mjyoo2/overleaf-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "overleaf": { "command": "npx", "args": ["-y", "@mjyoo2/overleaf-mcp"], "env": { "OVERLEAF_PROJECT_ID": "YOUR_OVERLEAF_PROJECT_ID", "OVERLEAF_GIT_TOKEN": "YOUR_OVERLEAF_GIT_TOKEN" } } } }