Skip to content
LangChain

Huggingface for LangChain

io.github.pipeworx-io/huggingface

Hugging Face Hub MCP — models, datasets, spaces

client:LangChain transport:streamable-http

Install Huggingface in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "huggingface": {
            "transport": "streamable_http",
            "url": "https://gateway.pipeworx.io/huggingface/mcp",
        }
})

tools = await client.get_tools()

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

Huggingface in other clients