Skip to content
LangChain

OnlyMCP for LangChain

com.only-mcp/onlymcp

Skills, agents and memory in the cloud, plus a gateway to your other MCP servers.

client:LangChain transport:streamable-http runtime:npm

Install OnlyMCP in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "onlymcp": {
            "transport": "streamable_http",
            "url": "https://only-mcp.com/api/mcp",
        }
})

tools = await client.get_tools()

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

OnlyMCP in other clients