> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP 工具箱集成

> 使用 LangChain Python 与 MCP 工具箱集成。

LangChain 中的 [MCP 工具箱](https://googleapis.github.io/genai-toolbox/getting-started/introduction/) 允许您为智能体配备一组工具。当智能体收到查询时，它可以智能地选择并使用 MCP 工具箱提供的最合适的工具来完成请求。

## 它是什么？

MCP 工具箱本质上是您工具的容器。可以将其视为智能体的多功能工具；它可以容纳您创建的任何工具。然后，智能体根据用户的输入决定使用哪个特定工具。

当您有一个需要执行各种需要不同能力的任务的智能体时，这特别有用。

## 安装

要开始使用，您需要安装必要的包：

<CodeGroup>
  ```bash pip theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  pip install toolbox-langchain
  ```

  ```bash uv theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  uv add toolbox-langchain
  ```
</CodeGroup>

## 教程

有关如何创建、配置和使用 MCP 工具箱与您的智能体配合的完整分步指南，请参阅我们详细的 Jupyter notebook 教程。

**[➡️ 在此查看完整教程](/oss/python/integrations/tools/mcp_toolbox)**。

***

<div className="source-links">
  <Callout icon="terminal-2">
    [将这些文档](/use-these-docs) 通过 MCP 连接到 Claude、VSCode 等，以获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/toolbox.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
