Skip to content
LangChain

PDF Slim — PDF Compression for AI for LangChain

io.github.zhaoyaqi18/pdfslim

Compress PDFs to exact target sizes (82-93% smaller). Tools: compress_pdf, optimize_pdf, inspect_pdf

client:LangChain transport:streamable-http tools:3

Install PDF Slim — PDF Compression for AI in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pdfslim": {
            "transport": "streamable_http",
            "url": "https://api.pdfslim.app/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

PDF Slim — PDF Compression for AI in other clients