> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-zh.cn/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="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\providers\toolbox.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
