Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.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
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).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
.mcp.json (project) or %USERPROFILE%\.claude.json (global).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
.vscode\mcp.json.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
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.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
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.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.
| Name | Required | Description |
|---|---|---|
| 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 |