Back to Home
ywatanabe1989 icon

sci-writer

by ywatanabe1989

Overview

Manages and compiles scientific LaTeX manuscripts, including content creation, document analysis, versioning, and background job processing for AI assistants.

Installation

Run Command
python -m sciwriter.mcp_server

Environment Variables

  • SCITEX_WRITER_ENGINE
  • SCITEX_WRITER_AUTO_ORDER
  • SCITEX_WRITER_DRAFT_MODE
  • SCITEX_WRITER_DARK_MODE
  • SCITEX_WRITER_CITATION_STYLE
  • GIT_AUTO_COMMIT_ENABLED
  • GIT_TAG_ENABLED
  • GIT_PUSH_ENABLED
  • GIT_PUSH_REMOTE
  • GIT_PUSH_BRANCH
  • GIT_COMMIT_AUTHOR_NAME
  • GIT_COMMIT_AUTHOR_EMAIL
  • FAIL_ON_GIT_ERROR
  • YQ_DEBUG

Security Notes

The server enables LaTeX's `\write18` (shell escape) feature during compilation (`pdflatex -shell-escape` in compilation scripts). This means that any content submitted to section/figure/table handlers by an AI agent (or other client) can potentially execute arbitrary shell commands if it contains `\write18{malicious_command}`. While designed for trusted AI agents creating LaTeX content, this is a severe code execution vulnerability if deployed in an untrusted environment or if the AI agent itself is compromised. Pydantic validation for input content ensures type safety but does not filter for potentially malicious LaTeX commands. Direct `eval` calls in shell scripts are used with internally constructed commands, which reduces direct command injection risk through function arguments, but the `\write18` vector remains. The system also pulls external containers and packages, which introduces supply chain risks.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2026-01-18

Tags

LaTeXManuscriptCompilationProject ManagementAI Assistant