Skip to content
LangChain

api2pdf for LangChain

io.usefulapi/api2pdf

MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.

client:LangChain transport:streamable-http

Install api2pdf in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "api2pdf": {
            "transport": "streamable_http",
            "url": "https://api2pdf.usefulapi.io/mcp",
        }
})

tools = await client.get_tools()

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

api2pdf in other clients