MagicTeX — a LaTeX editor for AI agents (Claude Code): live PDF preview, PDF comments that drive edits, Visual (WYSIWYG) mode, and git-tracked history. No local TeX install.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add magictex -- npx -y magictex-mcp~/.codex/config.toml
[mcp_servers.magictex]
command = "npx"
args = ["-y", "magictex-mcp"]
# codex mcp add magictex -- npx -y magictex-mcp~/.cursor/mcp.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"magictex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"magictex": {
"command": "npx",
"args": [
"-y",
"magictex-mcp"
]
}
}
}