Skip to content
LangChain

Image to Text OCR for LangChain

io.github.sumitrmardy/image-to-text-ocr

OCR text from image URLs, 30 languages, lines with boxes. One flat row per image. Billed on text.

client:LangChain transport:streamable-http

Install Image to Text OCR in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "image-to-text-ocr": {
            "transport": "streamable_http",
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/image-to-text-ocr",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Image to Text OCR in other clients