Confidential guide on numerology and astrology, based of GG33 Public information

Langchain-MCP
模型上下文协议工具支持Langchain
3 years
Works with Finder
3
Github Watches
15
Github Forks
172
Github Stars
langchain-mcp
Note: langchain now has a more official implementation langchain-mcp-adapters
Model Context Protocol tool calling support in LangChain.
Create a langchain_mcp.MCPToolkit
with an mcp.ClientSession
,
then await toolkit.initialize()
and toolkit.get_tools()
to get the list of langchain_core.tools.BaseTool
s.
Example:
Demo
You can run the demo against Groq llama-3.1-8b-instant
:
$ export GROQ_API_KEY=xxx
$ uv run tests/demo.py "Read and summarize the file ./LICENSE"
Secure MCP Filesystem Server running on stdio
Allowed directories: [ '/users/aw/projects/rectalogic/langchain-mcp' ]
The file ./LICENSE is a MIT License agreement. It states that the software is provided "as is" without warranty and that the authors and copyright holders are not liable for any claims, damages, or other liability arising from the software or its use.
相关推荐
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Delivers concise Python code and interprets non-English comments
Reviews

user_RUlanD0b
Langchain-mcp is an outstanding tool for leveraging language models in applications seamlessly. Created by rectalogic, it simplifies the integration process, making it accessible for developers. With a comprehensive repository available on GitHub, it's a go-to resource for anyone serious about enhancing their projects with advanced language capabilities. Highly recommended for its efficiency and ease of use!