> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md).

# 如何将 MCP 服务器与本地 LLM 一起使用

了解如何通过截图将 MCP 服务器连接到开源 AI 模型。

本分步指南将向你展示如何将 **模型上下文协议（MCP）** 服务器连接到本地 LLM，例如 [Qwen](https://unsloth.ai/docs/zh/mo-xing/qwen3.6.md) 或 [Gemma](https://unsloth.ai/docs/zh/mo-xing/gemma-4.md)，这样你运行的任何模型都可以通过 MCP 调用外部工具和服务。 将 MCP 连接到本地模型后，模型便能安全地使用你的本地文件、应用、数据库和工具，而不再只是依靠记忆聊天，从而打造更实用、更私密且可互换的 AI 助手，让它能够在你的真实环境中执行操作。

我们将使用以下开源代码库： [Unsloth](https://github.com/unslothai/unsloth) 和 [llama.cpp](#llama.cpp-guide) ，因为它们是广受欢迎的本地模型推理和部署框架。MCP 适用于本地 GGUF 模型和云端 [服务提供商的模型。](https://unsloth.ai/docs/zh/ji-cheng/connections.md). **我们还将介绍如何使用** [**多个 MCP 服务器**](#using-multiple-mcp-servers) **。**

MCP 工具可以与模型的其他能力协同工作，例如 [代码执行](https://unsloth.ai/docs/zh/xin/studio/chat.md#code-execution) 和 [网络搜索](https://unsloth.ai/docs/zh/xin/studio/chat.md#advanced-web-search)，因此单个模型可以在同一对话中搜索网络、运行代码并调用已连接的服务。

### 使用场景

连接 MCP 服务器后，你可以让本地模型执行许多自动化任务。以下是一些示例：

* **搜索文档：** “查找相关文档并总结设置步骤。”——可使用 Context7。
* **分析代码库：** “梳理这个代码库，并说明身份验证、计费和数据访问分别在哪里实现。”——可使用 GitHub 官方 MCP 和 GitMCP 分析代码库。
* **使用嵌入进行网络搜索** ——Exa 的 MCP 服务器可用于支持上下文嵌入的语义网络搜索。
* **调试网站界面** ——可使用 Playwright 和 Chrome DevTools MCP 服务器操作网站，查找问题的修复方法。

### 快速入门

我们将介绍两种将设备上的本地模型连接到 MCP 服务器的方法。两种方法都使用开源软件包： [Unsloth](https://github.com/unslothai/unsloth) 和 [llama.cpp](llama.cpphttps://github.com/ggml-org/llama.cpp) 来运行、托管和部署模型。

<a href="https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md#unsloth-guide" class="button primary">Unsloth MCP 指南</a><a href="https://unsloth.ai/pages/10191e6f82adfd362724184fd4ff98deb38d6ee5#llama.cpp-guide" class="button primary">Llama.cpp MCP 指南</a>

### 🦥 Unsloth 指南

在本示例中，我们将使用 Unsloth，将任意本地模型（例如 [Qwen3.6](https://unsloth.ai/docs/zh/mo-xing/qwen3.6.md) 或 [Gemma 4](https://unsloth.ai/docs/zh/mo-xing/gemma-4.md) ）连接到以下 MCP 服务器： [Vercel](https://mcp.vercel.com), [Context7](https://context7.com/), [Exa](https://exa.ai/) 和 [Hugging Face](https://huggingface.co/docs/hub/en/agents-mcp)。然后，我们会询问模型它能用这些服务做什么。同样的步骤适用于任何 MCP 服务器。

{% stepper %}
{% step %}

#### 设置 Unsloth

最简单的入门方式是安装 [Unsloth Desktop](https://unsloth.ai/docs/zh/desktop.md) 应用。它支持 [macOS](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/mac.md)、Linux、 [Windows](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/windows-installation.md), [NVIDIA](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/pip-install.md), [AMD](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/amd.md)、Intel 和 CPU 环境。

<a href="https://unsloth.ai/download" class="button primary" data-icon="down-to-bracket">下载 Unsloth</a>

* <i class="fa-apple">:apple:</i> [下载 macOS 版](https://unsloth.ai/download/mac)
* <i class="fa-windows">:windows:</i> [下载 Windows 版](https://unsloth.ai/download/windows)
* <i class="fa-linux">:linux:</i> [下载 Linux 版](https://unsloth.ai/download/linux)

或者，如果你更喜欢手动安装：

**macOS、Linux、WSL：**

```bash
curl -fsSL https://unsloth.ai/install.sh | sh
```

**Windows PowerShell：**

```bash
irm https://unsloth.ai/install.ps1 | iex
```

[点击此处](https://unsloth.ai/docs/zh/desktop.md#get-started) 查看详细说明。
{% endstep %}

{% step %}

#### **启用 MCP**

点击聊天工具栏中的“MCP”。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FqNVeCtCvYRMqKT9sSZey%2Fimage.png?alt=media&amp;token=9755a1cc-8118-40ba-ba1f-3b9ac0ef773d" alt=""><figcaption></figcaption></figure>

Unsloth Studio 默认支持 Context7、Exa 和 Hugging Face 的 MCP。启用 Exa [网页搜索](https://unsloth.ai/docs/zh/xin/studio/chat.md#advanced-web-search) 会停用我们提供的默认搜索工具。
{% endstep %}

{% step %}

#### **添加自定义 MCP 服务器**

要添加 Vercel MCP 服务器，请点击“添加自定义 MCP”，这时会弹出一个窗口：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FaO9zf15MX1jWL7nOmdyK%2Fimage.png?alt=media&amp;token=8ae977f0-8388-414c-9fbd-ae1efff464f2" alt=""><figcaption></figcaption></figure>

填写服务器详细信息：

1. **显示名称**：易于识别的名称，例如 `Vercel`.
2. **URL**：服务器的基础端点，例如 `https://mcp.vercel.com`.
3. 选择以下一种身份验证方式。

{% tabs %}
{% tab title="OAuth 登录" %}
对于需要通过浏览器进行身份验证的服务器（如 GitHub、Linear、Vercel 等），请启用 **使用 OAuth 登录**。首次连接时会打开浏览器窗口，供你授权 Unsloth。
{% endtab %}

{% tab title="自定义标头" %}
对于使用令牌进行身份验证的服务器，请关闭 OAuth，然后点击 **添加标头** 下方的 **自定义标头**。添加一个 `Authorization` 标头并填入你的令牌：

```
Authorization: Bearer <your-token>
```

{% endtab %}
{% endtabs %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FbgCzTby2rF3qgleWLNXA%2Fmcp-server-added.png?alt=media&amp;token=8095e37e-a4fa-4857-a5aa-0562af526eca" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **测试并添加**

点击 **测试连接** ，确认 Unsloth 可以连接到服务器。连接成功后，点击 **添加服务器** 以保存。

如果 **测试连接** 失败，请确认 URL 是服务器的基础端点（而不是文档页面），并检查身份验证方式是否正确。请参阅下方的“故障排除”。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FJeR2x79EkJaG4jYuOiBt%2Fmcp-add-server.png?alt=media&amp;token=38c4fdee-130f-415b-8c5d-e906f13c1555" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **确认工具已加载**

此时，服务器会显示在 MCP 服务器列表中。Unsloth 会自动获取其工具，并显示确认信息，例如： *已刷新“Vercel”（18 个工具）*.

每台服务器都提供以下操作： **切换** 其启用/停用状态、 **刷新** 其工具、 **编辑** 它，或 **删除** 它。确保服务器的开关和 **使用 MCP 服务器** 总开关都已开启，然后关闭对话框。

启用后会高亮显示。再次点击即可禁用。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FgunafFRR6EdrF0xXjIuG%2Fimage.png?alt=media&amp;token=3a91e79f-33d0-44da-a7a3-ded37a34b594" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **在聊天中使用**

从 **选择模型** 下拉菜单中选择任意模型并开始聊天。现在，当你的请求需要时，模型可以自行调用服务器的工具。

上方使用了本地 `gemma-4-E2B-it-GGUF` 并向它提问 *“你能使用 Vercel MCP 服务器吗？”* 它列出了可以执行的操作：管理项目、分析日志、列出团队、生成访问链接、检查域名以及搜索 Vercel 文档。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FoenMZ3aZx2yUX9ueAbmy%2Fmcp-chat-usecase.png?alt=media&amp;token=4284a8da-e77f-4961-8154-742cd75e4b01" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

#### 使用多个 MCP 服务器

如果要同时调用多个 MCP 服务器，比如 3 个，该怎么做？我们将使用 Unsloth Studio 默认提供的 Exa、Context7 和 Hugging Face MCP 服务器，并将它们全部启用。

如果你问“Unsloth 能支持 Qwen 微调吗？”，Exa 会提供非常详尽的信息：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FbqfXsWpuNJksyX2cLgfz%2Fimage.png?alt=media&amp;token=9f66e3e9-0e78-4016-853d-a7a8b63c4d25" alt=""><figcaption></figcaption></figure>

接着追问“搜索 Unsloth 文档，了解如何做到这一点”，Context7 就会用来查找文档：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FrPFQ90O4o8SIydVhDndx%2Fimage.png?alt=media&amp;token=35a48ee5-974b-45de-aba9-e9fb1e7833dd" alt=""><figcaption></figcaption></figure>

然后输入“在 Hugging Face 上搜索 unsloth/Qwen 模型”，就会调用 Hugging Face 的 MCP 服务器：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F9KPBtO3VFxC6Y9e4Hl0d%2Fimage.png?alt=media&amp;token=1c1757dc-4ccb-424f-b98b-29ae173df757" alt=""><figcaption></figcaption></figure>

#### 另一个具体用例示例

连接服务器后，可以用日常语言让模型执行实际任务。以下是使用 Vercel 服务器的一些示例：

* **调试构建失败问题**: *“拉取我最新部署的构建日志，并告诉我失败原因。”*
* **检查部署状态**: *“列出我最近的部署及其状态。”*
* **搜索文档**: *“在 Vercel 文档中搜索如何设置自定义域名。”*
* **查询域名信息**: *“ `myproject.dev` 是否可用？费用是多少？”*

### 🦙 Llama.cpp 指南

{% stepper %}
{% step %}

#### 安装或构建 llama.cpp

**macOS：**

```bash
brew install llama.cpp
```

或者在 **Linux、Windows、WSL 上** 从源代码构建：

```bash
git clone https://github.com/ggml-org/llama.cpp
cmake -S llama.cpp -B llama.cpp/build -DCMAKE_BUILD_TYPE=Release
cmake --build llama.cpp/build --config Release -j --target llama-server llama-cli
```

从源代码构建不会将 llama-server 安装到 PATH 中。请在运行 git clone 的目录中，将构建输出目录添加到运行服务器的终端的 PATH。在 Linux 或 WSL（Bash）上：

{% code collapsedlinecount="10" %}

```bash
export PATH="$(pwd)/llama.cpp/build/bin:$PATH"
llama-server --help
```

{% endcode %}

在使用默认 Visual Studio 生成器的原生 Windows 环境中，Release 可执行文件位于 llama.cpp\build\bin\Release。在 PowerShell 中：

{% code collapsedlinecount="10" %}

```powershell
$env:PATH = "$(Resolve-Path .\llama.cpp\build\bin\Release);$env:PATH"
llama-server.exe --help
```

{% endcode %}

在 Windows 上使用 Ninja 等单配置生成器时，请改用 .\llama.cpp\build\bin。每次打开新的服务器终端时，都要重新设置 PATH；如果更改了目录，请使用检出目录的绝对路径。以下多行命令示例使用 Bash 语法；在原生 PowerShell 中，请将每条命令写在一行，或将 Bash 的续行反斜杠替换为 PowerShell 反引号。Homebrew 用户仍可直接使用 llama-server。
{% endstep %}

{% step %}

#### 使用 GGUF 启动 llama-server

我们使用的是 [Gemma 4](https://unsloth.ai/docs/zh/mo-xing/gemma-4.md) 本示例中的 E4B GGUF：

```bash
llama-server \
  -hf unsloth/gemma-4-E4B-it-GGUF:UD-Q4_K_XL \
  --alias local \
  --host 127.0.0.1 \
  --port 8080 \
  --no-ui \
  --temp 1.0 \
  --top-p 0.95 \
  --top-k 64 \
  --reasoning off
```

对于更大的 Gemma 4 26B-A4B 模型：

```bash
llama-server \
  -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M \
  --alias local \
  --host 127.0.0.1 \
  --port 8080 \
  --no-ui \
  --temp 1.0 \
  --top-p 0.95 \
  --top-k 64 \
  --reasoning off
```

如需调整更多推理参数，请参阅我们的 [Gemma 4 指南](https://unsloth.ai/docs/zh/mo-xing/gemma-4.md).

你可以测试此服务器：

```bash
curl http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer none" \
  -d '{
    "model": "local",
    "messages": [{"role": "user", "content": "Say hello in one sentence."}]
  }'
```

{% endstep %}

{% step %}

#### 创建 MCP 文件系统沙盒

```bash
mkdir -p ~/mcp-workspace
cd ~/mcp-workspace
pwd
```

复制绝对路径。为 MCP 主机创建一个单独的项目文件夹：

```bash
mkdir -p ~/llama-mcp
cd ~/llama-mcp
```

创建 `server_config.json`:

{% code expandable="true" %}

```json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/ABSOLUTE/PATH/TO/mcp-workspace"
      ],
      "env": {}
    }
  }
}
```

{% endcode %}

将路径替换为实际的工作区路径。IBM 的 `mcp-cli` 文档采用相同的 `server_config.json` 结构，以及相同的 `npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/files` 文件系统配置。
{% endstep %}

{% step %}

#### 运行终端 MCP 主机并连接到 llama.cpp

使用 IBM 的 `mcp-cli`；它是一个命令行 MCP 客户端/主机，支持聊天模式、工具发现和自定义 OpenAI 兼容提供商。其文档推荐使用 `uvx mcp-cli --help`，支持项目级 `server_config.json`，并支持通过运行时配置自定义 OpenAI 兼容提供商 `--api-base` 和 `--api-key`.

`mcp-cli` 启动时需要配置文件。因此，需要添加一个步骤来创建该文件。例如：

{% code title="" expandable="true" %}

```bash
mkdir -p ~/.chuk_llm
cat > ~/.chuk_llm/config.yaml <<'YAML'
openai_compatible:
  client_class: "chuk_llm.llm.providers.openai_client:OpenAILLMClient"
  default_model: "local"
  models: ["*"]
YAML
```

{% endcode %}

然后运行：

```bash
uvx mcp-cli \
  --provider llamacpp \
  --api-base http://127.0.0.1:8080/v1 \
  --api-key none \
  --model local \
  --server filesystem \
  --config-file server_config.json
```

然后尝试：

```
列出文件系统工作区中的文件。
```

接着：

```
创建 hello.txt，写入一行问候语，然后读回该文件。
```

`mcp-cli` 默认启用工具调用确认，因此在执行工具之前，你应该会看到确认提示。

**完整代码示例：**

{% code expandable="true" %}

```bash
# 终端 1
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:UD-Q4_K_XL \
  --alias local --host 127.0.0.1 --port 8080 --no-ui \
  --temp 1.0 --top-p 0.95 --top-k 64 \
  --chat-template-kwargs '{"enable_thinking":false}'

# 终端 2，在包含 server_config.json 的文件夹中
uvx mcp-cli \
  --provider llamacpp \
  --api-base http://127.0.0.1:8080/v1 \
  --api-key none \
  --model local \
  --server filesystem \
  --config-file server_config.json
```

{% endcode %}
{% endstep %}
{% endstepper %}

### 游戏引擎和 3D 应用

Unsloth 提供适用于以下应用的一键式 MCP 配置： **Blender**, **Unity**, **Unreal Engine**, **Godot**, **Figma** 和 **Roblox Studio**。有关分步设置指南和演示，请参阅 [游戏引擎和 3D 应用](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp/mcp-engines.md) 。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F5zX7CyoLMVp3Cl811T5u%2Freplace-0.webp?alt=media&amp;token=e0026647-232b-4ebb-b0fd-6f0c0422e96d" alt="A local model building a village in Unreal Engine from Unsloth chat"><figcaption><p>Qwen3.8-27B 在 Unsloth 聊天中于 Unreal Engine 5.8 构建村庄。</p></figcaption></figure>

### 支持远程访问或局域网访问的本地 MCP 服务器

除了 `http(s)://` URL 之外， **URL 或可执行文件** 此字段还接受本地命令，例如 `npx`, `uvx` 或服务器二进制文件的路径，其参数填写在 **参数** 行中。这些本地（stdio）服务器会作为程序在你的计算机上运行。

当 **远程访问** 或 **局域网访问** 在设置中启用（或启动 Unsloth 时使用了 `--secure`）时，其他设备也可以访问 Unsloth，因此本地命令会被禁用，保存命令时会显示：

{% code collapsedlinecount="10" %}

```
远程访问开启时，本地命令已禁用，因为服务器可从此计算机以外的位置访问。
```

{% endcode %}

你仍可通过以下两种方式使用本地 MCP 服务器：

1. **在你自己的计算机上通过 HTTP 运行服务器（推荐）。** 许多 MCP 服务器本身就支持提供 HTTP 服务。启动服务器并将其绑定到 `127.0.0.1` ，这样只有这台计算机可以访问它，然后将其地址添加为 URL。例如，对于 [osmmcp](https://github.com/nervsystems/osmmcp):

   <pre class="language-bash" data-collapsed-line-count="10"><code class="lang-bash">osmmcp --enable-http --http-only --http-addr 127.0.0.1:7082
   </code></pre>

   然后在 MCP 对话框中添加 `http://127.0.0.1:7082/mcp` 。在启用远程访问的情况下，此方法适用于 Unsloth Desktop 和 Studio。请在运行 Unsloth 的计算机上运行 MCP 服务器，而不是在用于浏览的设备上；使用 [Docker](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/docker.md), `127.0.0.1` 时，容器本身就是运行环境，因此请在容器内启动服务器（`docker exec`）。对于仅支持 stdio 的服务器，可使用 [mcp-proxy](https://github.com/sparfenyuk/mcp-proxy) 等 stdio 转 HTTP 桥接工具来完成相同的工作，例如： `mcp-proxy --port=8099 uvx mcp-server-fetch`然后添加 `http://127.0.0.1:8099/mcp`.
2. **明确允许本地命令（Studio）。** 自行设置该变量后启动 Studio；即使启用了远程访问或局域网访问，本地命令仍会保持启用状态：

   <pre class="language-bash" data-collapsed-line-count="10"><code class="lang-bash">UNSLOTH_STUDIO_ALLOW_STDIO_MCP=1 unsloth studio
   </code></pre>

   在 Windows PowerShell 中： `$env:UNSLOTH_STUDIO_ALLOW_STDIO_MCP = "1"; unsloth studio`.

{% hint style="warning" %}
使用选项 2 时，任何能够通过网络登录 Studio 的人都可以通过 MCP 服务器在你的计算机上运行程序。只有在可信网络中并设置了强密码时才使用此选项，并优先选择选项 1。
{% endhint %}

### 故障排除

如果服务器连接失败或其工具未显示，请检查 URL 是否为服务器的基本端点（例如 `https://mcp.vercel.com`），而不是文档页或控制面板页面。对于 OAuth 服务器，请在浏览器打开后完成登录；对于基于令牌的服务器，请确认 `Authorization` 标头正确，且令牌有效。

如果保存本地命令时出现“远程访问开启时，本地命令已禁用”，请参阅 [远程访问或局域网访问启用时使用本地 MCP 服务器](#local-mcp-servers-with-remote-access-or-lan-access).

如果连接后工具未显示，请点击 **刷新** ，并确保单个服务器的开关和 **使用 MCP 服务器** 总开关均已开启。

### 安全提示

仅连接你信任的 MCP 服务器。检查请求的权限，并对读取私人数据、更改部署、购买域名或修改项目等操作，始终启用人工确认。将 MCP 服务器与网络搜索或其他工具结合使用时尤其要谨慎，因为遭到提示注入的内容可能会试图触发非预期的工具调用。

### 热门 MCP 服务器

以下列出了一些可连接的热门且实用的 MCP 服务器：

| MCP 服务器             | 适用场景                      | 实用之处                                                                                                                                 |
| ------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **GitHub MCP**      | 代码仓库、问题、拉取请求、代码搜索、Actions | GitHub 官方 MCP，支持远程和本地配置，涵盖代码仓库、问题、拉取请求、Actions、代码安全等。（[GitHub](https://github.com/github/github-mcp-server))                         |
| **Context7**        | 最新的库文档和示例                 | 为编程助手获取当前且特定于版本的文档，而非依赖过时的训练数据。使用 `https://mcp.context7.com/mcp`. ([GitHub](https://github.com/upstash/context7))                    |
| **Notion MCP**      | 文档、笔记、任务、项目知识             | 适合使用 Notion 管理规格说明、产品需求文档（PRD）、路线图或笔记的团队。托管式 MCP 可读取和写入工作区内容。（[Notion 开发者](https://developers.notion.com/guides/mcp/overview))       |
| **Slack MCP**       | 团队对话搜索                    | 允许 AI 工具查询 Slack 消息、频道、文件、讨论串和成员信息；具体操作取决于权限。（[Slack](https://slack.com/help/articles/48855576908307-Guide-to-the-Slack-MCP-server)) |
| **Linear MCP**      | 问题、项目、产品工作流               | Linear 官方远程 MCP，可查找、创建和更新 Linear 问题、项目、评论及相关对象。（[Linear](https://linear.app/changelog/2025-05-01-mcp))                               |
| **Vercel MCP**      | 部署、日志、文档、域名               | 适用于前端和 Web 工作流：检查部署、日志、文档和项目上下文。请先确认客户端兼容性。（[Vercel](https://vercel.com/docs/agent-resources/vercel-mcp?utm_source=chatgpt.com))     |
| **Sentry MCP**      | 生产环境调试                    | 帮助智能体在人类参与的开发工作流中检查 Sentry 问题、追踪记录、错误和性能数据。（[GitHub](https://github.com/getsentry/sentry-mcp))                                       |
| **文件系统 / 本地文件 MCP** | 本地项目文件                    | 适用于本地 LLM 配置，通常通过 `stdio`。最好将参考服务器视为示例或起点。（[GitHub](https://github.com/modelcontextprotocol/servers))                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/zh/ji-chu-zhi-shi/mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
