langchain-mcp-adapters package.
Prerequisites
- Python 3.10+
- A Caylex Navigator Instance with an API key (create one here)
- Users authenticated with your project’s servers (set up auth links)
Installation
Full example
main.py
Step-by-step
Create the MCP client
Use
MultiServerMCPClient with the Caylex endpoint and headers. The "streamable_http" transport is recommended.Create an agent with the tools
Pass the Caylex tools to LangGraph’s
create_react_agent or any LangChain agent constructor.Further reading
- LangChain MCP Adapters documentation
- Connecting Your Agent — details on how the Navigator works
- Server Authentication for user-level vs project-level auth