> ## 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.

# Mojeek 搜索集成

> 使用 LangChain Python 与 Mojeek 搜索工具集成。

以下笔记本将解释如何使用 Mojeek Search 获取结果。请访问 [Mojeek 网站](https://www.mojeek.com/services/search/web-search-api/) 以获取 API 密钥。

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_community.tools import MojeekSearch
```

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
api_key = "KEY"  # 从 Mojeek 网站获取
```

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
search = MojeekSearch.config(api_key=api_key, search_kwargs={"t": 10})
```

在 `search_kwargs` 中，您可以添加在 [Mojeek 文档](https://www.mojeek.com/support/api/search/request_parameters.html) 中找到的任何搜索参数。

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
search.run("mojeek")
```

***

<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/tools/mojeek_search.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
