Skip to main content
Glama

MCP LaTeX 서버

LaTeX 파일 생성, 편집, 검증 및 컴파일을 위한 모델 컨텍스트 프로토콜(MCP) 서버입니다. FastMCP와 Pydantic으로 구축되어 타입 안전하고 구조화된 출력을 제공합니다.

주요 기능

  • 생성: 매개변수 또는 번들 템플릿(article, beamer, report)을 사용하여 LaTeX 문서 생성

  • 편집: 교체(replace), 삽입(insert), 추가(append), 앞에 추가(prepend) 작업을 통한 파일 편집

  • 읽기 및 목록: 보안 기본 디렉토리 내의 .tex 파일 읽기 및 목록 확인

  • 검증: 구문 검증 — 중괄호, 환경, 참조, 필수 선언 확인

  • 컴파일: pdflatex, xelatex 또는 lualatex를 사용하여 PDF로 컴파일

  • 리소스: latex:// URI를 통해 번들 템플릿 탐색 및 검색

Related MCP server: Unofficial Overleaf MCP Server

사전 요구 사항

  • Python 3.11.9 이상

  • LaTeX 배포판 (컴파일용):

    • Windows: MiKTeX 또는 TeX Live

    • macOS: MacTeX (brew install --cask mactex)

    • Linux: sudo apt install texlive-full (Debian/Ubuntu) 또는 sudo dnf install texlive-scheme-full (Fedora)

설치

uv 사용 (권장)

git clone https://github.com/RobertoDure/mcp-latex-server
cd mcp-latex-server
uv pip install -e .

pip 사용

git clone <repository-url>
cd mcp-latex-server
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate
pip install -e .

빠른 설정 (Windows)

python quick_setup.py

이 스크립트는 Python 버전을 확인하고, 종속성을 설치하며, 서버가 올바르게 가져오는지 확인하고, 선택적으로 Claude Desktop을 구성합니다.

구성

이 서버는 단일 환경 변수를 사용합니다:

변수

설명

기본값

LATEX_SERVER_BASE_PATH

모든 파일 작업을 위한 루트 디렉토리

. (현재 디렉토리)

도구에 전달되는 모든 파일 경로는 이 기본 디렉토리를 기준으로 해석됩니다. 외부 접근은 거부됩니다.

MCP 클라이언트 구성

Claude Desktop

claude_desktop_config.json에 추가하세요:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "latex-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-latex-server",
        "run",
        "latex_server.py"
      ],
      "env": {
        "LATEX_SERVER_BASE_PATH": "/path/to/your/latex/files"
      }
    }
  }
}

VS Code (GitHub Copilot)

작업 공간의 .vscode/mcp.json에 추가하세요:

{
  "servers": {
    "latex-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-latex-server",
        "run",
        "latex_server.py"
      ],
      "env": {
        "LATEX_SERVER_BASE_PATH": "${workspaceFolder}"
      }
    }
  }
}

도구

create_latex_file

매개변수를 사용하여 새 LaTeX 문서를 생성합니다.

매개변수

타입

기본값

설명

file_path

str

필수

.tex 파일 경로

document_type

`article

report

book

letter

beamer

minimal`

article

문서 클래

title

str

""

문서 제목

author

str

""

문서 작성자

date

str

\today

문서 날짜

content

str

""

본문 내용

packages

list[str]

[]

추가 LaTeX 패키지

geometry

str

""

여백 설정 (예: margin=1in)

create_from_template

번들 템플릿에서 문서를 생성합니다.

매개변수

타입

기본값

설명

file_path

str

필수

.tex 파일 경로

template

`article

beamer

report`

article

템플릿 이름

edit_latex_file

기존 LaTeX 파일을 편집합니다.

매개변수

타입

기본값

설명

file_path

str

필수

파일 경로

operation

`replace

insert_before

insert_after

append

prepend`

필수

편집 작업

new_text

str

필수

삽입하거나 교체할 텍스트

search_text

`str

null`

null

찾을 텍스트 (교체/삽입 시 필수)

line_number

`int

null`

null

1부터 시작하는 줄 번호 (search_text 대신 사용 가능)

read_latex_file

.tex 파일의 내용을 읽고 반환합니다.

매개변수

타입

기본값

설명

file_path

str

필수

파일 경로

list_latex_files

디렉토리 내의 모든 .tex 파일 목록을 가져옵니다.

매개변수

타입

기본값

설명

directory_path

str

.

검색할 디렉토리

recursive

bool

false

하위 디렉토리 검색 여부

validate_latex

LaTeX 구문을 확인합니다: 필수 선언, 괄호 균형, 환경 일치, 정의되지 않은 참조 확인.

매개변수

타입

기본값

설명

file_path

str

필수

파일 경로

get_latex_structure

문서 구조(클래스, 제목, 작성자, 패키지 및 섹션 계층 구조)를 추출합니다.

매개변수

타입

기본값

설명

file_path

str

필수

파일 경로

compile_latex

.tex 파일을 PDF로 컴파일합니다 (참조/목차를 위해 엔진을 두 번 실행).

매개변수

타입

기본값

설명

file_path

str

필수

파일 경로

engine

`pdflatex

xelatex

lualatex`

pdflatex

LaTeX 엔진

리소스

URI

설명

latex://templates

사용 가능한 번들 템플릿 목록

latex://template/{name}

특정 템플릿의 내용 가져오기

테스트

MCP Inspector로 테스트하세요:

uv run mcp dev latex_server.py

또는 포함된 테스트 모음을 실행하세요:

python test_server.py

문제 해결

서버가 시작되지 않음 — Python 3.10 이상(python --version)인지 확인하고 mcp가 설치되었는지 확인하세요(pip list | grep mcp).

컴파일 실패 — LaTeX 배포판이 PATH에 있는지 확인하세요(pdflatex --version). 누락된 경우 MiKTeX 또는 TeX Live를 설치하세요.

"Access denied" 오류 — 요청된 파일 경로가 LATEX_SERVER_BASE_PATH 외부를 가리키고 있습니다. 상대 경로를 사용하거나 환경 변수를 조정하세요.

Claude 연결 불가 — MCP 구성의 파일 경로를 다시 확인하고, Claude Desktop을 재시작한 후 uv run mcp dev latex_server.py로 확인하세요.

라이선스

MIT

Available Tools

8 tools
compile_latexB

Compile a LaTeX file to PDF using the specified engine.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .tex file to compile
engineNopdflatex

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYes
successYes
pdf_pathNo
log_outputNo
errorsNo

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions the compilation action but fails to disclose behavioral traits such as whether it overwrites existing PDFs, requires specific permissions, handles errors, or has rate limits. This leaves significant gaps for a tool that performs file operations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary details. 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.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema (which handles return values), the description is minimally complete for a compilation tool. However, with no annotations and incomplete parameter semantics, it lacks details on behavior and usage context, making it adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50% (only 'file_path' has a description). The description adds minimal value by implying 'engine' is used for compilation, but doesn't explain the differences between engine options (pdflatex, xelatex, lualatex) or provide additional context beyond the schema's enum. Baseline 3 is appropriate as the schema covers half the parameters adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Compile') and resource ('a LaTeX file to PDF') with the specific mechanism ('using the specified engine'). It distinguishes from siblings like 'validate_latex' or 'read_latex_file' by focusing on compilation, but doesn't explicitly differentiate from all siblings (e.g., 'create_latex_file' might be related).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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 'validate_latex' for checking syntax or 'create_latex_file' for initial creation. The description implies usage after a LaTeX file exists, but lacks explicit context or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

create_from_templateB

Create a LaTeX document from a bundled template file.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath for the new .tex file
templateNoarticle

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYesAbsolute path to the file
successYes
messageYes
contentNoFile content if applicable

TDQS

