Skip to content
LangChain

forage for LangChain

io.github.isaac-levine/forage

Self-improving tool discovery for AI agents. Find, install, and use new MCP servers automatically.

client:LangChain transport:stdio runtime:npm

Install forage in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "forage": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "forage-mcp"],
        }
})

tools = await client.get_tools()

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

forage in other clients