Langchain Usage
Demonstrates the use of Model Context Protocol (MCP) server tools with a LangChain ReAct Agent in TypeScript.
This tool provides a simple Model Context Protocol (MCP) client implemented using LangChain and TypeScript. It leverages the `@h1deya/langchain-mcp-tools` library to convert MCP server tools into LangChain-compatible tools, enabling integration with language models like Anthropic's `claude-3-5-sonnet-latest` (and optionally OpenAI's `gpt-4o`). The client facilitates interaction with MCP servers, allowing users to explore and utilize available tools exposed through the Model Context Protocol within a LangChain agent.
Características Principales
01Uses Anthropic's `claude-3-5-sonnet-latest` LLM
02Utilizes the `@h1deya/langchain-mcp-tools` library
03Supports multiple MCP servers
04Converts MCP server tools to LangChain-compatible tools
05Includes example code for OpenAI's `gpt-4o`
0612 GitHub stars
Casos de Uso
01Integrating MCP server tools into LangChain applications
02Building agents that can interact with MCP-enabled services
03Exploring and testing MCP server tool functionality