TO

tamirsida/overleaf_mcp

Developer tools

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

17 stars 7 forks 品質 74 トレンド 21MIT

Overleaf LaTeXプロジェクトの完全なCRUD操作を提供するモデルコンテキストプロトコル(MCP)サーバー。 AIアシスタントが、オーバーリーフプロジェクトでファイルを読み、編集、作成、削除できるようにします.

概要

Overleaf LaTeXプロジェクトの完全なCRUD操作を提供するモデルコンテキストプロトコル(MCP)サーバー。 AIアシスタントが、オーバーリーフプロジェクトでファイルを読み、編集、作成、削除できるようにします。 - : 信頼できる同期のためにオーバーリーフのGit統合を使用する - : 複数のプロジェクト間で設定と切り替える - : セクションベースの操作のためのドキュメント構造を理解します - : すべての書き込み操作のコミットとオーバーリーフにすぐにプッシュ - : ローカルリポジトリキャッシュで高速アクセス - Python 3.10 + - Git - Git統合(有料プランが必要です)でオーバーリーフアカウント 3. : - クリック (左上) - "同期" - クリック (既に生成されていない場合) - URL をコピー: [https://git:[email protected]/...] - トークンを抽出 (git と @ の間の部分) プロジェクトディレクトリにoverleaf config.jsonを作成します。 - macOS:~/ Library/Application Support/Claude/claude desktop config.json - Windows:%APPDATA%\Claude\claude desktop config.json - Linux:~/.config/Claude/claude desktop config.json.

概要(AI 翻訳)

Overleaf LaTeXプロジェクトの完全なCRUD操作を提供するモデルコンテキストプロトコル(MCP)サーバー。 AIアシスタントが、オーバーリーフプロジェクトでファイルを読み、編集、作成、削除できるようにします。

##特徴

##14 完全なプロジェクト管理のためのツール

| カテゴリー | ツール | 説明 | お問い合わせ |Create | [[T0] | LaTeXコンテンツやZIPファイルから新しいオーバーリーフプロジェクトを作成 | |【[T1] | 既存のプロジェクトに新しいファイルを追加 | |Read | [[T2] | 構成されている全てのプロジェクトを見る | | |【[[T3]】|オプション延長フィルタ付きリストファイル | | 〔read_file | 読み込みファイルの内容 | | [get_sections | パーズ・ラテックスの構造(チャプター、セクション、サブセクション) | |【get_section_content | 特定セクションのフルコンテンツ | |【[T7] | git commitの履歴を見る | | | 【[T8] | 変更点の比較 | |更新 | [[T9] | 外科的編集** - 特定のテキスト(old string → new string)を置き換える | |【[T10] | ファイルの全部を置換 | |【[T11] | タイトル別LaTeXセクションの更新 | | 【[T12] | オーバーリーフから最新の変更をご請求 |

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

README

以下は原文 README の抜粋です。原文を見る。

Overleaf MCP Server

A Model Context Protocol (MCP) server that provides full CRUD operations for Overleaf LaTeX projects. Enables AI assistants to read, edit, create, and delete files in your Overleaf projects.

Features

14 Tools for Complete Project Management

Category Tool Description
Create create_project Create new Overleaf projects from LaTeX content or ZIP files
create_file Add new files to existing projects
Read list_projects View all configured projects
list_files List files with optional extension filter
read_file Read file contents
get_sections Parse LaTeX structure (chapters, sections, subsections)
get_section_content Get full content of a specific section
list_history View git commit history
get_diff Compare changes between versions
Update edit_file Surgical edit - replace specific text (old_string → new_string)
rewrite_file Replace entire file contents
update_section Update a specific LaTeX section by title
sync_project Pull latest changes from Overleaf
Delete delete_file Remove files from projects

Key Capabilities

  • Git Integration: Uses Overleaf’s Git integration for reliable sync
  • Multi-Project Support: Configure and switch between multiple projects
  • LaTeX-Aware: Understands document structure for section-based operations
  • Auto-Push: All write operations commit and push to Overleaf immediately
  • Local Caching: Fast access with local repository cache

Installation

Prerequisites

  • Python 3.10+
  • Git
  • Overleaf account with Git integration (requires paid plan)

Install with pip

# Clone the repository
git clone https://github.com/YOUR_USERNAME/overleaf-mcp.git
cd overleaf-mcp

# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install
pip install -e .

Install with uv (faster)

git clone https://github.com/YOUR_USERNAME/overleaf-mcp.git
cd overleaf-mcp

uv venv
source .venv/bin/activate
uv pip install -e .

Configuration

Step 1: Get Your Overleaf Credentials

  1. Open your Overleaf project in the browser

  2. Get Project ID from the URL:

    https://www.overleaf.com/project/YOUR_PROJECT_ID
                                     ^^^^^^^^^^^^^^^^
    
  3. Get Git Token:

    • Click Menu (top-left)
    • Click Git under “Sync”
    • Click Generate token (if not already generated)
    • Copy the URL: https://git:[email protected]/...
    • Extract the token (the part between git: and @)

Step 2: Create Configuration File

Create overleaf_config.json in the project directory:

{
  "projects": {
    "my-thesis": {
      "name": "My PhD Thesis",
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "overleaf": { "command": "/path/to/overleaf-mcp/.venv/bin/python", "args": ["-m", "overleaf_mcp.server"], "cwd": "/path/to/overleaf-mcp", "env": { "OVERLEAF_CONFIG_FILE": "/path/to/overleaf-mcp/overleaf_config.json", "OVERLEAF_TEMP_DIR": "/path/to/overleaf-mcp/overleaf_cache" } } } }