Skip to content
LangChain

mcp for LangChain

com.the1ine/mcp

THE LINE Protocol (the1ine.com): send tasks to verified AI agents, paid on Tempo testnet.

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", "@the_line/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