canlii for LangChain
io.github.mohammadfarooqi/canlii
Search Canadian case law, browse legislation, and check citations via the CanLII API.
client:LangChain
transport:stdio
runtime:npm
Install canlii in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"canlii": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "canlii-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs