Api2Pdf MCP by usefulapi 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
tools:16
Install Api2Pdf MCP by usefulapi 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
What LangChain can do once it is connected
- api2pdf_html_to_pdf
- api2pdf_url_to_pdf
- api2pdf_markdown_to_pdf
- api2pdf_html_to_image
- api2pdf_url_to_image
- api2pdf_wkhtml_to_pdf
- api2pdf_office_to_pdf
- api2pdf_merge_pdfs
- api2pdf_compress_pdf
- api2pdf_extract_pages
- api2pdf_add_password
- api2pdf_convert_to_markdown
- api2pdf_generate_barcode
- api2pdf_get_balance
- api2pdf_get_status
- api2pdf_delete_file