Skip to content
LangChain

random animals mcp for LangChain

io.github.mrfentmen/random-animals-mcp

Random animal photos with facts from Some Random API. No key required.

client:LangChain transport:stdio runtime:npm

Install random animals mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

random animals mcp in other clients