# MagicTeX

> MagicTeX is an open-source MCP server. LaTeX editor for AI agents: live PDF preview, PDF comments that drive edits, git history. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/zoelinuts/magictex-mcp
- **MCP Registry name:** io.github.ZoeLinUTS/magictex
- **Listing updated:** 2026-07-27

## About

LaTeX editor for AI agents: live PDF preview, PDF comments that drive edits, git history

## Install

### Claude Code (Terminal)

```sh
claude mcp add magictex -- npx -y magictex-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "magictex": {
      "command": "npx",
      "args": [
        "-y",
        "magictex-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "magictex": {
      "command": "npx",
      "args": [
        "-y",
        "magictex-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "magictex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "magictex-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "magictex": {
      "command": "npx",
      "args": [
        "-y",
        "magictex-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "magictex": {
      "command": "npx",
      "args": [
        "-y",
        "magictex-mcp"
      ]
    }
  }
}
```

## FAQ

### Is MagicTeX free?

Yes. MagicTeX is open source, so you can use and self-host it for free.

### How do I add MagicTeX to Claude Code?

Run this command in your terminal: claude mcp add magictex -- npx -y magictex-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/magictex
