Optical Context MCP

v0.1.5
io.github.ChrBoebel/optical-context-mcp Checked 1 day ago Published 2 months ago

Compress OCR-heavy PDFs into dense packed images so agents can work with long visual documents.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add optical-context-mcp -- uvx optical-context-mcp==0.1.5
Add to claude_desktop_config.json
{
  "mcpServers": {
    "optical-context-mcp": {
      "args": [
        "optical-context-mcp==0.1.5"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "optical-context-mcp": {
      "args": [
        "optical-context-mcp==0.1.5"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "optical-context-mcp": {
      "args": [
        "optical-context-mcp==0.1.5"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.optical-context-mcp]
command = "uvx"
args = ["optical-context-mcp==0.1.5"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: compress_pdf, get_job_manifest, get_packed_images.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json