能力标签
MCP智能代理工具集
🔌
MCP工具

MCP智能代理工具集

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:tools
⭐ 1.1k Stars 🍴 311 Forks 💻 Python 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
MCP协议AI代理工具集成AnthropicPython
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,MCP智能代理工具集 获评「强烈推荐」。已获得 1.1k 颗 GitHub Star,这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。

📚 深度解析

MCP智能代理工具集 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 MCP智能代理工具集,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。MCP智能代理工具集 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 MCP智能代理工具集 评为 AI 评分 8.2 分,属于同类工具中的优质选择。

📋 工具概览

基于Anthropic MCP协议的开源工具集,为AI代理提供强大的能力扩展。支持多种集成和插件机制,帮助开发者快速构建具有工具调用能力的智能代理系统。适合AI应用开发者和代理框架使用者。

MCP智能代理工具集 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 1.1k
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
正常维护,社区驱动
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
MCP工具
Forks
311

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

基于Anthropic MCP协议的开源工具集,为AI代理提供强大的能力扩展。支持多种集成和插件机制,帮助开发者快速构建具有工具调用能力的智能代理系统。适合AI应用开发者和代理框架使用者。

MCP智能代理工具集 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/strands-agents/tools

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "mcp-------": {
      "command": "npx",
      "args": ["-y", "tools"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 MCP智能代理工具集 执行以下任务...
Claude: [自动调用 MCP智能代理工具集 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "mcp_______": {
      "command": "npx",
      "args": ["-y", "tools"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 70/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

Strands Agents Tools

A model-driven approach to building AI agents in just a few lines of code.

GitHub commit activity GitHub open issues GitHub open pull requests License PyPI version Python versions Strands Discord

<p> <a href="https://strandsagents.com/">Documentation</a> ◆ <a href="https://github.com/strands-agents/samples">Samples</a> ◆ <a href="https://github.com/strands-agents/sdk-python">Python SDK</a> ◆ <a href="https://github.com/strands-agents/tools">Tools</a> ◆ <a href="https://github.com/strands-agents/agent-builder">Agent Builder</a> ◆ <a href="https://github.com/strands-agents/mcp-server">MCP Server</a> </p> </div>

Strands Agents Tools is a community-driven project that provides a powerful set of tools for your agents to use. It bridges the gap between large language models and practical applications by offering ready-to-use tools for file operations, system execution, API interactions, mathematical operations, and more.

Tools Overview

Below is a comprehensive table of all available tools, how to use them with an agent, and typical use cases:

ToolAgent UsageUse Case
a2a_clientprovider = A2AClientToolProvider(known_agent_urls=["http://localhost:9000"]); agent = Agent(tools=provider.tools)Discover and communicate with A2A-compliant agents, send messages between agents
file_readagent.tool.file_read(path="path/to/file.txt")Reading configuration files, parsing code files, loading datasets
file_writeagent.tool.file_write(path="path/to/file.txt", content="file content")Writing results to files, creating new files, saving output data
editor ⚠️agent.tool.editor(command="view", path="path/to/file.py")Advanced file operations like syntax highlighting, pattern replacement, and multi-file edits <br> **Deprecated — see [Deprecations](#deprecations)**
shell* ⚠️agent.tool.shell(command="ls -la")Executing shell commands, interacting with the operating system, running scripts <br> **Deprecated — see [Deprecations](#deprecations)**
http_requestagent.tool.http_request(method="GET", url="https://api.example.com/data")Making API calls, fetching web data, sending data to external services
tavily_searchagent.tool.tavily_search(query="What is artificial intelligence?", search_depth="advanced")Real-time web search optimized for AI agents with a variety of custom parameters
tavily_extractagent.tool.tavily_extract(urls=["www.tavily.com"], extract_depth="advanced")Extract clean, structured content from web pages with advanced processing and noise removal
tavily_crawlagent.tool.tavily_crawl(url="www.tavily.com", max_depth=2, instructions="Find API docs")Crawl websites intelligently starting from a base URL with filtering and extraction
tavily_mapagent.tool.tavily_map(url="www.tavily.com", max_depth=2, instructions="Find all pages")Map website structure and discover URLs starting from a base URL without content extraction
exa_searchagent.tool.exa_search(query="Best project management tools", text=True)Intelligent web search with auto mode (default) for optimal results, plus fast and deep search modes
exa_get_contentsagent.tool.exa_get_contents(urls=["https://example.com/article"], text=True, summary={"query": "key points"})Extract full content and summaries from specific URLs with live crawling fallback
python_repl*agent.tool.python_repl(code="import pandas as pd\ndf = pd.read_csv('data.csv')\nprint(df.head())")Running Python code snippets, data analysis, executing complex logic with user confirmation for security
calculator ⚠️agent.tool.calculator(expression="2 * sin(pi/4) + log(e**2)")Performing mathematical operations, symbolic math, equation solving <br> **Deprecated — see [Deprecations](#deprecations)**
code_interpretercode_interpreter = AgentCoreCodeInterpreter(region="us-west-2"); agent = Agent(tools=[code_interpreter.code_interpreter])Execute code in isolated sandbox environments with multi-language support (Python, JavaScript, TypeScript), persistent sessions, and file operations
use_awsagent.tool.use_aws(service_name="s3", operation_name="list_buckets", parameters={}, region="us-west-2")Interacting with AWS services, cloud resource management
retrieve ⚠️agent.tool.retrieve(text="What is STRANDS?")Retrieving information from Amazon Bedrock Knowledge Bases with optional metadata <br> **Deprecated — see [Deprecations](#deprecations)**
nova_reelsagent.tool.nova_reels(action="create", text="A cinematic shot of mountains", s3_bucket="my-bucket")Create high-quality videos using Amazon Bedrock Nova Reel with configurable parameters via environment variables
agent_core_memoryagent.tool.agent_core_memory(action="record", content="Hello, I like vegetarian food")Store and retrieve memories with Amazon Bedrock Agent Core Memory service
mem0_memoryagent.tool.mem0_memory(action="store", content="Remember I like to play tennis")Store user and agent memories across agent runs to provide personalized experience (tenant identity configured via Mem0MemoryTool or environment variables)
bright_dataagent.tool.bright_data(action="scrape_as_markdown", url="https://example.com")Web scraping, search queries, screenshot capture, and structured data extraction from websites and different data feeds
memory ⚠️agent.tool.memory(action="retrieve", query="product features")Store, retrieve, list, and manage documents in Amazon Bedrock Knowledge Bases with configurable parameters via environment variables <br> **Deprecated — see [Deprecations](#deprecations)**
environment ⚠️agent.tool.environment(action="list", prefix="AWS_")Managing environment variables, configuration management <br> **Deprecated — see [Deprecations](#deprecations)**
generate_image_stabilityagent.tool.generate_image_stability(prompt="A tranquil pool")Creating images using Stability AI models
generate_imageagent.tool.generate_image(prompt="A sunset over mountains")Creating AI-generated images for various applications
image_readeragent.tool.image_reader(image_path="path/to/image.jpg")Processing and reading image files for AI analysis
journalagent.tool.journal(action="write", content="Today's progress notes")Creating structured logs, maintaining documentation
think ⚠️agent.tool.think(thought="Complex problem to analyze", cycle_count=3)Advanced reasoning, multi-step thinking processes <br> **Deprecated — see [Deprecations](#deprecations)**
load_toolagent.tool.load_tool(path="path/to/custom_tool.py", name="custom_tool")Dynamically loading custom tools and extensions
swarmagent.tool.swarm(task="Analyze this problem", swarm_size=3, coordination_pattern="collaborative")Coordinating multiple AI agents to solve complex problems through collective intelligence
current_time ⚠️agent.tool.current_time(timezone="US/Pacific")Get the current time in ISO 8601 format for a specified timezone <br> **Deprecated — see [Deprecations](#deprecations)**
sleep ⚠️agent.tool.sleep(seconds=5)Pause execution for the specified number of seconds, interruptible with SIGINT (Ctrl+C) <br> **Deprecated — see [Deprecations](#deprecations)**
agent_graphagent.tool.agent_graph(agents=["agent1", "agent2"], connections=[{"from": "agent1", "to": "agent2"}])Create and visualize agent relationship graphs for complex multi-agent systems
graphagent.tool.graph(action="create", graph_id="pipeline", topology={"nodes": [...], "edges": [...]})Create and manage deterministic DAG-based multi-agent graphs using Strands SDK Graph implementation with per-node model configuration
cron* ⚠️agent.tool.cron(action="schedule", name="task", schedule="0 * * * *", command="backup.sh")Schedule and manage recurring tasks with cron job syntax <br> **Does not work on Windows** <br> **Deprecated — see [Deprecations](#deprecations)**
slack ⚠️agent.tool.slack(action="post_message", channel="general", text="Hello team!")Interact with Slack workspace for messaging and monitoring <br> **Deprecated — see [Deprecations](#deprecations)**
speakagent.tool.speak(text="Operation completed successfully", style="green", mode="polly")Output status messages with rich formatting and optional text-to-speech
stopagent.tool.stop(message="Process terminated by user request")Gracefully terminate agent execution with custom message
handoff_to_useragent.tool.handoff_to_user(message="Please confirm action", breakout_of_loop=False)Hand off control to user for confirmation, input, or complete task handoff
use_llmagent.tool.use_llm(prompt="Analyze this data", system_prompt="You are a data analyst")Create nested AI loops with customized system prompts for specialized tasks
use_agentagent.tool.use_agent(prompt="Analyze this code", system_prompt="You are a code analyst.", model_provider="bedrock")Create nested agent instances with model switching, multi-model workflows, cost optimization, and specialized sub-tasks
workflowagent.tool.workflow(action="create", name="data_pipeline", steps=[{"tool": "file_read"}, {"tool": "python_repl"}])Define, execute, and manage multi-step automated workflows
mcp_clientagent.tool.mcp_client(action="connect", connection_id="my_server", transport="stdio", command="python", args=["server.py"])⚠️ **SECURITY WARNING**: Dynamically connect to external MCP servers via stdio, sse, or streamable_http, list tools, and call remote tools. This can pose security risks as agents may connect to malicious servers. Use with caution in production.
batch ⚠️agent.tool.batch(invocations=[{"name": "current_time", "arguments": {"timezone": "Europe/London"}}, {"name": "stop", "arguments": {}}])Call multiple other tools from one request. <br> **Deprecated — see [Deprecations](#deprecations)**
browserbrowser = LocalChromiumBrowser(); agent = Agent(tools=[browser.browser])Web scraping, automated testing, form filling, web automation tasks
diagram ⚠️agent.tool.diagram(diagram_type="cloud", nodes=[{"id": "s3", "type": "S3"}], edges=[])Create AWS cloud architecture diagrams, network diagrams, graphs, and UML diagrams (all 14 types) <br> **Deprecated — see [Deprecations](#deprecations)**
rss ⚠️agent.tool.rss(action="subscribe", url="https://example.com/feed.xml", feed_id="tech_news")Manage RSS feeds: subscribe, fetch, read, search, and update content from various sources <br> **Deprecated — see [Deprecations](#deprecations)**
use_computeragent.tool.use_computer(action="click", x=100, y=200, app_name="Chrome") Desktop automation, GUI interaction, screen capture
search_videoagent.tool.search_video(query="people discussing AI")Semantic video search using TwelveLabs' Marengo model
chat_videoagent.tool.chat_video(prompt="What are the main topics?", video_id="video_123")Interactive video analysis using TwelveLabs' Pegasus model
mongodb_memoryagent.tool.mongodb_memory(action="record", content="User prefers vegetarian pizza")Store and retrieve memories using MongoDB Atlas with semantic search via AWS Bedrock Titan embeddings (connection and namespace configured via MongoDBMemoryTool or environment variables)
elasticsearch_memoryagent.tool.elasticsearch_memory(action="record", content="User prefers dark mode")Store and retrieve memories using Elasticsearch with semantic search via AWS Bedrock Titan embeddings (connection and namespace configured via ElasticsearchMemoryTool or environment variables)

\* These tools do not work on Windows

✨ Features

  • 📁 File Operations - Read, write, and edit files with syntax highlighting and intelligent modifications
  • 🖥️ Shell Integration - Execute and interact with shell commands securely
  • 🧠 Memory - Store user and agent memories across agent runs to provide personalized experiences with both Mem0, Amazon Bedrock Knowledge Bases, Elasticsearch, and MongoDB Atlas
  • 🕸️ Web Infrastructure - Perform web searches, extract page content, and crawl websites with Tavily and Exa-powered tools
  • 🌐 HTTP Client - Make API requests with comprehensive authentication support
  • 💬 Slack Client - Real-time Slack events, message processing, and Slack API access
  • 🐍 Python Execution - Run Python code snippets with state persistence, user confirmation for code execution, and safety features
  • 🧮 Mathematical Tools - Perform advanced calculations with symbolic math capabilities
  • ☁️ AWS Integration - Seamless access to AWS services
  • 🖼️ Image Processing - Generate and process images for AI applications
  • 🎥 Video Processing - Use models and agents to generate dynamic videos
  • 🎙️ Audio Output - Enable models to generate audio and speak
  • 🔄 Environment Management - Handle environment variables safely
  • 📝 Journaling - Create and manage structured logs and journals
  • ⏱️ Task Scheduling - Schedule and manage cron jobs
  • 🧠 Advanced Reasoning - Tools for complex thinking and reasoning capabilities
  • 🐝 Swarm Intelligence - Coordinate multiple AI agents for parallel problem solving with shared memory
  • 🤖 Agent as Tool - Create nested agent instances with model switching support for multi-model workflows and specialized sub-tasks
  • 🔗 Multi-Agent Graph - Create and manage deterministic DAG-based multi-agent pipelines with output propagation and per-node model configuration
  • 🔌 Dynamic MCP Client - ⚠️ Dynamically connect to external MCP servers and load remote tools (use with caution - see security warnings)
  • 🔄 Multiple Tools per Turn - Call several other tools from one model response with Batch Tool
  • 🔍 Browser Tool - Tool giving an agent access to perform automated actions on a browser (chromium)
  • 📈 Diagram - Create AWS cloud diagrams, basic diagrams, or UML diagrams using python libraries
  • 📰 RSS Feed Manager - Subscribe, fetch, and process RSS feeds with content filtering and persistent storage
  • 🖱️ Computer Tool - Automate desktop actions including mouse movements, keyboard input, screenshots, and application management
[!IMPORTANT] The tools in this repository are experimental. Many of them grant agents powerful capabilities — executing code, accessing the file system, calling AWS APIs, connecting to external servers, and automating browsers and desktops — which carry real security implications. Any production use should be preceded by your own independent security review; see the Responsible AI guidance for best practices. Use of these tools is at your own risk.

Chat with new video file (index_id required for upload)

result = agent.tool.chat_video( prompt="Describe what happens in this video", video_path="/path/to/video.mp4", index_id="your-index-id" # or set TWELVELABS_PEGASUS_INDEX_ID env var ) ```

📦 Installation

Quick Install

pip install strands-agents-tools

To install the dependencies for optional tools:

pip install "strands-agents-tools[mem0_memory, use_browser, rss, use_computer]"

Development Install

```bash

Install in development mode

pip install -e ".[dev]"

Install pre-commit hooks

pre-commit install ```

💻 Usage Examples

For async usage, call the corresponding *_async function with await.

Synchronous usage

agent = Agent(tools=[tavily_search, tavily_extract, tavily_crawl, tavily_map])

Example usage of the batch with http_request and use_aws tools

agent = Agent(tools=[batch, http_request, use_aws])

result = agent.tool.batch( invocations=[ {"name": "http_request", "arguments": {"method": "GET", "url": "https://api.ipify.org?format=json"}}, { "name": "use_aws", "arguments": { "service_name": "s3", "operation_name": "list_buckets", "parameters": {}, "region": "us-east-1", "label": "List S3 Buckets" } }, ] ) ```

Basic usage - inherits parent agent's model

result = agent.tool.use_agent( prompt="Tell me about the advantages of tool-building in AI agents", system_prompt="You are a helpful AI assistant specializing in AI development concepts." )

Create and activate virtual environment

python3 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate

Using environment variable to set default metadata behavior

Set RETRIEVE_ENABLE_METADATA_DEFAULT=true in your environment

result = agent.tool.retrieve( text="Tell me about cloud computing" # enableMetadata will default to the environment variable value ) ```

Use environment variables to determine model

import os os.environ["STRANDS_PROVIDER"] = "ollama" os.environ["STRANDS_MODEL_ID"] = "qwen3:4b" result = agent.tool.use_agent( prompt="Analyze this code", system_prompt="You are a code review assistant.", model_provider="env" )

Custom model configuration with specific parameters

result = agent.tool.use_agent( prompt="Write a creative story", system_prompt="You are a creative writing assistant.", model_provider="github", model_settings={ "model_id": "openai/o4-mini", "params": {"temperature": 1, "max_tokens": 4000} } ) ```

Single-tenant: use the standalone tool with configuration from environment variables

agent = Agent(tools=[elasticsearch_memory]) result = agent.tool.elasticsearch_memory(action="record", content="User prefers vegetarian pizza") ```

Single-tenant: use the standalone tool with configuration from environment variables

agent = Agent(tools=[mongodb_memory]) result = agent.tool.mongodb_memory(action="record", content="User prefers vegetarian pizza") ```

🌍 Environment Variables Configuration

Agents Tools provides extensive customization through environment variables. This allows you to configure tool behavior without modifying code, making it ideal for different environments (development, testing, production).

Global Environment Variables

These variables affect multiple tools:

Environment VariableDescriptionDefaultAffected Tools
BYPASS_TOOL_CONSENTBypass consent for tool invocation, set to "true" to enablefalseAll tools that require consent (e.g. shell, file_write, python_repl)
STRANDS_NON_INTERACTIVERun tools without interactive prompts, set to "true" to suppress confirmation dialogsfalseTools with a confirmation prompt (e.g. shell, python_repl)
STRANDS_TOOL_CONSOLE_MODEEnable rich UI for tools, set to "enabled" to enabledisabledAll tools that have optional rich UI
AWS_REGIONDefault AWS region for AWS operationsus-west-2use_aws, retrieve, generate_image, memory, nova_reels
AWS_PROFILEAWS profile name to use from ~/.aws/credentialsdefaultuse_aws, retrieve
LOG_LEVELLogging level (DEBUG, INFO, WARNING, ERROR)INFOAll tools

Tool-Specific Environment Variables

Calculator Tool

Environment VariableDescriptionDefault
CALCULATOR_MODEDefault calculation modeevaluate
CALCULATOR_PRECISIONNumber of decimal places for results10
CALCULATOR_SCIENTIFICWhether to use scientific notation for numbersFalse
CALCULATOR_FORCE_NUMERICForce numeric evaluation of symbolic expressionsFalse
CALCULATOR_FORCE_SCIENTIFIC_THRESHOLDThreshold for automatic scientific notation1e21
CALCULATOR_DERIVE_ORDERDefault order for derivatives1
CALCULATOR_SERIES_POINTDefault point for series expansion0
CALCULATOR_SERIES_ORDERDefault order for series expansion5

Current Time Tool

Environment VariableDescriptionDefault
DEFAULT_TIMEZONEDefault timezone for current_time toolUTC

Sleep Tool

Environment VariableDescriptionDefault
MAX_SLEEP_SECONDSMaximum allowed sleep duration in seconds300

Tavily Search, Extract, Crawl, and Map Tools

Environment VariableDescriptionDefault
TAVILY_API_KEYTavily API key (required for all Tavily functionality)None
- Visit https://www.tavily.com/ to create a free account and API key.

Exa Search and Contents Tools

Environment VariableDescriptionDefault
EXA_API_KEYExa API key (required for all Exa functionality)None
- Visit https://dashboard.exa.ai/api-keys to create a free account and API key.

Mem0 Memory Tool

Security Model: The tenant-isolation keys (user_id / agent_id) are never exposed as agent-facing tool parameters. The agent only chooses the action and its content/query/memory_id. This prevents a model (or prompt-injected content) from reading, writing, or deleting another tenant's memories.

Usage patterns:

```python from strands import Agent from strands_tools.mem0_memory import Mem0MemoryTool, mem0_memory

Single-tenant: use the standalone function with env vars (MEM0_USER_ID / MEM0_AGENT_ID)

agent = Agent(tools=[mem0_memory]) agent.tool.mem0_memory(action="store", content="User prefers vegetarian pizza")


The Mem0 Memory Tool supports three different backend configurations:

1. **Mem0 Platform**:
   - Uses the Mem0 Platform API for memory management
   - Requires a Mem0 API key

2. **OpenSearch** (Recommended for AWS environments):
   - Uses OpenSearch as the vector store backend
   - Requires AWS credentials and OpenSearch configuration

3. **FAISS** (Default for local development):
   - Uses FAISS as the local vector store backend
   - Requires faiss-cpu package for local vector storage

4. **Neptune Analytics** (Optional Graph backend for search enhancement):
   - Uses Neptune Analytics as the graph store backend to enhance memory recall.
   - Requires AWS credentials and Neptune Analytics configuration
   
# Configure your Neptune Analytics graph ID in the .env file: export NEPTUNE_ANALYTICS_GRAPH_IDENTIFIER=sample-graph-id

# Configure your Neptune Analytics graph ID in Python code: import os os.environ['NEPTUNE_ANALYTICS_GRAPH_IDENTIFIER'] = "g-sample-graph-id"

```

Environment VariableDescriptionDefaultRequired For
MEM0_USER_IDUser ID for memory operations (standalone function)NoneStandalone
MEM0_AGENT_IDAgent ID for memory operations (standalone function)NoneStandalone
MEM0_API_KEYMem0 Platform API keyNoneMem0 Platform
OPENSEARCH_HOSTOpenSearch Host URLNoneOpenSearch
AWS_REGIONAWS Region for OpenSearchus-west-2OpenSearch
NEPTUNE_ANALYTICS_GRAPH_IDENTIFIERNeptune Analytics Graph IdentifierNoneNeptune Analytics
DEVEnable development mode (bypasses confirmations)falseAll modes
MEM0_LLM_PROVIDERLLM provider for memory processingaws_bedrockAll modes
MEM0_LLM_MODELLLM model for memory processinganthropic.claude-3-5-haiku-20241022-v1:0All modes
MEM0_LLM_TEMPERATURELLM temperature (0.0-2.0)0.1All modes
MEM0_LLM_MAX_TOKENSLLM maximum tokens2000All modes
MEM0_EMBEDDER_PROVIDEREmbedder provider for vector embeddingsaws_bedrockAll modes
MEM0_EMBEDDER_MODELEmbedder model for vector embeddingsamazon.titan-embed-text-v2:0All modes

Note: - If MEM0_API_KEY is set, the tool will use the Mem0 Platform - If OPENSEARCH_HOST is set, the tool will use OpenSearch - If neither is set, the tool will default to FAISS (requires faiss-cpu package) - If NEPTUNE_ANALYTICS_GRAPH_IDENTIFIER is set, the tool will configure Neptune Analytics as graph store to enhance memory search - LLM configuration applies to all backend modes and allows customization of the language model used for memory processing

Bright Data Tool

Environment VariableDescriptionDefault
BRIGHTDATA_API_KEYBright Data API KeyNone
BRIGHTDATA_ZONEBright Data Web Unlocker Zoneweb_unlocker1

Memory Tool

Environment VariableDescriptionDefault
MEMORY_DEFAULT_MAX_RESULTSDefault maximum results for list operations50
MEMORY_DEFAULT_MIN_SCOREDefault minimum relevance score for filtering results0.4

Nova Reels Tool

Environment VariableDescriptionDefault
NOVA_REEL_DEFAULT_SEEDDefault seed for video generation0
NOVA_REEL_DEFAULT_FPSDefault frames per second for generated videos24
NOVA_REEL_DEFAULT_DIMENSIONDefault video resolution in WIDTHxHEIGHT format1280x720
NOVA_REEL_DEFAULT_MAX_RESULTSDefault maximum number of jobs to return for list action10

Python REPL Tool

Environment VariableDescriptionDefault
PYTHON_REPL_BINARY_MAX_LENMaximum length for binary content before truncation100
PYTHON_REPL_INTERACTIVEWhether to enable interactive PTY modeNone
PYTHON_REPL_RESET_STATEWhether to reset the REPL state before executionNone
PYTHON_REPL_PERSISTENCE_DIRSet Directory for python_repl tool to write state fileNone

Shell Tool

Environment VariableDescriptionDefault
SHELL_DEFAULT_TIMEOUTDefault timeout in seconds for shell commands900

Slack Tool

Environment VariableDescriptionDefault
SLACK_DEFAULT_EVENT_COUNTDefault number of events to retrieve42
STRANDS_SLACK_AUTO_REPLYEnable automatic replies to messagesfalse
STRANDS_SLACK_LISTEN_ONLY_TAGOnly process messages containing this tagNone

Speak Tool

Environment VariableDescriptionDefault
SPEAK_DEFAULT_STYLEDefault style for status messagesgreen
SPEAK_DEFAULT_MODEDefault speech mode (fast/polly)fast
SPEAK_DEFAULT_VOICE_IDDefault Polly voice IDJoanna
SPEAK_DEFAULT_OUTPUT_PATHDefault audio output pathspeech_output.mp3
SPEAK_DEFAULT_PLAY_AUDIOWhether to play audio by defaultTrue

Editor Tool

Environment VariableDescriptionDefault
EDITOR_DIR_TREE_MAX_DEPTHMaximum depth for directory tree visualization2
EDITOR_DEFAULT_STYLEDefault style for output panelsdefault
EDITOR_DEFAULT_LANGUAGEDefault language for syntax highlightingpython
EDITOR_DISABLE_BACKUPSkip creating .bak backup files during edit operationsfalse

Environment Tool

Environment VariableDescriptionDefault
ENV_VARS_MASKED_DEFAULTMasking of values whose name contains TOKEN, SECRET, PASSWORD, KEY, or AUTH. Set to false to disable. This is the only way to configure masking: the agent cannot override it through tool input, and the environment tool cannot set it. Tools that execute arbitrary code in the agent process, such as python_repl and shell, can still write ittrue

HTTP Request Tool

Environment VariableDescriptionDefault
STRANDS_HTTP_ALLOW_INSECURE_SSLAllow disabling SSL certificate verification via verify_ssl parameterfalse

Dynamic MCP Client Tool

| Environment Variable | Description | Default | |----------------------|-------------|---------| | STRANDS_MCP_TIMEOUT | Default timeout in seconds for MCP operations | 30.0 |

File Read Tool

Environment VariableDescriptionDefault
FILE_READ_RECURSIVE_DEFAULTDefault setting for recursive file searchingtrue
FILE_READ_CONTEXT_LINES_DEFAULTDefault number of context lines around search matches2
| FILE_READ_START_LINE_DEFAULT | Default starting line num

Dynamic MCP Client Integration

⚠️ SECURITY WARNING: The Dynamic MCP Client allows agents to autonomously connect to external MCP servers and load remote tools at runtime. This poses significant security risks as agents can potentially connect to malicious servers and execute untrusted code. Use with extreme caution in production environments.

This tool is different from the static MCP server implementation in the Strands SDK (see MCP Tools Documentation) which uses pre-configured, trusted MCP servers.

```python from strands import Agent from strands_tools import mcp_client

agent = Agent(tools=[mcp_client])

Create a multi-agent research pipeline

result = agent.tool.graph( action="create", graph_id="research_pipeline", topology={ "nodes": [ { "id": "researcher", "role": "researcher", "system_prompt": "You research topics thoroughly.", "model_provider": "bedrock", "model_settings": {"model_id": "us.anthropic.claude-sonnet-4-20250514-v1:0"} }, { "id": "analyst", "role": "analyst", "system_prompt": "You analyze research data.", "model_provider": "bedrock", "model_settings": {"model_id": "us.anthropic.claude-3-5-haiku-20241022-v1:0"} }, { "id": "reporter", "role": "reporter", "system_prompt": "You create comprehensive reports.", "tools": ["file_write", "editor"] } ], "edges": [ {"from": "researcher", "to": "analyst"}, {"from": "analyst", "to": "reporter"} ], "entry_points": ["researcher"] } )

🇨🇳 中文文档镜像 AI 翻译 2026-06-29
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Strands Agents Tools 是一个面向 AI Agent 开发的模型驱动工具库。它允许开发者仅需几行代码,即可通过模型驱动的方式构建功能强大的 AI Agent。本项目提供了一系列预置工具,支持 Agent 之间的通信(A2A 协议)以及多种复杂任务的处理,旨在简化 AI 智能体的开发流程,让开发者能够更专注于业务逻辑而非底层工具链的构建。

⚡ 功能介绍

本项目提供了丰富的核心功能:支持具备语法高亮和智能修改能力的 File Operations(文件操作);提供安全的 Shell Integration(Shell 集成)以执行命令;内置强大的 Memory(记忆)系统,支持通过 Mem0、Amazon Bedrock Knowledge Bases、Elasticsearch 和 MongoDB Atlas 实现跨会话的个性化记忆存储;此外还具备完善的 Web Infrastructure(网络基础设施)支持。

📋 环境依赖

在使用本项目进行视频对话功能时,需要提供有效的 index_id 用于文件上传。例如,在使用 agent.tool.chat_video 方法描述视频内容时,必须通过参数指定 index_id,或者在环境变量中设置 TWELVELABS_PEGASUS_INDEX_ID,以确保视频处理流程的正常运行。

🛠 安装步骤(Docker/pip/源码)

可以通过 pip 进行快速安装。基础安装命令为 `pip install strands-agents-tools`。如果需要使用可选功能(如 mem0_memory、use_browser、rss 或 use_computer),请在安装时指定对应的 extra 标签,例如 `pip install strands-agents-tools[mem0_memory, use_browser, rss, use_computer]`。开发者也可以通过源码进行开发模式安装。

🚀 使用教程

本项目支持同步与异步两种调用模式。在同步模式下,您可以直接将工具(如 tavily_search)实例化并传递给 Agent 对象进行使用。对于需要异步处理的任务,请调用对应的 *_async 函数。通过这种灵活的设计,开发者可以根据应用场景轻松集成各种搜索、提取和爬取工具。

⚙️ 配置说明(含 MCP / env)

项目支持通过环境变量进行灵活配置。例如,可以通过设置环境变量 `RETRIEVE_ENABLE_METADATA_DEFAULT=true` 来定义默认的元数据检索行为。在调用 agent.tool.retrieve 方法时,系统会自动读取该环境变量的值,从而实现无需修改代码即可调整检索逻辑的配置管理。

🔄 工作流/模块

本项目支持动态 MCP Client 集成,允许 Agent 在运行时自主连接外部 MCP 服务器并加载远程工具。同时,它还支持构建复杂的多智能体研究流水线(Multi-agent research pipeline),通过定义拓扑结构(topology)和节点角色(role),开发者可以利用 Claude 等模型驱动构建高度自动化的协作工作流。

🎯 aiskill88 AI 点评 A 级 2026-06-29

成熟的MCP工具生态项目,1.1k星标体现社区认可度。Python实��便于集成,持续维护更新,是构建AI代理的优质基础设施。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 做语音类 AI 产品的开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
tools 中文教程tools 安装报错怎么办tools MCP 配置tools Agent 工作流tools 与同类工具对比tools 最佳实践tools 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 做语音类 AI 产品的开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

tools 是一款Python开发的AI辅助工具。开源MCP工具:A set of tools that gives agents powerful capabilities.。⭐1.1k · Python 主要应用场景包括:构建AI代理系统、扩展模型能力、工具集成开发。
💡 AI Skill Hub 点评

AI Skill Hub 点评:MCP智能代理工具集 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 MCP智能代理工具集
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 tools
原始描述 开源MCP工具:A set of tools that gives agents powerful capabilities.。⭐1.1k · Python
Topics MCP协议AI代理工具集成AnthropicPython
GitHub https://github.com/strands-agents/tools
License Apache-2.0
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/strands-agents/tools 🌐 官方网站  https://strandsagents.com

收录时间:2026-06-29 · 更新时间:2026-07-03 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →