LaTeX-Agent
Server Details
AI-assisted academic LaTeX workbench: import projects from zip/Git, read and edit files, compile to real PDFs with structured error fixes, SyncTeX round-trip, and paper library search & reading.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 37 tools
Most tools have tightly distinct scopes: compile/compile_status/compile_log are carefully separated, and write_file vs edit_file vs append_file vs upload_file come with explicit routing guidance. A few edges blur — file-level tools (read_file, extract_docx_text, read_paper) and project/version queries (list_versions, list_projects, get_git_status) rely on the description to disambiguate, and read_paper's instruction to 'call search_my_papers first' points at a tool that does not exist (only list_papers does), which invites misselection.
The set is overwhelmingly snake_case with a predictable verb_noun shape (list_files, create_project, archive_project, upload_paper, resolve_comment). Deviations are minor and still readable: bare 'compile', noun-style 'account_status', and a mix of get_/list_ prefixes (get_git_status, get_comment_thread vs list_comments, list_projects).
37 tools is heavy and sits well above the comfortable 3-15 range, spreading across files, compile, git, review, papers, sessions, and account. Each tool maps to a real capability and the platform scope is genuinely broad, but several niche entries (render_docx_preview, extract_docx_text, send_feedback, synctex_forward/backward) push the surface beyond what an agent can comfortably navigate.
Core workflows are covered end-to-end (create project, write/edit files, compile + poll + log, SyncTeX, git sync, review comments, paper library). Notable gaps remain: there is no delete_file or move/rename tool despite full create/read/update, no delete_project, and no tool to search the user's own paper library even though read_paper explicitly tells the agent to call one.
Publisher details
- Operator
- Sun Praise
- Operator website
- https://sun-praise.com
- Vendor relationship
- First-party
- Documentation
- https://latex-agent.sun-praise.com/en/help/mcp
- Privacy policy
- Not provided
- Trust center
- Not available
- Restrictions
- Requires a user API key (X-API-Key header) from a paid or trial account
Available Tools
37 toolsabandon_sessionAInspect
Abandon the project's parked AI session so a git push becomes visible in the editor. Projects that have used AI sessions keep their working-tree HEAD parked on a session/* branch forever; a git push lands in the mirror and fast-forwards main, but the editor still reads the months-old session baseline. Call this right after pushing to hand the HEAD back to the default branch: the session tip plus any dirty files are frozen into a backup ref first (recoverable), then the working tree is hard-reset to the default branch and the editor reloads. Failure modes keep the session active and retryable and come back as reason= discriminators: no_active_session (no parked session row), head_kept (another live session is still using the workspace).
Inputs: project_id (required). Returns: result
account_statusAInspect
Report the caller's own account status: unique_code (the claim credential — show it to the user and remind them to keep it), subscription tier, and for anonymous identities the expiry date, days_until_expiry and the shared anonymous daily compile quota. Use after onboarding to report status, or whenever the user asks about their account/quota/expiry.
Inputs: no named parameters. Returns: result
adopt_sessionAInspect
Adopt the project's parked AI session: merge its branch back into the default branch and hand the HEAD over, so the editor sees both the session's changes and any pushed commits. Use instead of abandon_session when the session's work should be kept. On conflict nothing is changed and the conflict file list is returned; failure modes keep the session active and retryable and come back as reason= discriminators (conflict / head_kept / head_mismatch — resolve in the web app, or fall back to abandon_session).
Inputs: project_id (required). Returns: result
append_to_fileAInspect
Add content to the end of an existing file without restating what is already in it. Use this for adding bibliography entries, appending a section, or extending a log — it needs no anchor text and cannot disturb the existing content.
Inputs: path (required), content (required), project_id (required), description. Returns: result
archive_projectAInspect
Archive a project: hide it from the default list_projects listing and stop counting it against the project quota. Reversible via unarchive_project — files, compile and review keep working, so nothing is destroyed. Use for empty/abandoned projects the user wants out of their list.
Inputs: project_id (required). Returns: result
compileAInspect
Submit an asynchronous LaTeX compile job and return immediately with its job_id (the compile keeps running on the server). Then you MUST poll compile_status with that job_id until status becomes succeeded/failed/cancelled. compile_status waits up to 5 seconds server-side; call it again directly without waiting yourself; cancelled means the user already cancelled the job — do not keep polling and do not retry the compile. Supports xelatex, pdflatex, and lualatex (engine 'auto' honors the entry file's '% !TeX program' magic comment). SUBMITS an async job: returns job_id immediately — poll compile_status(job_id) for the outcome and pdf_url.
Inputs: project_id (required), engine, filename. Returns: result
compile_logAInspect
Read the raw engine log (output.log) of the project's last compile. Use after a failed compile when the structured errors lack a file/line (e.g. only a generic latexmk note): the log carries the engine's ! <error> / l.<line> <source> blocks plus the surrounding context needed to locate the failure. Returns the log tail (64KB cap) or exists=false when no log has been produced yet.
Inputs: project_id (required). Returns: result
compile_statusAInspect
Two modes. WITHOUT job_id: return the project's LATEST compile state (no compile is submitted) — compile_state carries is_fresh_green / last_attempt_result; use this FIRST when you need to know whether the project compiles or what the last attempt concluded, and pair it with compile_log for the raw error log. WITH job_id: poll the asynchronous compile job returned by the compile tool; waits up to 5 seconds server-side for a terminal status. Call again directly without waiting yourself if still running. Returns status running/succeeded/failed/cancelled plus the result anchors (pdf_url, errors, warnings, engine) once terminal. cancelled means the user cancelled the job — do not keep polling or retry the compile. In the job_id mode the terminal payload also carries compile_state (state_seq, last_success_seq, is_fresh_green): the SAME row the user's compile badge shows. Treat is_fresh_green=true as the only evidence that the current files compile — a success whose last_success_seq lags state_seq means the files changed after that compile; do not tell the user it compiles until a fresh compile is green. If status is still running after about 2 minutes of polling, stop polling and tell the user the compile is taking unusually long.
Inputs: job_id. Returns: result
create_git_tokenAInspect
Mint (or rotate) the HTTP git token for one of your projects so the human user can work on it locally with git (clone/push/pull over HTTP). Use when the user wants to continue a project created or synced through this MCP client from their local machine. The token is shown exactly once — hand it to the user, do not store it. Minting again rotates: the previous token is revoked.
Inputs: project_id (required). Returns: result
create_projectAInspect
Create a new personal project (optionally from an official template's template_id) and get its project_id. Subject to the same per-plan project quota as the web app. If the paper source already lives in a git repository, create (or pick) the project here, then have the user attach the repository and pull it with sync_from_git instead of writing files one by one.
Inputs: name (required), template_id. Returns: result
create_versionAInspect
Snapshot the project's current working tree as a named git version (the platform's version history). Call this BEFORE large or risky rewrites so the change can be rolled back or reviewed later; pass a short human-readable title (and an optional longer body) describing what this version captures. Returns the new commit_sha. Creating a version also resolves any active pending review change as committed into the snapshot — its edits are preserved in the version, never reverted (#7230). Read-only sessions cannot call this.
Inputs: project_id (required), body, title. Returns: result
edit_fileAInspect
Replace one exact snippet inside an existing file, leaving the rest byte-for-byte untouched. Prefer this over write_file for any change to a file that already exists. old_string must appear exactly once — include enough surrounding lines to make it unique — and must be copied verbatim from read_file, including indentation.
Inputs: path (required), new_string (required), old_string (required), project_id (required), +1 more. Returns: result
extract_docx_textAInspect
Read the TEXT CONTENT of a Word document (.docx) in the project — headings, paragraphs, tables and lists in document order. read_file cannot decode .docx (binary zip format); use this tool instead when the user asks you to convert or reference a Word document. Returns isError with an honest note when no text can be extracted — never invent content.
Inputs: path (required), project_id (required). Returns: result
get_comment_threadBInspect
One review comment with its reply thread (full anchor + replies with authors).
Inputs: comment_id (required). Returns: result
get_git_statusAInspect
Read this project's git state: which remote repository is attached (URL), current branch, HEAD sha, ahead/behind counts, uncommitted changes, and oversized files. Read this before sync_from_git to decide whether a pull is needed or the remote still has to be configured (web app settings / REST PUT /api/v1/user/git/projects/<project_id>/config).
Inputs: project_id (required). Returns: result
list_commentsAInspect
List a review round's comments with full anchor fields (target_type/file/lines or pdf_page/pdf_rect, author, severity, resolved, content). Filter by resolved; pdf_region anchors pair with synctex_backward to locate the source line.
Inputs: round_id (required), resolved. Returns: result
list_filesCInspect
List the project file structure as a JSON tree
Inputs: project_id (required). Returns: result
list_papersAInspect
List the user's own paper library with structured metadata (id/title/status/folder/tags, up to 50). Use the returned id with read_paper to extract text by page.
Inputs: no named parameters. Returns: result
list_projectsAInspect
List the projects the user can open, with metadata (id/name/updated_at/category/main_file, up to 50, most recent first). Use to resolve a project name to its id before calling project-scoped tools. Shared/team projects the user is a member of are included, each carrying owner_type/team_id and the user's role (#5507); no file contents. Archived projects (#5773) are hidden unless include_archived=true, which also adds an archived_at field per entry. If the user wants a local/remote git repository reflected in a project, resolve the id here, then see get_git_status / sync_from_git.
Inputs: include_archived. Returns: result
list_review_roundsAInspect
List a project's review rounds (id/round_number/status/created_at). Visible to the project owner and project members; use list_comments with a round id.
Inputs: project_id (required). Returns: result
list_templatesAInspect
List official LaTeX templates (id/name/category/publisher, up to 100, newest first). Use to resolve a template name like 'IEEE' to a template_id for create_project.
Inputs: limit, search, category. Returns: result
list_versionsCInspect
List commit history for the project
Inputs: project_id (required), limit, since. Returns: result
read_fileCInspect
Read the content of a project file
Inputs: path (required), project_id (required). Returns: result
read_paperAInspect
Read the full text of a paper in the user's own paper library (uploaded PDFs). Text is extracted and page-numbered ([Page N]). Use this to answer questions about a specific paper the user uploaded. Call search_my_papers first when you only know a topic/title, not the paper id. Long papers are truncated; re-call with start_page/end_page to continue reading.
Inputs: paper_id (required), end_page, start_page. Returns: result
render_docx_previewAInspect
Render a Word document (.docx) in the project to per-page PNG images (written under /.docx-preview/), so you can study its VISUAL LAYOUT — heading levels, font styles, table/figure placement, margins — with analyze_image before replicating the formatting in LaTeX. Pair with extract_docx_text for the actual content. Requires the render-worker service; when it reports unavailable, fall back to extract_docx_text alone.
Inputs: path (required), project_id (required). Returns: result
reply_commentBInspect
Reply to a review comment (any active collaborator of the project). Empty text is rejected.
Inputs: text (required), comment_id (required). Returns: result
resolve_commentBInspect
Resolve (or un-resolve) a review comment. Only the round's student may toggle it (#4818 FR2).
Inputs: comment_id (required), resolved. Returns: result
search_papersCInspect
Search academic papers via OpenAlex (default) or Semantic Scholar. Use source="semantic_scholar" for broader AI/CS preprint coverage and citation-influence metrics (#3596).
Inputs: query (required), project_id (required), limit, source. Returns: result
send_feedbackAInspect
Submit feedback about the product from the user's own words — use this when the user expresses confusion, hits a difficulty, reports a bug, or suggests an improvement while working in this MCP client. Pass the user's message verbatim; do not summarize it.
Inputs: message (required), category (required), context_hint. Returns: result
sync_from_gitAInspect
Pull the configured remote git repository into this project's workspace — the same chain as the web app's pull button. Use when the user has a local/remote git repository they want reflected in this cloud project: they push it to GitHub/Gitee once and attach it to the project (web app settings, or REST PUT /api/v1/user/git/projects/<project_id>/config with the same X-API-Key), then call this tool to sync — file bytes never flow through the model context, unlike write_file/upload_file. Check get_git_status first to see the attached remote and how far behind the project is. Requires no unsaved local edits. Public HTTPS repositories need no credentials; a private one needs a GitHub/Gitee platform token added in the web app (other hosts: an SSH address with an SSH key bound in the web app). reason token_required means anonymous access was refused: the host answers the same for a private repository and for a wrong address, so check the URL first. reason address_blocked means the remote's host resolves to a private/local network address the platform refuses to reach, and reason network_error means it did not resolve at all or in time — in both the remote IS configured, so do not re-attach it; check the address with the user instead. reason credential_mismatch means the credentials the remote is bound to (a platform token) do not belong to its host — the user has to re-bind them in the web app. reason timeout means the pull ran out of its time budget (a large repository or a slow network) — the remote IS configured and nothing is wrong with it, so tell the user to try again later rather than re-attaching. Two 403/400 answers from the config endpoint are part of the X-API-Key contract, not your mistake: 403 GIT_CREDENTIAL_BINDING_REQUIRES_WEB — the key may not choose the user's ssh_key_id/platform_token_id (attach the remote without them); 400 GIT_CREDENTIAL_MISMATCH_REQUIRES_WEB — a legacy row binds a platform token to a host it may not serve, and only the user can re-select it in the web app. A PUT response with credentials_dropped: true means the new address started without the old one's credentials (push_strategy_downgraded says which automatic strategy was turned back to manual) — tell the user to bind credentials in the web app before expecting pushes or private pulls. The first sync into a project nobody has changed since create_project replaces its starter files with the remote's default branch (sync before opening it in the web editor, whose AI panel moves it onto a session branch). reason unrelated_history means the project has history of its own — check the remote URL, or create a new project and sync into that.
Inputs: project_id (required). Returns: result
synctex_backwardAInspect
Resolve PDF coordinates to source file and line via SyncTeX (PDF → source). Use after a compile to map a click position back to the .tex line. Requires a prior compile (needs output.synctex.gz).
Inputs: x (required), y (required), page (required), project_id (required), +1 more. Returns: result
synctex_forwardAInspect
Resolve a source file/line to the PDF highlight rectangle via SyncTeX (source → PDF). Returns page + x/y + width/height for positioning a highlight. Requires a prior compile.
Inputs: file (required), line (required), project_id (required), column, +1 more. Returns: result
unarchive_projectAInspect
Restore an archived project: it reappears in the default list_projects listing and counts against the project quota again. Pass include_archived=true to list_projects to find archived project ids.
Inputs: project_id (required). Returns: result
upload_fileAInspect
Write a binary asset (chart, figure, PDF) into the project from base64-encoded bytes — the only way to deliver an image for \includegraphics. Allowed extensions: png, jpg, jpeg, gif, webp, svg, pdf, zip, docx, xlsx, eps. Reachable over MCP up to ~22.5MB raw bytes per call — the /mcp transport body limit (30MiB) caps the base64 payload, and oversize calls are rejected by the transport layer with an opaque 413 before this tool runs; send larger assets through the web app. Text files still use write_file. For a whole directory or many binaries do NOT loop this tool — every byte would have to flow through your context (a single ~300KB figure already exceeds one model output); have the user attach the git repository to the project and pull it with sync_from_git instead.
Inputs: path (required), project_id (required), content_base64 (required), mime. Returns: result
upload_paperAInspect
Upload a PDF (base64-encoded, up to 20MB raw bytes) into the user's paper library. Use after search_papers when the user wants a found PDF in their library for read_paper. Returns the new paper_id.
Inputs: content_base64 (required), tags, filename, folder_id. Returns: result
validate_citationsCInspect
Validate citation completeness in LaTeX project
Inputs: project_id (required), bib_file. Returns: result
write_fileAInspect
Write a file's COMPLETE content, replacing whatever is there. Use this only to create a new file or to rewrite one from scratch. To change part of an existing file use edit_file, and to add to the end use append_to_file — rewriting a whole file to change a few lines makes every line show as modified in the diff, is charged for the unchanged content, and risks mistyping the parts you meant to keep. On session branches, successful writes create a pending review change that must be applied or discarded by the user.
Inputs: path (required), content (required), project_id (required), description. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceRemote MCP server that lets AI assistants read tracked competitive intelligence — competitor news, reviews, website changes, social posts and ads — and act on it by managing projects, competitors, battle cards, reports and canvases. Every answer carries a source and a date, and write actions only publish when explicitly shared.MIT
- AlicenseCqualityCmaintenanceCompetitor Monitor AI - MCP server providing AI-powered tools and automation by MEOK AI Labs112 npm46 PyPIMIT
- AlicenseAqualityDmaintenanceEnables brand visibility monitoring across major AI platforms like ChatGPT, Claude, Gemini, and Perplexity. It allows users to track visibility scores, analyze competitor data, and receive actionable insights to improve AI-generated brand recommendations.1611 npm1MIT

industrylens-mcpofficial
AlicenseNot gradedqualityCmaintenanceBrowse IndustryLens's published competitive-intelligence reports and head-to-head competitor comparisons from any AI agent — real, source-backed data.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.