B3.1/5.0
Behavior2/5

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 states the creation action but lacks critical behavioral details: whether this overwrites existing files, what permissions are required, how errors are handled, or what the output contains. For a file creation 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, with every word earning its place in conveying the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema (which handles return values), the description's main gaps are in behavioral transparency and parameter semantics. However, for a file creation tool with no annotations and incomplete parameter documentation, the description should provide more context about file system interactions and template specifics to be fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50% (only 'file_path' has a description), so the description must compensate. It mentions 'bundled template file' which hints at the 'template' parameter's purpose, but doesn't explain the enum values or their differences. The description adds some context but doesn't fully compensate for the schema's coverage gap, warranting a baseline score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Create a LaTeX document') and the resource ('from a bundled template file'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'create_latex_file' (which likely creates from scratch rather than from templates), leaving room for improvement in sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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. There's no mention of prerequisites, when-not-to-use scenarios, or explicit alternatives among the sibling tools (e.g., 'create_latex_file' for non-template creation). This leaves the agent without contextual usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

create_latex_fileC

Create a new LaTeX document with specified content and structure.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath for the new .tex file (relative to base dir)
document_typeNoarticle
titleNo
authorNo
dateNo\today
contentNo
packagesNoExtra LaTeX packages to include
geometryNoGeometry settings, e.g. 'margin=1in'

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYesAbsolute path to the file
successYes
messageYes
contentNoFile content if applicable

TDQS

C2.9/5.0
Behavior2/5

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 states the tool creates a new file but doesn't specify whether it overwrites existing files, requires specific permissions, handles errors, or provides any output details. This leaves significant gaps in understanding the tool's behavior for a mutation operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core action without unnecessary words. It directly states the tool's purpose, making it easy to parse and understand quickly, with no wasted verbiage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 8 parameters, low schema coverage (38%), no annotations, and sibling tools that could cause confusion, the description is insufficient. It lacks details on behavior, usage context, and parameter meanings, making it incomplete despite the presence of an output schema that might cover return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description mentions 'specified content and structure', which loosely relates to parameters like 'content' and 'document_type', but adds minimal semantic value beyond the schema. With low schema description coverage (38%), the description doesn't adequately compensate by explaining undocumented parameters such as 'geometry' or 'packages', resulting in only marginal improvement over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Create' and resource 'LaTeX document' with scope 'with specified content and structure', making the purpose evident. However, it doesn't differentiate from sibling tools like 'create_from_template' or 'edit_latex_file', which could create ambiguity about when to use this specific creation method versus alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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 'create_from_template' or 'edit_latex_file'. It lacks context about prerequisites, such as whether the file path must be unique or if existing files are overwritten, leaving the agent without clear usage instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

edit_latex_fileB

Edit an existing LaTeX file by replacing, inserting, or appending content.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .tex file to edit
operationYesType of edit operation
new_textYesText to insert or replace with
search_textNoText to search for (required for replace/insert_before/insert_after)
line_numberNo1-based line number (alternative to search_text for insert operations)

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYesAbsolute path to the file
successYes
messageYes
contentNoFile content if applicable

TDQS

B3.1/5.0
Behavior2/5

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 mentions editing operations but fails to describe critical traits like file system effects (e.g., overwriting, backup behavior), error handling (e.g., if file doesn't exist), or LaTeX-specific considerations (e.g., syntax validation). This leaves significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary words. Every part ('Edit an existing LaTeX file by replacing, inserting, or appending content') directly contributes to understanding the tool's function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (5 parameters, mutation operations) and the presence of an output schema (which reduces need to explain returns), the description is minimally adequate. However, with no annotations and incomplete behavioral context, it doesn't fully compensate for the gaps in a file-editing tool, keeping it at a baseline level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds no parameter-specific meaning beyond implying general editing operations, which aligns with the schema's 'operation' enum. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Edit') and resource ('an existing LaTeX file'), and specifies the types of operations ('replacing, inserting, or appending content'). However, it doesn't explicitly differentiate from sibling tools like 'create_latex_file' or 'read_latex_file' beyond the 'existing' qualifier, which is why it doesn't reach a perfect 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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 'create_latex_file' for new files or 'read_latex_file' for viewing. It lacks explicit when/when-not instructions or named alternatives, leaving usage context implied at best.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_latex_structureA

Extract document structure: class, title, author, packages, and section hierarchy.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .tex file to analyze

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYes
document_classNo
titleNo
authorNo
packagesNo
sectionsNo

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the tool's behavior as an extraction operation (implying read-only, non-destructive), but doesn't add details like error handling, performance, or output format. With no annotations, this is a minimal but adequate disclosure, scoring 3 as it meets the baseline for a read operation without rich context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the key action ('Extract document structure') and lists specific elements concisely. Every word earns its place with no redundancy or fluff, making it highly readable and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (single parameter, read-only extraction), high schema coverage, and presence of an output schema (which handles return values), the description is reasonably complete. It clearly states what the tool does and what it extracts, though it could benefit from more behavioral context (e.g., error cases). The output schema reduces the need for return value explanation, making this adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the single parameter 'file_path' well-documented in the schema. The description doesn't add any parameter-specific semantics beyond what the schema provides (e.g., no details on file format constraints or path resolution). Baseline is 3 when schema coverage is high, and the description doesn't compensate further.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

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 ('Extract') and resource ('document structure'), listing the specific elements extracted (class, title, author, packages, section hierarchy). It distinguishes from siblings like 'read_latex_file' (which likely reads raw content) or 'validate_latex' (which checks syntax), but doesn't explicitly name alternatives, keeping it at 4.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for analyzing LaTeX files to get structured metadata, suggesting it's for inspection rather than editing or validation. However, it doesn't explicitly state when to use this tool versus alternatives like 'read_latex_file' (for raw content) or 'validate_latex' (for syntax checks), nor does it mention prerequisites or exclusions, so it's only implied context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_latex_filesB

List all .tex files in a directory.

ParametersJSON Schema
NameRequiredDescriptionDefault
directory_pathNoDirectory to search.
recursiveNoSearch subdirectories

Output Schema

ParametersJSON Schema
NameRequiredDescription
directoryYes
filesNo

TDQS

B3.1/5.0
Behavior2/5

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 but doesn't cover important traits like whether it's read-only (implied but not explicit), error handling for invalid paths, performance considerations for large directories, or output format details. This leaves significant gaps for a tool that interacts with the file system.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence that efficiently conveys the core functionality without any fluff. It's front-loaded with the essential action and resource, making it highly concise and well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (simple file listing), 100% schema coverage, and the presence of an output schema (which handles return values), the description is minimally complete. However, it lacks context on behavioral aspects like error cases or performance, which could be important for robust agent use, keeping it at an adequate but not fully helpful level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with clear documentation for both parameters ('directory_path' and 'recursive'). The description adds no additional parameter semantics beyond what the schema provides, such as explaining path formats or recursion depth limits, so it meets the baseline for adequate but unenriched coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('.tex files in a directory'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_latex_structure' or 'read_latex_file', which might also involve listing or accessing LaTeX files, so it falls short of 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.

Usage Guidelines2/5

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 sibling tools like 'get_latex_structure' for structural analysis or 'read_latex_file' for content access, leaving the agent to guess based on context alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

read_latex_fileB

Read and return the contents of a LaTeX file.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .tex file to read

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYesAbsolute path to the file
successYes
messageYes
contentNoFile content if applicable

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but offers minimal behavioral context. It states the basic operation but doesn't disclose important traits like error handling (e.g., what happens if the file doesn't exist), file size limitations, encoding considerations, or whether it reads binary or text content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at just one sentence with zero wasted words. It's front-loaded with the core purpose and doesn't include any unnecessary information, making it efficient for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simple nature (single parameter, read-only operation) and the presence of an output schema, the description is minimally adequate. However, for a file reading tool with no annotations, it should ideally mention basic behavioral aspects like error conditions or return format expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'file_path' well-documented in the schema. The description doesn't add any meaningful parameter semantics beyond what the schema already provides, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Read and return the contents') and resource ('a LaTeX file'), making the tool's purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_latex_structure' or 'list_latex_files', which might also involve reading LaTeX files in different ways.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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 when this tool is appropriate (e.g., for raw content retrieval) versus when to use siblings like 'get_latex_structure' (for structural analysis) or 'compile_latex' (for processing).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

