MO

mjyoo2/overleafmcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

340 stars 44 forks 品質 73 トレンド 21MIT

mjyoo2/overleafmcp は、https://github.com/mjyoo2/overleafmcp. からインポートされたMCPサーバー候補です。

概要

mjyoo2/overleafmcp は、https://github.com/mjyoo2/overleafmcp. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

Git統合を通じてOverleafプロジェクトへのアクセスを提供するMCP(Model Context Protocol)サーバーです。これにより、Claudeや他のMCPクライアントはLaTeXファイルを読み込み、ドキュメント構造を解析し、コンテンツを抽出し、OverleafプロジェクトからまたはOverleafプロジェクトへのファイルを書き込むことができます。

特徴

  • 📄 ファイル管理:Overleafプロジェクトからファイルのリスト、読み込み、書き込むこと
  • 📋 ドキュメント構造:LaTeXのセクションおよびサブセクションを解析する
  • 🔍 コンテンツ抽出:タイトルごとに特定のセクションを抽出
  • 📊 プロジェクト概要:プロジェクトの状況と構成の概要を入手
  • 🏗️ マルチプロジェクトサポート:複数のオーバーリーフプロジェクトの管理

クイックスタート(推奨)

クローンもnpm installもありません。このブロックをClaude Desktopの設定に追加し、Claude Desktopを再起動してください。

設定ファイルの場所

OS 経路
ウィンドウズ %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 — Windows版Claude Desktopはcmd /cでnpxを探す必要があります:

Claude Desktopを再起動してください。メニューに🔧overleafツールが表示されるはずです。

マルチプロジェクトセットアップ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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"
GitHub で README 全文を見る

インストール

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" } } } }