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 43 tools
Most tools target clearly distinct resources or actions, and the descriptions provide strong guidance. However, the compile/compile_status/compile_log trio plus compile_status's dual latest-state/polling mode creates some conceptual overlap, and git/version/paper tools have adjacent boundaries that could occasionally be confused.
Names are consistently lowercase snake_case and mostly follow verb_noun form (create_project, edit_file, list_comments, resolve_comment). A few tools deviate into noun or direction phrases such as account_status, compile_log, compile_status, and synctex_backward, but the set remains readable and predictable overall.
At 43 tools the surface is heavy for an agent to navigate and exceeds the typical well-scoped range by a wide margin. Although the server covers broad LaTeX workflows, several clusters (compile/status/log, review comments, SSH keys, project/version operations) could be consolidated or tiered to reduce cognitive load.
The surface covers the core lifecycle well: projects, files, compilation, SyncTeX, git sync/push, versions, papers, reviews, templates, citations, and document conversion. Some gaps remain, such as deleting or moving project files, deleting/renaming projects, cancelling a compile, and creating review rounds, but most can be worked around via archive, overwrite, or git workflows.
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
43 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
add_ssh_keyAInspect
Import an existing SSH private key the user already has (e.g. their local ~/.ssh/id_ed25519). Same validation as the web app's add-key form: OpenSSH-format RSA/Ed25519, no passphrase. The private key is encrypted at rest and never returned afterwards. Prefer generate_ssh_key unless the user explicitly wants to reuse an existing key.
Inputs: label (required), private_key (required). 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
attach_git_remoteAInspect
Attach a remote git repository to this project and optionally bind one of the user's own credentials: an SSH key (key_id from generate_ssh_key/add_ssh_key/list_ssh_keys) for ssh:// or git@host: addresses, or a GitHub/Gitee platform token for https:// addresses. Equivalent to the web app's git settings save. After attaching (and for public repos even without credentials), sync_from_git pulls the remote and push_git pushes to it. Only credentials owned by this user can be bound — referencing someone else's key_id fails as 'not found'.
Inputs: project_id (required), remote_url (required), ssh_key_id, default_branch, +1 more. 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
delete_ssh_keyAInspect
Delete one of the user's own SSH keys by key_id (find ids via list_ssh_keys). Projects currently bound to the key lose their binding automatically. Only own keys can be deleted.
Inputs: key_id (required). 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
generate_ssh_keyAInspect
Generate a new ed25519 SSH keypair for the user, server-side. Returns the PUBLIC key (register it with the git host, e.g. as a Gitea deploy key or a GitHub account key) plus the key_id needed to bind it via attach_git_remote. The private key is encrypted at rest and is never returned on any channel — there is no private-key paste step at all.
Inputs: label (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_ssh_keysAInspect
List the user's own SSH keys: key_id, label, key type, fingerprint, direction (outbound = platform uses it to reach external repos; inbound = direct-connect public key) and timestamps. Metadata only — private key material is never included in any form.
Inputs: no named parameters. 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
push_gitAInspect
Push this project's committed state to its attached remote — the same chain as the web app's push button (push strategy, repo lock and conflict semantics included; conflicts answer with a structured error, they are never force-resolved). Check get_git_status first: it shows the attached remote and how far ahead the project is.
Inputs: project_id (required), message. 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
- AlicenseAqualityBmaintenanceRevenue intelligence for complex B2B growth. Your agent builds the assets technical founders sell with, and prepares them for real buyer conversations.34260 npm2MIT
- AlicenseCqualityCmaintenanceCompetitor Monitor AI - MCP server providing AI-powered tools and automation by MEOK AI Labs118 npm39 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceSearches and analyzes competitor ads and content across Meta, Google, Instagram, TikTok, and YouTube with AI-powered creative analysis and cross-platform brand discovery.1MIT

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.