L

Lathe

by seayniclabs · io.github.seayniclabs/lathe

Enables AI assistants to inspect, convert, resize, crop, merge, extract and OCR local images, PDFs, audio and video entirely on the user's machine. Modules can be toggled individually, and all operations stay within a sandboxed working folder with atomic writes and no data sent anywhere.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-seayniclabs-lathe": {
      "command": "uvx",
      "args": [
        "lathe-mcp"
      ],
      "env": {
        "LATHE_CONFIG": "<VALUE>",
        "LATHE_OCR_LANG": "eng",
        "LATHE_MAX_FILE_MB": "500",
        "LATHE_OCR_ENABLED": "true",
        "LATHE_PDF_ENABLED": "true",
        "LATHE_WORKING_DIR": "<VALUE>",
        "LATHE_MEDIA_ENABLED": "true",
        "LATHE_IMAGES_ENABLED": "true"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
LATHE_CONFIG No Optional path to a config file. Lathe otherwise reads ~/.config/lathe/config.toml.
LATHE_OCR_LANG No Tesseract language code(s), e.g. eng or eng+fra. Default eng. Default: eng
LATHE_MAX_FILE_MB No Largest input file, in MB. Default 500. Default: 500
LATHE_OCR_ENABLED No Set to false to turn the ocr module off. Default true. Default: true
LATHE_PDF_ENABLED No Set to false to turn the pdf module off. Default true. Default: true
LATHE_WORKING_DIR No The folder Lathe reads from and writes to. Default: the folder the server starts in.
LATHE_MEDIA_ENABLED No Set to false to turn the media module off. Default true. Default: true
LATHE_IMAGES_ENABLED No Set to false to turn the images module off. Default true. Default: true

Similar servers