页面加载中...
LangChain 社区贡献的 200+ 工具集成,覆盖搜索引擎、数据库、云存储、邮件、社交媒体等。可直接作为 Agent Tool 使用,也可封装为 MCP Server 供其他平台调用。
快速安装
确保已安装 clawhub CLI
clawhub install langchain-community-toolsLangChain 社区贡献的 200+ 工具集成——Agent 工具化的最大工具库。
LangChain 社区工具是 langchain-community 包的一部分,提供了 Agent 与外部世界交互的标准化接口。每个工具都遵循 BaseTool 接口,可以在任何 LangChain Agent 中即插即用。
工具分类:
# 安装 LangChain 社区包 pip install langchain-community # 按需安装特定工具的依赖 pip install langchain-community[google-search] # Google Search pip install langchain-community[sqlite] # SQL Database pip install langchain-community[github] # GitHub Tool
from langchain_community.tools import DuckDuckGoSearchRun search = DuckDuckGoSearchRun() result = search.invoke("2026年 AI Agent 最新趋势") print(result)
from mcp.server import Server from langchain_community.tools import WikipediaQueryRun from langchain_community.utilities import WikipediaAPIWrapper server = Server("langchain-wiki-mcp") wikipedia = WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper()) @server.tool() async def wiki_search(query: str) -> str: """Search Wikipedia for information.""" return wikipedia.invoke(query)
from langchain_community.tools import DuckDuckGoSearchRun, WikipediaQueryRun from langchain.agents import initialize_agent tools = [DuckDuckGoSearchRun(), WikipediaQueryRun()] agent = initialize_agent(tools, llm, agent="zero-shot-react-description") agent.run("What is the population of Tokyo in 2026?")
版本
v0.1.0
作者
langchain-ai
平台
发布时间
2026年3月15日
微软官方出品,包含 132 个 Agent Skill,覆盖 Azure SDK、AI Foundry、M365 Agents 等开发场景。支持 Python、.NET、TypeScript、Java、Rust 五种语言,一键安装即可增强编码 Agent 的领域知识。
Dify 平台官方网页搜索插件,支持 Google、Bing、DuckDuckGo、SearXNG 等多种搜索引擎。可为 Dify 工作流和 Agent 提供实时网络信息检索能力,配置灵活,支持搜索结果摘要和全文提取。
Model Context Protocol 官方文件系统服务器。为 AI Agent 提供安全的本地文件读写能力,支持目录浏览、文件搜索、读写操作。可配置允许访问的目录白名单,防止越权访问。