Skip to content
LangChain

torproxy for LangChain

io.github.hapheus/torproxy

Tor HTTP and SOCKS5 proxy with REST API and built-in MCP server.

client:LangChain transport:stdio runtime:oci

Install torproxy in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "torproxy": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "docker.io/hapheus/torproxy:2.7.7"],
        }
})

tools = await client.get_tools()

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

torproxy in other clients