Langchain Usage
Createdhideya
Demonstrates the use of Model Context Protocol (MCP) server tools with a LangChain ReAct Agent in TypeScript.
About
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.
Key Features
- Uses Anthropic's `claude-3-5-sonnet-latest` LLM
- Utilizes the `@h1deya/langchain-mcp-tools` library
- Supports multiple MCP servers
- Converts MCP server tools to LangChain-compatible tools
- Includes example code for OpenAI's `gpt-4o`
- 12 GitHub stars
Use Cases
- Integrating MCP server tools into LangChain applications
- Building agents that can interact with MCP-enabled services
- Exploring and testing MCP server tool functionality