validate_latexB

Perform LaTeX syntax validation (structure, braces, environments, references).

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .tex file to validate

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYes
validYes
issuesNo

TDQS

B3.1/5.0
Behavior2/5

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 tool performs validation but does not describe what happens during validation (e.g., error reporting, success indicators, side effects like file modifications). It also omits details on permissions, rate limits, or output format, leaving significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core action ('Perform LaTeX syntax validation') and elaborates concisely on the validation scope. Every word earns its place, with no redundant or vague phrasing, making it highly readable and to the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (validation of LaTeX syntax), the description is minimally adequate. It covers the purpose but lacks behavioral details and usage guidelines. The presence of an output schema means the description does not need to explain return values, but it still misses context on how validation works or when to use it, leaving room for improvement.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, fully documenting the 'file_path' parameter. The description does not add any semantic details beyond what the schema provides (e.g., it does not specify file format requirements or validation scope limitations). With high schema coverage, the baseline score of 3 is appropriate, as the description does not compensate but also does not detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

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 ('Perform') and resource ('LaTeX syntax validation'), and it details the validation scope (structure, braces, environments, references). However, it does not explicitly differentiate from sibling tools like 'compile_latex' or 'get_latex_structure', which might also involve LaTeX processing, so it falls short of 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.

Usage Guidelines2/5

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 does not mention prerequisites, such as needing an existing .tex file, or compare it to siblings like 'compile_latex' (which might also check syntax) or 'get_latex_structure' (which might analyze structure). This lack of contextual usage information limits its helpfulness.

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.

  1. 8 tool updatesv2.0.0
    • First observedcompile_latex
    • First observedcreate_from_template
    • First observedcreate_latex_file
    • First observededit_latex_file
    • First observedget_latex_structure
    • First observedlist_latex_files
    • First observedread_latex_file
    • First observedvalidate_latex

TDQS

A3.5/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no ambiguity: compile, create from template, create new file, edit file, get structure, list files, read file, and validate syntax. The descriptions reinforce unique functions, preventing misselection.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case (e.g., compile_latex, edit_latex_file). This predictability makes the set easy to navigate and understand.

Tool Count5/5

With 8 tools, the server is well-scoped for LaTeX document management. Each tool earns its place by covering essential operations like creation, editing, reading, validation, and compilation without bloat.

Completeness4/5

The toolset provides strong coverage for core LaTeX workflows, including CRUD operations and validation. A minor gap is the lack of tools for managing bibliographies or handling complex LaTeX errors, but agents can work around this with existing tools.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

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

Related MCP Servers

Latest Blog Posts

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/RobertoDure/mcp-latex-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server