Skip to content
VS Code

ocr-software.com OCR for VS Code

io.github.ocr-software/ocr-software-mcp

Read PDFs and images with ocr-software.com: page count, job, text, Markdown, JSON, hOCR.

client:VS Code transport:stdio runtime:pypi

Install ocr-software.com OCR in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ocr-key",
      "description": "OCR_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ocr-base-url",
      "description": "OCR_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ocr-out-dir",
      "description": "OCR_OUT_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ocr-allowed-dir",
      "description": "OCR_ALLOWED_DIR",
      "password": true
    }
  ],
  "servers": {
    "ocr-software-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ocr-software-mcp"
      ],
      "env": {
        "OCR_KEY": "${input:ocr-key}",
        "OCR_BASE_URL": "${input:ocr-base-url}",
        "OCR_OUT_DIR": "${input:ocr-out-dir}",
        "OCR_ALLOWED_DIR": "${input:ocr-allowed-dir}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ocr-software.com OCR in other clients