Skip to content
LangChain

IBM watsonx.ai Granite for LangChain

io.github.nirholas/ibm-watsonx

IBM watsonx.ai MCP by three.ws: chat, text generation, embeddings, and tokenization.

client:LangChain transport:stdio runtime:npm

Install IBM watsonx.ai Granite in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "ibm-watsonx": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@three-ws/ibm-watsonx-mcp"],
        }
})

tools = await client.get_tools()

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

IBM watsonx.ai Granite in other clients