unlocalhost for LangChain
io.github.info-arnav/unlocalhost
Deploy localhost to a private, authenticated link from your AI coding agent.
client:LangChain
transport:stdio
runtime:npm
Install unlocalhost in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"unlocalhost": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@unlocalhost/unlocalhost"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs