Skip to content
LangChain

mcp for LangChain

online.fileshareforagents/mcp

Storage and file sharing for AI agents. No account, no API key: $0.01 USDC per call (x402, Base).

client:LangChain transport:stdio runtime:npm

Install mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp in other clients