Langchain
Createdrectalogic
Enables LangChain integration with Model Context Protocol for tool calling.
About
Langchain-mcp facilitates the integration of Model Context Protocol (MCP) with LangChain, providing seamless tool calling capabilities. By creating an `MCPToolkit` with an `mcp.ClientSession`, users can easily initialize the toolkit and retrieve a list of `langchain_core.tools.BaseTool` instances, enhancing LangChain's functionality with MCP-enabled tools. The included demo showcases how to use the tool with Groq's `llama-3.1-8b-instant` model, demonstrating its ability to interact with secure MCP Filesystem Servers.
Key Features
- Includes a demo for using with Groq's `llama-3.1-8b-instant` model.
- 157 GitHub stars
- Integrates LangChain with Model Context Protocol.
- Provides tool calling support within LangChain.
- Offers an `MCPToolkit` for easy initialization and tool retrieval.
- Supports secure interaction with MCP Filesystem Servers.
Use Cases
- Extending LangChain agents with MCP tools.
- Integrating secure file system access into LangChain workflows.
- Utilizing MCP tools within LangChain for tasks like summarizing files.